I 2 C Control Register 2 (I2C_Cr2) - ST STM32F423 Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F423:
Table of Contents

Advertisement

RM0430
Bit 2 Reserved, must be kept at reset value
Bit 1 SMBUS: SMBus mode
Bit 0 PE: Peripheral enable
Note: If this bit is reset while a communication is on going, the peripheral is disabled at the
Note:
When the STOP, START or PEC bit is set, the software must not perform any write access
to I2C_CR1 before this bit is cleared by hardware. Otherwise there is a risk of setting a
second STOP, START or PEC request.
2
27.6.2
I
C Control register 2 (I2C_CR2)
Address offset: 0x04
Reset value: 0x0000
15
14
13
Res.
Res.
Res.
LAST
Bits 15:13 Reserved, must be kept at reset value
Bit 12 LAST: DMA last transfer
Note: This bit is used in master receiver mode to permit the generation of a NACK on the last
Bit 11 DMAEN: DMA requests enable
Bit 10 ITBUFEN: Buffer interrupt enable
Bit 9 ITEVTEN: Event interrupt enable
2
0: I
C mode
1: SMBus mode
0: Peripheral disable
1: Peripheral enable
end of the current communication, when back to IDLE state.
All bit resets due to PE=0 occur at the end of the communication.
In master mode, this bit must not be reset before the end of the communication.
12
11
10
9
DMA
ITBUF
ITEVT
EN
EN
EN
rw
rw
rw
rw
0: Next DMA EOT is not the last transfer
1: Next DMA EOT is the last transfer
received data.
0: DMA requests disabled
1: DMA request enabled when TxE=1 or RxNE =1
0: TxE = 1 or RxNE = 1 does not generate any interrupt.
1: TxE = 1 or RxNE = 1 generates Event Interrupt (whatever the state of DMAEN)
0: Event interrupt disabled
1: Event interrupt enabled
This interrupt is generated when:
SB = 1 (Master)
ADDR = 1 (Master/Slave)
ADD10= 1 (Master)
STOPF = 1 (Slave)
BTF = 1 with no TxE or RxNE event
TxE event to 1 if ITBUFEN = 1
RxNE event to 1if ITBUFEN = 1
Inter-integrated circuit (I
8
7
6
ITERR
Res.
Res.
EN
rw
RM0430 Rev 8
5
4
3
2
FREQ[5:0]
rw
rw
rw
rw
2
C) interface
1
0
rw
rw
871/1324
882

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F423 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents