Mar 10, 2011 #1 H 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 set 19200 baud rate for 89c51? actually for 9600 FD hex value and for 19200 ?
Mar 10, 2011 #2 I IanP Advanced Member level 7 Joined Oct 5, 2004 Messages 7,929 Helped 2,311 Reputation 4,624 Reaction score 531 Trophy points 1,393 Location West Coast Activity points 66,416 The re-load value depends on a couple of things such as the frequency of crystal and others .. Have a look at: ftp://www-s.ti.com/pub/data_acquisition/MSC_CD-ROM/8051_Tutorial/tutser.html IanP :wink:
The re-load value depends on a couple of things such as the frequency of crystal and others .. Have a look at: ftp://www-s.ti.com/pub/data_acquisition/MSC_CD-ROM/8051_Tutorial/tutser.html IanP :wink:
Mar 10, 2011 #3 ctownsend Advanced Member level 2 Joined Nov 27, 2004 Messages 576 Helped 93 Reputation 188 Reaction score 63 Trophy points 1,308 Location Canada Activity points 3,701 set baud to 9600 then double the baud rate by adding this line: Code: mov PCON,#080h ; double the baud rate to 19200
set baud to 9600 then double the baud rate by adding this line: Code: mov PCON,#080h ; double the baud rate to 19200
Mar 10, 2011 #4 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,087 scon 0x50 tmod =0x20 th1=0xfd PCON= 0x80 /// to make baud rate double or make SMOD =1
Mar 10, 2011 #5 M mishra12 Advanced Member level 2 Joined Feb 18, 2009 Messages 672 Helped 136 Reputation 272 Reaction score 122 Trophy points 1,323 Location some where left alone Activity points 4,915 MOV SP,#40H MOV TMOD,#20H ;initilize serial port MOV TH1,#080H ;Select 19200 baud rate MOV SCON,#50H
Mar 11, 2011 #6 S sirius_reamus Newbie level 5 Joined Sep 5, 2009 Messages 8 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,283 Location mumbai Activity points 1,333 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
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