SW006010 Microchip Technology, SW006010 Datasheet - Page 27

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.
OpenI2C (Continued)
Remarks:
Return Value:
File Name:
Code Examples:
putcI2C
Function:
File Name:
putsI2C
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
slew
The value of function parameter slew can be one of the following
values defined in
SLEW_OFF
SLEW_ON
OpenI2C resets the SSP module to the POR state and then
configures the module for master/slave mode and slew rate
enable/disable.
None
openi2c.c
OpenI2C(MASTER, SLEW_ON);
This function operates identically to WriteI2C.
#define in i2c16.h
PIC17C756
This function is used to write out a data string to the I
i2c16.h
unsigned char putsI2C (static unsigned char far *wrptr);
wrptr
Character type pointer to data objects in PICmicro RAM. The
data objects are written to the I
Master I
bus until a null character is reached. Each byte is written via a
call to the putcI2C function. The actual called function body is
termed WriteI2C. WriteI2C and putcI2C refer to the same
function via a #define statement in the
Slave I
until a null character is reached. Each byte is placed directly in
the
Master I
device responded with a Not Ack which terminated the data
transfer. The function returns 0 if the null character was reached
in the data string.
Slave I
device responded with a Not Ack which terminated the data
transfer. The function returns 0 if the null character was reached
in the data string
putsi2c.c
unsigned char string[] = “data to send”;
unsigned char far *ptrstring;
ptrstring = string;
putsI2C(ptrstring);
SSPBUF
2
2
C mode: This routine writes a string out to the I
C mode: This function returns -1 if the master I
2
2
C mode: This routine writes a data string to the I
C Mode: This function returns -1 if the slave I
Hardware Peripheral Library
register and the putcI2C routine is not called.
i2c16.h:
Slew rate disabled for 100kHz mode
Slew rate enabled for 400kHz mode
2
C device.
i2c16.h
file.
apRNOVS^-page 23
2
C bus.
2
2
2
C
C
C bus
2
C

Related parts for SW006010