SW006010 Microchip Technology, SW006010 Datasheet - Page 90

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 86
C17 C Compiler Libraries
3.6.2
#include <p17c756.h>
#include <uart16.h>
void main(void)
{
}
ReadUART
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
WriteUART
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
char data
// configure software UART
OpenUART();
while(1)
{
}
return;
data = ReadUART(); //read a byte
WriteUART(data);
Example of Use
PIC17C4X, PIC17C756
Writes one byte of data out the software UART.
uart16.h
void WriteUART (static char data);
data
Byte of data written to software UART. The value of data can be
any 8-bit value.
This function writes the specified byte of data out the software
UART. This function operates identically to putcUART.
None
uart16_a.asm
char x;
WriteUART(x);
PIC17C4X, PIC17C756
Reads one byte of data out the software UART.
uart16.h
char ReadUART (void);
None
This function reads a byte of data out the software UART and
returns the byte of data. This function operates identically to
getcUART.
This function returns the byte of data that was read from the
receive data (RXD) pin of the software UART.
uart16_a.asm
char x;
x = ReadUART();
//bounce it back
 2002 Microchip Technology Inc.

Related parts for SW006010