![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
单片机
pandaraylove
这个作者很懒,什么都没留下…
展开
-
个人感觉很好的键盘矩阵键盘扫描程序
#include #include #include #define display P0 #define keyboardCode P2 #define uint unsigned int #define uchar unsigned char uchar initialKeyboardCode[]={0xef,0xdf,0xbf,0x7f}; uchar getKeyb转载 2011-12-08 22:06:39 · 1129 阅读 · 0 评论 -
51单片机串口通信时遇到的问题
#include #define uint unsigned int #define uchar unsigned char void UartInit(void) //9600bps@12MHz { PCON &= 0x7f; //波特率不倍速 SCON = 0x50; //工作方式1,8位数据,可变波特率 TMOD &= 0x80; //清除定时器1模式位原创 2011-12-08 22:03:12 · 1315 阅读 · 0 评论