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
The highest BaudRate with 11,592MHz crystal is 57,600kbps (and Timer1=> Mode2, SMOD=1, TH1 reload value is 0FFh)
Theoretically, if your micro can run at 22,1184MHz (and Timer1=> Mode2, SMOD=1, TH1 reload value is 0FFh) you can achieve 115,200kpbs.
Some 16MHz CPUs can be overclocked and will work, some will not.
The only way to chack it out is to try.
Or, select 8051-derivative that can be clocked at higher frequecies ..
:wink:
IanP