SW006010 Microchip Technology, SW006010 Datasheet - Page 88

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
3.6
apRNOVS^-page 84
SOFTWARE UART FUNCTIONS
C17 C Compiler Libraries
This section contains a list of individual functions and an example of use of the functions
in this section. Functions may be implemented as macros.
3.6.1
getcUART
Function:
File Name:
getsUART
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
OpenUART
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Function Descriptions
This function operates identically to ReadUART.
#define in uart16.h
PIC17C4X, PIC17C756
Reads a string of characters from the software UART.
uart16.h
void getsUART (static char *buffer, static unsigned
char len);
buffer
Pointer to the string of characters read from the software UART.
len
Number of characters read from the software UART. The value
of len can be any 8-bit value, but is restricted to the maximum
size of an array within any bank of RAM.
This function reads a string of characters from the software
UART and places them in buffer. The number of characters read
is given in the variable len.
None
uart16_c.c
char x[10];
getsUART(x,5);
PIC17C4X, PIC17C756
Configures the I/O pins for the software UART.
uart16.h
void OpenUART (void);
None
This function configures the I/O pins used for the software
UART to the correct input or ouput state and logic level. The I/O
pins used for receive data (RXD) and transmit data (TXD) must
be defined in the header file
The definitions that must be made to ensure that the software
UART operates correctly are:
uart16_a.asm
 2002 Microchip Technology Inc.
.

Related parts for SW006010