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

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_slaveaddr( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
i2c_start( )
Syntax:
Parameters:
Returns:
Function:
196
i
i
i
stream: specify the stream defined in #USE I
restart: 2 – new restart is forced instead of start
1 – normal start is performed
0 (or not specified) – restart is done only if the compiler last encountered a
I
undefined
Issues a start condition when in the I
clock is held low until I2C_WRITE() is called. If another I
same function before an i
issued. Note that specific I
I2C_START function will now accept an optional parameter. If 1 the compiler
assumes the bus is in the stopped state. If 2 the compiler treats this I2C_START
as a restart. If no parameter is passed a 2 is used only if the compiler compiled a
I2C_START last with no I2C_STOP since.
I2C_SlaveAddr(addr);
I2C_SlaveAddr(stream, addr);
addr = 8 bit device address
stream(optional) - specifies the stream used in #USE I2C
nothing
This functions sets the address for the I2C interface in slave mode.
Devices with built in I2C
#USE I2C
i2c_SlaveAddr(0x08);
i2c_SlaveAddr(i2cStream1, 0x08);
ex_slave.c
i2c_poll, i2c_speed, i2c_start, i2c_stop, i2c_isr_state,
I2C,
2
2
2
2
c_start()
c_start(stream)
c_start(stream, restart)
C_START and no I
I2C Overview
2
C_STOP
2
2
c_stop is called, then a special restart condition is
C protocol depends on the slave device. The
2
C master mode. After the start condition the
2
C
i
2
c_write,
2
C_start is called in the
i
2
c_read,
#USE

Related parts for PCDIDE COMPILER