| ??? 04/03/03 12:33 Read: times |
#42839 - RE: Printf getchar getkey Responding to: ???'s previous message |
"but the 'getkey()' holds the program execution."
so write one that doesn't! or write a function which checks for available received character(s), and then only call getkey when there's something to get; eg, if( rx_available() )
{
rx_char = getkey();
}That's what I do!
There's an interrupt-driven serial IO example in the Keil downloads area, and Mark Odell has published his free UART driver both here and on the Keil forum. |
| Topic | Author | Date |
| Printf getchar getkey | 01/01/70 00:00 | |
| RE: Printf getchar getkey | 01/01/70 00:00 | |
| RE: Printf getchar getkey | 01/01/70 00:00 | |
| RE: Printf getchar getkey | 01/01/70 00:00 | |
| RE: Printf getchar getkey | 01/01/70 00:00 | |
| RE: Printf getchar getkey | 01/01/70 00:00 | |
| RE: Printf getchar getkey | 01/01/70 00:00 | |
| RE: Printf getchar getkey | 01/01/70 00:00 | |
RE: Printf getchar getkey | 01/01/70 00:00 |



