SW006010 Microchip Technology, SW006010 Datasheet - Page 69

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
 2002 Microchip Technology Inc.
2.13.2
#include <p17c756.h>
#include <usart16.h>
void main(void)
{
}
WriteUSART1
WriteUSART2 (Continued)
Remarks:
Return Value:
File Name:
Code Example:
// configure USART
OpenUSART1(USART_TX_INT_OFF&USART_RX_INT_OFF&
while(1)
{
}
CloseUSART1();
return;
while(!PORTAbits.RA0)//wait for RA0 high
WriteUSART1(PORTD);//write value of PORTD
if(PORTD == 0x80)
break;
Example of Use
USART_ASYNCH_MODE&USART_EIGHT_BIT&
USART_CONT_RX, 25);
This function writes a byte to the USART transmit buffer. The
9th bit is written as well. The 9th data bits are saved in a union
named
union USART
{
};
The 9th bit is used only if 9-bit mode is enabled.
This function operates identically to putcUSARTx.
None
u1write.c
u2write.c
char x;
WriteUSART2(x);
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;
USART_Status
Hardware Peripheral Library
with the following declaration:
apRNOVS^-page 65

Related parts for SW006010