SW006010 Microchip Technology, SW006010 Datasheet - Page 80

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 76
C17 C Compiler Libraries
SWPutcI2C
Function:
File Name:
SWPutsI2C
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Examples:
SWReadI2C
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
PIC17CXXX
Reads a single data byte (one character) via software I
implementation.
swi2c16.h
unsigned char SWReadI2C (void);
None
This function reads in a single data byte by generating the
appropriate signals on the predefined I
This function returns the acquired I
error in this function, the return value will be -1. This condition
can be evaluated by testing the bit field
bit field is 1, then there was an error, else it is a 0. This function
operates identically to SWGetcI2C.
swgtci2c.c
char x;
x = SWReadI2C();
This function operates identically to SWWriteI2C.
#define in swi2c16.h
PIC17CXXX
Writes out data string via software I
swi2c16.h
unsigned char SWPutsI2C
(static unsigned char far *wrdptr);
wrdptr
Character type pointer to data objects in PICmicro RAM. The
data objects are written to the I
This function writes out a data string until a null character is
evaluated. Each byte is written via a call to the SWPutcI2C
function. The actual called function body is termed
SWWriteI2C. SWPutcI2C and SWWriteI2C refer to the same
function via a
This function returns -1 if there was an error else returns a 0.
swptsi2c.c
char mybuff [20];
SWPutsI2C(mybuff);
#define
statement in the
2
C device.
2
2
C data byte. If there was an
C implementation.
 2002 Microchip Technology Inc.
2
C clock line.
BUS_STATUS.clk
swi2c16.h
file.
2
C
. If this

Related parts for SW006010