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

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
Examples:
Example Files:
Also See:
i2c_read( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
i2c_start();
i2c_write(0xc1); // Device address/Read
count=0;
while(count!=4) {
}
i2c_stop();
ex_slave.c
i2c_speed, i2c_start, i2c_stop, i2c_slaveaddr, i2c_isr_state,
#USE
data = i
data = i
data = i
ack -Optional, defaults to 1.
0 indicates do not ack.
1 indicates to ack.
stream - specify the stream defined in #USE I2C
data - 8 bit int
Reads a byte over the I2C interface. In master mode this function will generate
the clock and in slave mode it will wait for the clock. There is no timeout for the
slave, use i2c_poll() to prevent a lockup. Use restart_wdt() in the #USE I2C to
strobe the watch-dog timer in the slave mode while waiting.
All devices.
#USE I2C
i2c_start();
i2c_write(0xa1);
data1 = i2c_read();
data2 = i2c_read();
i2c_stop();
ex_extee.c
i2c_poll, i2c_speed, i2c_start, i2c_stop, i2c_slaveaddr, i2c_isr_state,
#USE
while(!i2c_poll()) ;
buffer[count++]= i2c_read();
I2C,
I2C,
2
2
2
c_read();
c_read(ack);
c_read(stream, ack);
I2C Overview
with
I2C Overview
2416.c
// Start condition
// Stop condition
//Read Next
i
2
c_write,
i
2
i
2
c_write,
c_read,
195

Related parts for PCDIDE COMPILER