SW006010 Microchip Technology, SW006010 Datasheet - Page 68

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 64
C17 C Compiler Libraries
ReadUSART1
ReadUSART2 (Continued)
Remarks:
Return Value:
File Name:
Code Example:
WriteUSART1
WriteUSART2
Device:
Function:
Include:
Prototype:
Arguments:
WriteUSART1: PIC17C4X, PIC17C756
WriteUSART2: PIC17C756
Writes a byte (one character) to the USART transmit buffer,
including the 9th bit if enabled.
usart16.h
void WriteUSART1 (static char data);
void WriteUSART2 (static char data);
data
The value of data can be any number from 0x00 to 0xff.
This function reads a byte out of the USART receive buffer.
The 9th bit is recorded as well as the status bits. The status bits
and the 9th data bits are saved in a union named
USART_Status
union USART
{
};
The 9th bit is recorded only if 9-bit mode is enabled. The status
bits are always recorded. This function operates identically to
getcUSARTx.
This function returns the next character in the USART receive
buffer.
u1read.c
u2read.c
char x;
x = ReadUSART2();
unsigned char val;
struct
{
};
unsigned RX1_NINE:1;
unsigned TX1_NINE:1;
unsigned FRAME_ERROR1:1;
unsigned OVERRUN_ERROR1:1;
unsigned RX2_NINE:1;
unsigned TX2_NINE:1;
unsigned FRAME_ERROR2:1;
unsigned OVERRUN_ERROR2:1;
with the following declaration:
 2002 Microchip Technology Inc.

Related parts for SW006010