SW006010 Microchip Technology, SW006010 Datasheet - Page 89

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.
OpenUART (Continued)
Return Value:
File Name:
Code Example:
putcUART
Function:
File Name:
putsUART
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
PIC17C4X, PIC17C756
Writes a string of characters to the software UART.
uart16.h
void getsUART (static char *buffer);
buffer
Pointer to characters written to data string of software UART.
This function writes a string of characters to the software UART.
The entire string including the null is sent to the UART.
None
uart16_c.c
char mybuff [20];
putsUART(mybuff);
I/O pin definitions
SWTXD
SWTXDpin
TRIS_SWTXD
SWRXD
SWRXDpin
TRIS_SWRXD
UART_PORT_BSR
where
After these definitions have been made, compile the software
ART files into an object to be linked. Refer to the MPLAB CXX
Compiler User’s Guide (DS51217) for information on compilers.
Refer to the
MPLIB™ (DS33014)
None
uart16_c.c
OpenUART();
This function operates identically to WriteUART.
#define in uart16.h
x
is the
Software Peripheral Library
MPASM™ User's Guide with MPLINK™ and
PORT
,
?
is the pin number,
equ
equ
equ
equ
equ
equ
equ
for information on linking.
PORTx
?
DDRx
PORTx
?
DDRx
b
b
is the
apRNOVS^-page 85
PORTx
bank

Related parts for SW006010