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 set 19200 baud rate for 89c51?

Status
Not open for further replies.

harishwww

Member level 3
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 set 19200 baud rate for 89c51? actually for 9600 FD hex value and for 19200 ?
 

set baud to 9600 then double the baud rate by adding this line:
Code:
	mov	PCON,#080h		; double the baud rate to 19200
 
mov a,pcon
setb acc.7
mov pcon,a ; Set SMOD
mov tmod,#20h
mov th1,#253 ; set baud rate to 19200bps
clr sm0
setb sm1
setb tr1 ; start Timer1

also note : use 11.059mhz crystal clock. 12mhz clock wont work
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top