??? 02/06/06 07:43 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#109267 - See for yourself! Responding to: ???'s previous message |
Keil provide the source for the _getkey() and putchar() functions - see: http://www.keil.com/support/m...source.htm
If you look at the source for putchar(), you will see that it includes a loop waiting for TI: while (!TI); TI = 0; return (SBUF = c);So, if you have an ISR the prematurely clears TI, you are bound to mess-up the operation of this function! As it says in the Manual, "This routine is implementation-specific and its function may deviate from that described above. Source code is provide in the LIB folder. You may modify the source to customize this function for your particular hardware environment." http://www.keil.com/support/m...etchar.htm http://www.keil.com/support/m...utchar.htm |
Topic | Author | Date |
c programing question | 01/01/70 00:00 | |
How to post your code | 01/01/70 00:00 | |
re: How to post your code | 01/01/70 00:00 | |
That'll be it, then! | 01/01/70 00:00 | |
putchar uses polled IO | 01/01/70 00:00 | |
Polled means...... | 01/01/70 00:00 | |
See for yourself!![]() | 01/01/70 00:00 | |
How are you debuging? | 01/01/70 00:00 | |
RE: How are you debuging? | 01/01/70 00:00 | |
project | 01/01/70 00:00 | |
Start a new thread | 01/01/70 00:00 |