Pre-Processor
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
NOINIT
Specifies the SCL pin (pin is a bit address)
Specifies the SDA pin
Specifies the slave mode address
Use the fast I 2 C specification.
Sets the speed to nnnnnn hz
Use the slow I 2 C specification
Restart the WDT while waiting in I 2 C_READ
Use hardware I 2 C functions.
Use software I2C functions.
Does not allow signals to float high, signals
are driven from low to high
Bus used is not I 2 C bus, but very similar
Associates a stream identifier with this I 2 C
port. The identifier may then be used in
functions like i 2 c_read or i 2 c_write.
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
No initialization of the I2C peripheral is
performed. Use I2C_INIT() to initialize
peripheral at run time.
Only some chips allo w the following:
DATA_HOLD
ADDRESS_HOLD
SDA_HOLD
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
Purpose:
CCS offers support for the hardware-based I2C TM and a software-based master
I2C TM device.(For more information on the hardware-based I2C module, please
consult the datasheet for your target device; not all PICs support I2C TM .
The I 2 C library contains functions to implement an I 2 C bus. The #USE I2C
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 only be
used with the built-in SSP. The functions created with this directive are exported
when using multiple compilation units. To access the correct function use the
125
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY