I2C Data Count Register (I2Ccnt); I2C Data Receive Register (I2Cdrr); I2C Data Transmit Register (I2Cdxr); I2C Data Count Register (I2Ccnt) Field Descriptions - Texas Instruments Concerto F28M35 Series Technical Reference Manual

Table of Contents

Advertisement

I2C Module Registers

14.5.10 I2C Data Count Register (I2CCNT)

I2CCNT is a 16-bit register used to indicate how many data bytes to transfer when the I2C module is
configured as a transmitter, or to receive when configured as a master receiver. In the repeat mode (RM =
1), I2CCNT is not used. The bits of I2CCNT are shown and described in
respectively.
The value written to I2CCNT is copied to an internal data counter. The internal data counter is
decremented by 1 for each byte transferred (I2CCNT remains unchanged). If a STOP condition is
requested in the master mode (STP = 1 in I2CMDR), the I2C module terminates the transfer with a STOP
condition when the countdown is complete (that is, when the last byte has been transferred).
15
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Bit
Field
Value
15-0
ICDC
0000h
0001h-FFFFh

14.5.11 I2C Data Receive Register (I2CDRR)

I2CDRR (see
Figure 14-28
The I2C module can receive a data byte with 1 to 8 bits. The number of bits is selected with the bit count
(BC) bits in I2CMDR. One bit at a time is shifted in from the SDA pin to the receive shift register
(I2CRSR). When a complete data byte has been received, the I2C module copies the data byte from
I2CRSR to I2CDRR. The CPU cannot access I2CRSR directly.
If a data byte with fewer than 8 bits is in I2CDRR, the data value is right-justified, and the other bits of
I2CDRR(7-0) are undefined. For example, if BC = 011 (3-bit data size), the receive data is in I2CDRR(2-
0), and the content of I2CDRR(7-3) is undefined.
When in the receive FIFO mode, the I2CDRR register acts as the receive FIFO buffer.
15
Reserved
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 14-19. I2C Data Receive Register (I2CDRR) Field Descriptions
Bit
Field
15-8
Reserved
7-0
DATA

14.5.12 I2C Data Transmit Register (I2CDXR)

The CPU writes transmit data to I2CDXR (see
a data byte with 1 to 8 bits. Before writing to I2CDXR, specify how many bits are in a data byte by loading
the appropriate value into the bit count (BC) bits of I2CMDR. When writing a data byte with fewer than 8
bits, make sure the value is right-aligned in I2CDXR.
1032
C28 Inter-Integrated Circuit Module
Figure 14-27. I2C Data Count Register (I2CCNT)
Table 14-18. I2C Data Count Register (I2CCNT) Field Descriptions
Description
Data count value. ICDC indicates the number of data bytes to transfer or receive. The value in
I2CCNT is a don't care when the RM bit in I2CMDR is set to 1.
The start value loaded to the internal data counter is 65536.
The start value loaded to internal data counter is 1-65535.
and
Table
14-19) is a 16-bit register used by the CPU to read received data.
Figure 14-28. I2C Data Receive Register (I2CDRR)
R-0
Value
Description
These reserved bit locations are always read as zeros. A value written to this field has no effect.
Receive data
Copyright © 2012–2019, Texas Instruments Incorporated
ICDC
R/W-0
8
7
Figure 14-29
and
Table
SPRUH22I – April 2012 – Revised November 2019
Figure 14-27
and
Table
DATA
R-0
14-20). This 16-bit register accepts
Submit Documentation Feedback
www.ti.com
14-18,
0
0

Advertisement

Table of Contents
loading

Table of Contents