14.6.2.6 I2C Data Count (I2CCNT) Register (Offset = 5h) [reset = 0h]
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 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).
Figure 14-24. I2C Data Count (I2CCNT) Register
15
14
13
12
11
10
9
8
I2CCNT
R/W-0h
7
6
5
4
3
2
1
0
I2CCNT
R/W-0h
Table 14-15. I2C Data Count (I2CCNT) Register Field Descriptions
Bit
Field
Type
Reset
Description
15-0
I2CCNT
R/W
0h
Data count value. I2CCNT indicates the number of data bytes to
transfer or receive.
If a STOP condition is specified (STP=1) then I2CCNT will decrease
after each byte is sent until it reaches zero, which in turn will
generate a STOP condition.
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.
Reset type: SYSRSn
0h (R/W) = data count value is 65536
1h (R/W) = data count value is 1
2h (R/W) = data count value is 2
FFFFh (R/W) = data count value is 65535
Inter-Integrated Circuit Module (I2C)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
863
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......