| ??? 06/12/03 10:11 Read: times |
#48172 - RE: c=SBUF; what's going wrong? Responding to: ???'s previous message |
Remember the serial ISR will be called for both receive and transmit interrupts. The while() loop is a very bad idea.
Try this: void rec(void) interrupt 4 { if(RI) { c=SBUF; RI=0; } if(TI) { TI=0; } } |
| Topic | Author | Date |
| c=SBUF; what's going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what\'s going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what\'s going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what\'s going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what's going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what's going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what's going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what's going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what's going wrong? | 01/01/70 00:00 | |
| RE: c=SBUF; what's going wrong? | 01/01/70 00:00 | |
RE: c=SBUF; what's going wrong? | 01/01/70 00:00 |



