STC12C5A60S2双串口通信例程.docVIP

  • 23
  • 0
  • 约2.51千字
  • 约 3页
  • 2017-06-18 发布于河南
  • 举报
STC12C5A60S2双串口通信例程

#include STC12C5A60S2.h #include Uart.h #define uchar unsigned char #define uint unsigned int //===================== void delay(void) { uint j,g; for(j=0;j500;j++) for(g=0;g500;g++); } //============================ void main() { Uart_Two_Init(); Uart_One_Init(); while(1) { Uart_One_Send(z); delay(); Uart_Two_Send(z); UART_One_Printf(sb123456789\n); delay(); UART_Two_Printf(sb123456789\n); delay(); } } //====================================== #ifndef __UART_H__ #define __UART_H__ #define uchar unsigned char #define uint unsigned int //=================

文档评论(0)

1亿VIP精品文档

相关文档