2
5
36
新手上路
#include <REG52.h> #include <INTRINS.h> void Delay(unsigned int ms) //@24.000MHz { unsigned char i, j; while (ms) { _nop_(); i = 32; j = 40; do { while (--j); } while (--i); ms--; } } void main() { while (1) { RXD = 0; TXD = 1; Delay(500); RXD = 1; TXD = 0; Delay(500); } }复制代码
使用道具 举报 送花
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )
GMT+8, 2025-5-4 17:42 , Processed in 0.127571 second(s), 47 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.