PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 212

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
i2c_write( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
198
i
i
data is an 8 bit int
stream - specify the stream defined in #USE I
This function returns the ACK Bit.
0 means ACK, 1 means NO ACK, 2 means there was a collision if in Multi_Master
Mode.
This does not return an ACK if using i2c in slave mode.
Sends a single byte over the I
generate a clock with the data and in slave mode it will wait for the clock from the
master. No automatic timeout is provided in this function. This function returns the ACK
bit. The LSB of the first write after a start determines the direction of data transfer (0 is
master to slave). Note that specific I
All devices.
#USE I2C
long cmd;
i2c_start();
i2c_write(0xa0);// Device address
i2c_write(cmd);// Low byte of command
i2c_write(cmd>>8);// High byte of command
i2c_stop();
ex_extee.c
i2c_poll, i2c_speed, i2c_start, i2c_stop, i2c_slaveaddr, i2c_isr_state,
#USE
2
2
c_write (data)
c_write (stream, data)
...
I2C,
I2C Overview
with
2416.c
// Start condition
// Stop condition
2
C interface. In master mode this function will
2
C protocol depends on the slave device.
2
C
i
2
c_read,

Related parts for PCDIDE COMPILER