Assembly code for Serial Communication


Sample code for Serial Communication
Following code can be using for 8051 and 8052 ICs like: 89c51, 89c52, 89s51, 89s52, 89c2051.

 

;========================================================== ; Main Program starts from here ;========================================================== pc_star mov scon,#50h mov tmod,#21h mov th1,#f4h mov tl1,#f4h setb tr1 mov a,#'A' mov sbuf,a jnb ti,$ clr ti ret ;===================================================== ; Program ENDS here ;=====================================================