Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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.

List of 9 messages in thread
TopicAuthorDate
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      

Back to Subject List