SW006010 Microchip Technology, SW006010 Datasheet - Page 86

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 82
C17 C Compiler Libraries
OpenSWSPI (Continued)
Return Value:
File Name:
Code Example:
putcSWSPI
Function:
File Name:
SetSWCSSPI
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
WriteSWSPI
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
After these definitions have been made, compile the software
SPI files into an executable. For information on compilers, refer
to the MPLAB CXX Compiler User’s Guide (DS51217). Refer to
the MPASM™ User's Guide with MPLINK™ and MPLIB™
(DS33014) for information on linking.
None
swspi16.c
OpenSWSPI();
This function operates identically to WriteSWSPI.
#define in swspi16.h
PIC17C4X, PIC17C756
Sets the chip select (CS) pin that is specified in the
header file.
swspi16.h
void SWSetCSSPI (void);
None
This function sets the I/O pin that is specified in
the chip select (CS) pin for the software SPI.
None
swspi16.c
SetSWCSSPI();
PIC17C4X, PIC17C756
Reads/writes one byte of data out the software SPI.
swspi16.h
char SWWriteSPI (static char data);
data
Byte of data written to software SPI.
This function writes the specified byte of data out the software
SPI and returns the byte of data that was read. This function
does not provide any control of the chip select pin (CS).
This function operates identically to putcSWSPI.
This function returns the byte of data that was read from the
data in (DIN) pin of the software SPI.
swspi16.c
char addr;
WriteSWSPI(addr);
 2002 Microchip Technology Inc.
swspi16.h
swspi16.h
to be

Related parts for SW006010