SW006010 Microchip Technology, SW006010 Datasheet - Page 54

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 50
C17 C Compiler Libraries
putcSPI
Function:
File Name:
putsSPI
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
ReadSPI
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
WriteSPI
Device:
Function:
Include:
Prototype:
Arguments:
This function operates identically to WriteSPI.
#define in spi16.h
PIC17C756
Writes data string out to the SPI bus.
spi16.h
void putsSPI (static unsigned char far *wrptr);
wrptr
Pointer to character type data objects in PICmicro RAM. Those
objects pointed to by wrptr will be written to the SPI bus.
This function writes out a data string to the SPI bus device. The
routine is terminated by reading a null character in the data
string.
None
putsspi.c
unsigned char far *wrptr = “Hello!”;
putsSPI(wrptr);
PIC17C756
Reads a single byte (one character) from the
spi16.h
unsigned char ReadSPI (void);
None
This function initiates a SPI bus cycle for the acquisition of a
byte of data. This function operates identically to getcSPI.
This function returns a byte of data read during a SPI read
cycle.
readspi.c
char x;
x = ReadSPI();
PIC17C756
Writes a single byte of data (one character) out to the SPI bus.
spi16.h
unsigned char WriteSPI (static unsigned char
data_out);
data_out
Single byte to write to SPI device on bus.
 2002 Microchip Technology Inc.
SSPBUF
register.

Related parts for SW006010