Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/14/08 11:53
Read: times


 
#153246 - Problem in C8051F330 UART
Hi. I am using the C8051F330 DIP package. I am unable to setup the baudrate to 9600bps. The configuration wizard given me the following configuration but it is not working still. The generated baudrate (As shown by Keil On-chip real time debugger) is 181632 bps. Why is this so ?? Please help..


Initialization:
anl PCA0MD,#0BFh
mov PCA0MD,#000h

MOV SCON0,#10H
MOV TMOD,#20H
MOV TH1,#96H ;baud rate 9600bps

MOV TCON,#40H

MOV P0MDOUT,#0FAH
MOV P1MDOUT,#0FFH
MOV P0SKIP,#80H
MOV XBR0,#01H
MOV XBR1,#40H

MOV OSCICN,#83H

SETB IT0
SETB IT1
MOV IT01CF,#61H
MOV IE,#95H


List of 2 messages in thread
TopicAuthorDate
Problem in C8051F330 UART            01/01/70 00:00      
   that will screw it up any time            01/01/70 00:00      

Back to Subject List