harishwww
Member level 3
how to calculate baude rate hex value
here is my code for one application
MAIN: MOV SP,#40H
MOV TMOD,#20H ;initilize serial port
MOV TH1,#0FDH ;Slect 9600 baud rate
MOV SCON,#50H
MOV IE,#10010000B
SETB TR1 ;start timer
MOV COUNTER,#00H
MOV P1,#00H
AJMP $
now i want to change it to 115200 what value shud i put here MOV TH1,#<<<<<0FDH>>>>>pls help me
and my crystal value is 11.0592mhz
here is my code for one application
MAIN: MOV SP,#40H
MOV TMOD,#20H ;initilize serial port
MOV TH1,#0FDH ;Slect 9600 baud rate
MOV SCON,#50H
MOV IE,#10010000B
SETB TR1 ;start timer
MOV COUNTER,#00H
MOV P1,#00H
AJMP $
now i want to change it to 115200 what value shud i put here MOV TH1,#<<<<<0FDH>>>>>pls help me
and my crystal value is 11.0592mhz