Demo entry 6776890

UART 初始化


Submitted by anonymous on Dec 05, 2018 at 05:38
Language: C. Code size: 152 Bytes.

void Uart_init()  
   TMOD |=0X20;  
   TH1=TL1=0XFD;// 9600 Baud rate  
   SCON= 0x50;  
   TR1=1;  // 定时器1 TCON寄存器 运行控制位   

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).