采用集成芯片 L298 驱动电路电路控制电机,简单方便,如图所示。 ............20
第 4 章 软件设计 .....................................................................20
程序设计使用中断方式对数据进行显示,实现简单,方便快捷。总体设计流程如图
4.1 所示。 .......................................................................20
图 4.1 程序流程图 ................................................................21
结 论 ..................................................................................21
参考文献 ..............................................................................22
附录 1 .................................................................................23
#include<iom16v.h>
#include <macros.h>
#define uchar unsigned char
#define uint unsigned int
#define RS_CLR PORTB&=~BIT(5)
#define RS_SET PORTB|=BIT(5)
#define RW_CLR PORTB&=~BIT(6)
#define RW_SET PORTB|=BIT(6)
#define EN_CLR PORTB&=~BIT(7)
#define EN_SET PORTB|=BIT(7)
uint wendu,set_warm;
char table[];
char table1[9];
评论1