
AT32F413
Series Reference Manual
2022.06.27
Page 134
Rev 2.00
11.4.6 I
2
C debug mode
When the microcontroller enters debug mode (CortexTM-M4F halted), the SMBUS timeout either
continues to work or stops, depending on the I2Cx_SMBUS_TIMEOUT configuration bit in the DEBUG
module.
11.5 I
2
C registers
These peripheral registers must be accessed by half-word (16 bits) or word (32 bits).
Table 11-1
I
2
C register map and reset value
Register
Offset
Reset value
I2C_CTRL1
0x00
0x0000
I2C_CTRL2
0x04
0x0000
I2C_OADDR1
0x08
0x0000
I2C_OADDR2
0x0C
0x0000
I2C_DT
0x10
0x0000
I2C_STS1
0x14
0x0000
I2C_STS2
0x18
0x0000
I2C_CLKCTRL
0x1C
0x0000
I2C_TMRISE
0x20
0x0002
11.5.1 Control register1 (I2C_CTRL1)
Bit
Register
Reset value
Type
Description
Bit 15
RESET
0x0
rw
I
2
C peripheral reset
0: I
2
C peripheral is not at reset state.
1: I
2
C peripheral is at reset state.
Note: This bit can be used only when the BUSYF bit is “1”,
and no Stop condition is detected on the bus.
Bit 14
Reserved
0x0
resd
Kept at its default value.
Bit 13
SMBALERT
0x0
rw
SMBus alert pin set
This bit is set or cleared by software. It is cleared by
hardware when I2CEN=0.
0: SMBus alert pin high.
1: SMBus alert pin low.
Bit 12
PECTEN
0x0
rw
Request PEC transfer enable
This bit is set or cleared by software. It is cleared by
hardware after PECTEN is sent, or under Start/Stop
condition.
0: No PEC transfer
1: PEC transfer
Bit 11
MACKCTRL
0x0
rw
Master receive mode acknowledge control
0: ACKEN bit controls ACK of the current byte being
transferred
1: ACKEN bit controls ACK of the next byte to be
transferred.
This bit is used only when the number of bytes to receive
is equal to 2 so as to ensure that the host responds to ACK
in time.
Bit 10
ACKEN
0x0
rw
Acknowledge enable
This bit is set or cleared by software.
0: Disabled (no acknowldge sent)
1: Enabled (acknowledge sent)