Professional Documents
Culture Documents
Lesson 12
EUSART
PIC16F887
EUSART
The USART is one of the oldest serial
communication systems. The modern versions
of this system are upgraded and called
somewhat differently - EUSART.
The Enhanced Universal Synchronous
Asynchronous Receiver
Transmitter (EUSART)module is a serial I/O
communication peripheral unit. It is also
known as Serial Communications
Interface(SCI).
PIC16F887
ADDRESS DETECTION
PIC16F887
#USE rs232(baud=a,xmit=b,rcv=c)
Configure EUSART
a: baud rate
b: transmit pin
c: receive pin
Ex:
#USE rs232(baud=9600,xmit=pin_c6,rcv=pin_c7)
PIC16F887
value = kbhit()
putc (data)
puts (string)
value = getc()
EXAMPLE
EXAMPLE
PIC16F887
MCU1 CODE
PIC16F887
MCU2 CODE
PIC16F887
MCU2 CODE
PIC16F887
MCU2 CODE
PIC16F887
Lesson 12
EUSART