| ??? 05/06/03 22:58 Read: times |
#44928 - Serial interrupt driven issues--timer1/2 |
Hi,
I have a 24 byte tx buffer. When i send the buffer from a 89C52 to pc in a polled manner, timer 2 works fine with the following setting: mov SCON, #01010000b mov RCAP2L, #0DCh mov RCAP2H, #0FFh mov T2CON, #00110100b but if i try to use serial interrupt (to receive some chars too) then the send is hanged after the 1st char.... my send codes are (with 30h as the beginning of the tx buffer): Send: mov R0, #30h Main: clr TI mov SBUF, @R0 Wait: jnb TI, Wait inc R0 cjne R0,#48h, Main However, if the baudrate was set by using timer 1 then the code will work....timer 1 setting: mov TMOD,#20h mov PCON,#80h mov TH1,#250 mov TCON,#40h mov SCON,#50h what was wrong?? pls help, thanks!! |
| Topic | Author | Date |
| Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 | |
| RE: Serial interrupt driven issues--timer1/2 | 01/01/70 00:00 |



