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

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
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
i2c_poll( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
194
Returns the state of I2C communications in I2C slave mode after an SSP
interrupt. The return value increments with each byte received or sent.
If 0x00 or 0x80 is returned, an i2C_read( ) needs to be performed to read the I2C
address that was sent (it will match the address configured by #USE I2C so this
value can be ignored)
Devices with i
#USE I2C
#INT_SSP
}
ex_slave.c
i2c_poll, i2c_speed, i2c_start, i2c_stop, i2c_slaveaddr,
I2C,
i
i
stream (optional)- specify the stream defined in #USE I
1 (TRUE) or 0 (FALSE)
The I2C_POLL() function should only be used when the built-in SSP is used. This
function returns TRUE if the hardware has a received byte in the buffer. When a
TRUE is returned, a call to I2C_READ() will immediately return the byte that was
received.
Devices with built in I
#USE I2C
2
2
c_poll()
c_poll(stream)
void i2c_isr() {
I2C Overview
state = i2c_isr_state();
if((state== 0 ) || (state== 0x80))
if(state >= 0x80)
else if(state > 0)
i@c_read();
i2c_write(send_buffer[state - 0x80]);
rcv_buffer[state - 1] = i2c_read();
2
c hardware
2
C
i
2
c_write,
2
C
i
2
c_read,
#USE

Related parts for PCDIDE COMPILER