USART Async
USART Async
USART Async
in
Asynchronous Mode
Main Functions
Can be synchronous or asynchronous
Can receive and transmit
Full duplex asynchronous operation
movlw D'25'
movwf SPBRG
bsf TXSTA, BRGH
movf DataTransmit, w
movf TXREG
USART – Receiving
• Loading the byte and transmitting data
(8 data bits in DataTransmit)
movf RCREG, w
movwf DataReceived