mikroElektronika PIC Microcontrollers PIC12 User Manual page 280

Mikroc user's manual
Table of Contents

Advertisement

mikroC - C Compiler for Microchip PIC microcontrollers
Usart_Data_Ready
Prototype
char Usart_Data_Ready(void);
Returns
Function returns 1 if data is ready or 0 if there is no data.
Description
Use the function to test if data is ready for transmission.
Requires
USART HW module must be initialized and communication established before using
this function. See
Example
int receive;
...
// If data is ready, read it:
if (Usart_Data_Ready()) receive = Usart_Read;
Usart_Read
Prototype
char Usart_Read(void);
Returns
Returns the received byte. If byte is not received, returns 0.
Description
Function receives a byte via USART. Use the function
data is ready first.
Requires
USART HW module must be initialized and communication established before using
this function. See
Example
int receive;
...
// If data is ready, read it:
if (Usart_Data_Ready()) receive = Usart_Read;
page
272
.
Usart_Init
.
Usart_Init
MikroElektronika: Development tools - Books - Compilers
making it simple...
to test if
Usart_Data_Ready
mikroC

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents