Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
5.2.16.1 USART_Init – Initializes USART
Prototype sub procedure USART_Init(const Baud_Rate)
Description Initializes PIC MCU USART hardware and establishes communication at specified <Baud_Rate>.
Refer to the device data sheet for baud rates allowed for specific Fosc. If you specify the unsupported baud rate,
compiler will report an error.
Example
USART_Init(2400)
5.2.16.2 USART_Data_Ready – Checks if data is ready
Prototype sub function USART_Data_Ready as byte
Description Function checks if data is ready. Returns 1 if so, returns 0 otherwise.
Example
USART_Data_Ready
5.2.16.3 USART_Read – Receives a byte
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (98 sur 112)05/11/2004 02:20:55