SW006010 Microchip Technology, SW006010 Datasheet - Page 79

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.
SWAckI2C (Continued)
Return Value:
File Name:
Code Example:
SWGetcI2C
Function:
File Name:
SWGetsI2C
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
SWNotAckI2C
Function:
File Name:
far ram union i2cbus_state
{
} BUS_STATUS; define union/struct
This function operates identically to SWNotAckI2C.
None
swacki2c.c
SWAckI2C();
This function operates identically to SWReadI2C.
#define in swi2c16.h
PIC17CXXX
Reads in data string via software I
swi2c16.h
unsigned char SWGetsI2C (static unsigned char far
*rdptr, static unsigned char length);
rdptr
Character type pointer to PICmicro RAM for storage of data
read from I
length
Number of bytes to read from I
This function reads in a predetermined data string length. Each
byte is retrieved via a call to the SWGetcI2C function.
This function returns -1 if all bytes have been received and the
master generated a not ack bus condition.
swgtsi2c.c
char x[10];
SWGetsI2C(x,5);
This function operates identically to SWAckI2C.
#define
struct
{
};
unsigned char dummy; dummy variable
unsigned busy :1; bus state is busy
unsigned clk
unsigned ack
unsigned
in
2
Software Peripheral Library
swi2c16.h
C device.
:1; clock timeout or
:1; acknowledge error or
:5; bit padding
failure
not ACK
2
C bus.
2
C implementation.
apRNOVS^-page 75

Related parts for SW006010