Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to calculate baude rate

Status
Not open for further replies.

harishwww

Member level 3
Joined
Aug 12, 2010
Messages
57
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,696
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
 

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

See:
Baud Rates Possible with the 8051
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top