??? 04/07/04 20:48 Read: times |
#68114 - 8052 Comm @ 9600 baud using Timer1 |
At the monent I have setup uart communication at 9600 baud using the the sample code given with the ADuC832, the test program(the rest of my code) I use enables me to send a character from the hyperterminal and the code sends back the same character
the code to set up communication is as follows(using timer 2 to set up 9600 baud) MOV RCAP2H,#0FFh ;config uart for 9600 MOV RCAP2L,#-55 MOV TH2,#0FFh MOV TL2,#-55 MOV SCON,#52h MOV T2CON,#34h But as I am also using Timer 2 for ADC part of my project I need to use a different timer for similar communication. This is where my problem occurs. So using timer 1 I tried to get a similar communication running. MOV SCON,#52h ; configure UART for 9600baud.. MOV TMOD,#020h MOV TH1,#-9h Mov TCON,#040h Now when I send a character from the hyperterminal, I recieve nothing from the board back to the hyperterminal. Can u tell me where I'am going wrong??? |
Topic | Author | Date |
8052 Comm @ 9600 baud using Timer1 | 01/01/70 00:00 | |
RE: 8052 Comm @ 9600 baud using Timer1 | 01/01/70 00:00 | |
RE: 8052 Comm @ 9600 baud using Timer1 | 01/01/70 00:00 | |
RE: 8052 Comm @ 9600 baud using Timer1 | 01/01/70 00:00 | |
RE: 8052 Comm @ 9600 baud using Timer1 | 01/01/70 00:00 | |
RE: 8052 Comm @ 9600 baud using Timer1![]() | 01/01/70 00:00 |