Inter-integrated circuit (I2C) interface
RM0365
831/1080
DocID025202 Rev 7
28.7.9
PEC register (I2C_PECR)
Address offset: 0x20
Reset value: 0x0000 0000
Access: No wait states
Note:
If the SMBus feature is not supported, this register is reserved and forced by hardware to
“0x00000000”. Please refer to
Section 28.3: I2C implementation
.
Bit 9
ARLOCF
:
Arbitration Lost flag clear
Writing 1 to this bit clears the ARLO flag in the I2C_ISR register.
Bit 8
BERRCF
: Bus error flag clear
Writing 1 to this bit clears the BERRF flag in the I2C_ISR register.
Bits 7:6 Reserved, must be kept at reset value.
Bit 5
STOPCF
: Stop detection flag clear
Writing 1 to this bit clears the STOPF flag in the I2C_ISR register.
Bit 4
NACKCF
:
Not Acknowledge flag clear
Writing 1 to this bit clears the ACKF flag in I2C_ISR register.
Bit 3
ADDRCF
:
Address matched flag clear
Writing 1 to this bit clears the ADDR flag in the I2C_ISR register. Writing 1 to this bit also clears
the START bit in the I2C_CR2 register.
Bits 2:0 Reserved, must be kept at reset value.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
PEC[7:0]
r
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0
PEC[7:0]
Packet error checking register
This field contains the internal PEC when PECEN=1.
The PEC is cleared by hardware when PE=0.