SW006010 Microchip Technology, SW006010 Datasheet - Page 64

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
apRNOVS^-page 60
C17 C Compiler Libraries
DataRdyUSART1
DataRdyUSART2
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
getcUSART1
getcUSART2
Function:
File Name:
getsUSART1
getsUSART2
Device:
Function:
Include:
Prototype:
Arguments:
DataRdyUSART1: PIC17C4X, PIC17C756
DataRdyUSART2: PIC17C756
Returns the status of the
usart16.h
char DataRdyUSART1 (void);
char DataRdyUSART2 (void);
None
This function returns the status of the
register.
If data is available, a value of 1 is returned. If data is not
available, then a value of 0 is returned.
u1drdy.c
u2drdy.c
while (!DataRdyUSART1());
This function operates identically to ReadUSARTx.
#define
getsUSART1 :PIC17C4X, PIC17C756
getsUSART2: PIC17C756
Reads a string of characters until the specified number of
characters have been read.
usart16.h
void getsUSART1 (static char *buffer, static
unsigned char len);
void getsUSART2 (static char *buffer, static
unsigned char len);
buffer
The value of buffer is a pointer to the string where incoming
characters are to be stored. The length of this string should be
at least len + 1.
len
The value of len is limited to the available amount of RAM
locations remaining in any one bank - 1. There must be one
extra location to store the null character.
in
usart16.h
RCIF
flag bit in the
 2002 Microchip Technology Inc.
RCIF
flag bit in the
PIR
register.
PIR

Related parts for SW006010