Texas Instruments TMS320C642X manual Icmdr Bit, Bus Activity Description

Page 34

Registerswww.ti.com

Table 14. I2C Mode Register (ICMDR) Field Descriptions (continued)

Bit

Field

Value

Description

 

 

 

 

2-0

BC

0-7h

Bit count bits. BC defines the number of bits (1 to 8) in the next data word that is to be received or

 

 

 

transmitted by the I2C. The number of bits selected with BC must match the data size of the other

 

 

 

device. Note that when BC = 0, a data word has 8 bits.

 

 

 

If the bit count is less than 8, receive data is right aligned in the D bits of ICDRR and the remaining D

 

 

 

bits are undefined. Also, transmit data written to ICDXR must be right aligned.

 

 

0

8 bits per data word

 

 

1h

1 bit per data word

 

 

2h

2 bits per data word

 

 

3h

3 bits per data word

 

 

4h

4 bits per data word

 

 

5h

5 bits per data word

 

 

6h

6 bits per data word

 

 

7h

7 bits per data word

 

 

 

 

Table 15. Master-Transmitter/Receiver Bus Activity Defined by RM, STT, and STP Bits

 

ICMDR Bit

 

 

 

RM

STT

STP

Bus Activity(1)

Description

0

0

0

None

No activity

0

0

1

P

STOP condition

0

1

0

S-A-D..(n)..D

START condition, slave address, n data words (n = value in ICCNT)

0

1

1

S-A-D..(n)..D-P

START condition, slave address, n data words, STOP condition (n = value in ICCNT)

1

0

0

None

No activity

1

0

1

P

STOP condition

1

1

0

S-A-D-D-D..

Repeat mode transfer: START condition, slave address, continuous data transfers

 

 

 

 

until STOP condition or next START condition

1

1

1

None

Reserved bit combination (No activity)

(1)A = Address; D = Data word; P = STOP condition; S = START condition

34 Inter-Integrated Circuit (I2C) Peripheral

SPRUEN0D –March 2011

 

Submit Documentation Feedback

© 2011, Texas Instruments Incorporated

Image 34
Contents Users Guide Submit Documentation Feedback Revision History Appendix aList of Figures List of Tables Read This First Features Not Supported FeaturesPurpose of the Peripheral Functional Block Diagram Industry Standards Compliance StatementBus Structure Multiple I2C Modules ConnectedClocking Diagram for the I2C Peripheral Clock GenerationClock Synchronization Signal DescriptionsInput and Output Voltage Levels Start and Stop Conditions Data ValiditySerial Data Formats 1 7-Bit Addressing FormatFree Data Format Using a Repeated Start Condition2 10-Bit Addressing Format ACKOperating Modes Operating Mode DescriptionEndianness Considerations Operating Modes of the I2C PeripheralNack Bit Generation Nack Bit GenerationWays to Generate a Nack Bit I2C Peripheral Condition Basic OptionalArbitration Procedure Between Two Master-Transmitters ArbitrationHardware Reset Considerations Reset ConsiderationsSoftware Reset Considerations InitializationConfiguring the I2C in Slave Receiver and Transmitter Mode Peripheral Architecture Interrupt Support Power ManagementDMA Events Generated by the I2C Peripheral Inter-Integrated Circuit I2C Registers Emulation ConsiderationsAcronym Register Description Oaddr I2C Own Address Register IcoarI2C Own Address Register Icoar Field Descriptions Bit Field Value DescriptionSCD Icxrdy Icrrdy Ardy Nack I2C Interrupt Mask Register IcimrI2C Interrupt Mask Register Icimr Field Descriptions AASSdir Nacksnt Rsfull Xsmt I2C Interrupt Status Register IcstrI2C Interrupt Status Register Icstr Field Descriptions SdirBit Field AD0An acknowledge bit ACK has been sent by the receiver 2 I2C Clock High-Time Divider Register Icclkh I2C Clock Divider Registers Icclkl and Icclkh1 I2C Clock Low-Time Divider Register Icclkl IcclI2C Data Count Register Iccnt Field Descriptions I2C Data Count Register IccntIcdc I2C Data Receive Register Icdrr Field Descriptions I2C Data Receive Register IcdrrI2C Slave Address Register Icsar I2C Slave Address Register Icsar Field DescriptionsI2C Data Transmit Register Icdxr I2C Data Transmit Register Icdxr Field DescriptionsI2C Mode Register Icmdr I2C Mode Register Icmdr Field DescriptionsRM bit is dont care Icmdr Bit Bus Activity DescriptionHow the MST and FDF Bits Affect the Role of TRX Bit I2C State Function of TRX BitI2C Interrupt Vector Register Icivr Field Descriptions 10 I2C Interrupt Vector Register IcivrIntcode Ignack BCM R/W-0 R/W-1 11 I2C Extended Mode Register IcemdrI2C Extended Mode Register Icemdr Field Descriptions IgnackI2C Prescaler Register Icpsc Field Descriptions 12 I2C Prescaler Register IcpscIpsc Type 13 I2C Peripheral Identification Register ICPID114 I2C Peripheral Identification Register ICPID2 I2CDocument Revision History Reference Additions/Modifications/DeletionsRfid Products ApplicationsDSP TI E2E Community Home