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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/17/04 16:09
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#72643 - RE: Keil putchar, getchar.
Responding to: ???'s previous message
The default putchar & getchar that come with Keil C51 do simple polled IO to the standard 8051 UART - so the simple "Hello, world" example that I cited earlier should just work (provided you're using the standard 8051 UART).

Of course, You still have to manually configure the SFRs for mode, baud rate, etc

Keil provides the source for their default putchar & getchar (see the manual), and there is an example on their website of re-writing them for interrupt-driven, ring-buffered serial IO:
http://www.keil.com/download/docs/intsio.zip.asp
http://www.keil.com/download/docs/intsio2.zip.asp

List of 10 messages in thread
TopicAuthorDate
ADuC832 serial comms problem            01/01/70 00:00      
   RE: ADuC832 serial comms problem            01/01/70 00:00      
      RE: ADuC832 serial comms problem            01/01/70 00:00      
         RE: ADuC832 serial comms problem            01/01/70 00:00      
   RE: ADuC832 serial comms problem            01/01/70 00:00      
      Keil Example            01/01/70 00:00      
         More Keil Examples            01/01/70 00:00      
   RE: ADuC832 serial comms problem            01/01/70 00:00      
      RE: Keil putchar, getchar.            01/01/70 00:00      
   RE: ADuC832 serial comms problem            01/01/70 00:00      

Back to Subject List