Chapter 13 - EUART
Chapter 13 - EUART
MICROCONTROLLERS
CHAPTER 13:
EUART
• a: baud rate
• b: transmit pin
• c: receive pin
• Ex:
• #USE rs232(baud=9600,xmit=pin_c6,rcv=pin_c7)
• putc (data)
• This function sends a character over the RS232
XMIT pin. A #USE RS232 must appear before this
call to determine the baud rate and pin used.
• value = getc()
• This function waits for a character to come in over
the RS232 RCV pin and returns the character. If you
do not want to hang forever waiting for an incoming
character use kbhit() to test for a character available.
The end!