I/O口模拟UART演示程序(只经过了软件仿真)
HotPower 发表于2004-7-7 22:59 侃单片机←返回版面 举报该贴
/*------------------------------------------------
I/O口模拟UART演示程序
--------------------------------------------------*/
#include
#include
/*------------------------------------------------
AT89S5X
--------------------------------------------------*/
sfr AUXR = 0x8e;
sfr WDTRST = 0xa6;
sfr16 TIMEER2 = 0xcc;
sfr16 RCAP = 0xca;
sbit TX = P1^0;
sbit RX = P1^1;
暂无评论