SW006010 Microchip Technology, SW006010 Datasheet - Page 26

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 22
C17 C Compiler Libraries
IdleI2C
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
NotAckI2C
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
OpenI2C
Device:
Function:
Include:
Prototype:
Arguments:
PIC17C756
Generates I
i2c16.h
void NotAckI2C (void);
None
This function generates an I
None
noacki2c.c
NotAckI2C();
PIC17C756
Configures the SSP module.
i2c16.h
void OpenI2C (static unsigned char sync_mode, static unsigned
char slew);
sync_mode
The value of function parameter sync_mode can be one of the
following values defined in
SLAVE_7
SLAVE_10
MASTER
PIC17C756
Generates wait condition until I
i2c16.h
void IdleI2C (void);
None
This function checks the
the
register. When the state of any of these bits is a logic 1 the
function loops on itself. When all of these bits are clear the
function terminates and returns to the calling function. The
IdleI2C
does not allow for spooling of bus sequences. The I
peripheral must be in an idle state before an I
be initiated or a write collision will be generated.
None
idlei2c.c
IdleI2C();
SEN, RSEN, PEN, RCEN
function is required since the hardware I
2
C bus Not Acknowledge condition.
I
I
I
2
2
2
C Slave mode, 7-bit address
C Slave mode, 10-bit address
C Master mode
R/W
i2c16.h:
2
C bus Not Acknowledge condition.
and
bit of the
2
C bus is idle.
ACKEN
 2002 Microchip Technology Inc.
SSPSTAT
bits of the
2
C operation can
register and
2
C peripheral
SSPCON2
2
C

Related parts for SW006010