AT89C80512 8051/4051 UART 8051 UART Serial communication Registers SBUF: Serial Buffer Register SCON: Serial Control Register Bit 7:6 - SM0:SM1: Serial Mode Specifier SM1 SM0 0 0 1/12 of Osc frequency shift register mode fixed baud rate 0 1 8-bit UART with timer 1 determined baud rate 1 0 9-bit UART with 1/32 of Osc fixed baud rate 1 1 9-bit UART with timer 1 determined baud rate /* * 8051_Serial_UART */ #include /* Incl.. 공학속으로/마이컴 2020. 3. 3. 8051 LED Blinking Program Keil 컴파일러 이용 #include /* Include header file */ void delay(k) /* Delay for msec. (here Xtal freq. is 11.0592 MHz) */ { int i,j; for (i=0;i 공학속으로/마이컴 2020. 3. 3. 이전 1 다음