PCWHD IDE COMPILER Custom Computer Services Inc (CCS), PCWHD IDE COMPILER Datasheet - Page 156

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
#USE I2C
Syntax:
Elements:
Purpose:
142
#USE I2C (options)
Options are separated by commas and may be:
Only some chips allow the following:
CCS offers support for the hardware-based I2C
I2C
consult the datasheet for your target device; not all PICs support I2C
The I
remains in effect for the I2C_START, I2C_STOP, I2C_READ, I2C_WRITE and
I2C_POLL functions until another USE I2C is encountered. Software functions
are generated unless the FORCE_HW is specified. The SLAVE mode should
MASTER
MULTI_MASTER
SLAVE
SCL=pin
SDA=pin
ADDRESS=nn
FAST
FAST=nnnnnn
SLOW
RESTART_WDT
FORCE_HW
FORCE_SW
NOFLOAT_HIGH
SMBUS
STREAM=id
NO_STRETCH
MASK=nn
I2C1
I2C2
DATA_HOLD
ADDRESS_HOLD
SDA_HOLD
TM
2
device.(For more information on the hardware-based I2C module, please
C library contains functions to implement an I
Sets to the master mode
Set the multi_master mode
Set the slave mode
Specifies the SCL pin (pin is a bit address)
Specifies the SDA pin
Specifies the slave mode address
Use the fast I
Sets the speed to nnnnnn hz
Use the slow I
Restart the WDT while waiting in I
Use hardware I
Use software I2C functions.
Does not allow signals to float high, signals are driven
from low to high
Bus used is not I
Associates a stream identifier with this I
identifier may then be used in functions like i
i
Do not allow clock streaching
Set an address mask for parts that support it
Instead of SCL= and SDA= this sets the pins to the first
module
Instead of SCL= and SDA= this sets the pins to the
second module
2
No ACK is sent until I2C_READ is called for data bytes
(slave only)
No ACK is sent until I2C_read is called for the address
byte (slave only)
Min of 300ns holdtime on SDA a from SCL goes low
c_write.
2
2
C specification.
C specification
2
C functions.
2
C bus, but very similar
TM
and a software-based master
2
C bus. The #USE I2C
2
C_READ
2
C port. The
2
c_read or
TM
.

Related parts for PCWHD IDE COMPILER