Download Print this page

ST STM32F301 6 Series Reference Manual page 703

Advanced arm-based 32-bit mcus

Advertisement

RM0366
Bit 10 OA1MODE: Own address 1 10-bit mode
Note: This bit can be written only when OA1EN = 0.
Bits 9:0 OA1[9:0]: Interface own target address
Note: These bits can be written only when OA1EN = 0.
25.9.4
I2C own address 2 register (I2C_OAR2)
Address offset: 0x0C
Reset value: 0x0000 0000
Access: no wait states, except if a write access occurs while a write access is ongoing. In
this case, wait states are inserted in the second write access, until the previous one is
completed. The latency of the second write access can be up to 2x PCLK1 + 6 x I2CCLK.
31
30
29
Res.
Res.
Res.
Res.
15
14
13
OA2EN
Res.
Res.
Res.
rw
Bits 31:16 Reserved, must be kept at reset value.
Bit 15 OA2EN: Own address 2 enable
Bits 14:11 Reserved, must be kept at reset value.
Bits 10:8 OA2MSK[2:0]: Own address 2 masks
Note: These bits can be written only when OA2EN = 0.
Bits 7:1 OA2[7:1]: Interface address
Note: These bits can be written only when OA2EN = 0.
Bit 0 Reserved, must be kept at reset value.
0: Own address 1 is a 7-bit address.
1: Own address 1 is a 10-bit address.
7-bit addressing mode: OA1[7:1] contains the 7-bit own target address. Bits OA1[9], OA1[8]
and OA1[0] are don't care.
10-bit addressing mode: OA1[9:0] contains the 10-bit own target address.
28
27
26
25
Res.
Res.
Res.
12
11
10
9
Res.
OA2MSK[2:0]
rw
rw
0: Own address 2 disabled. The received target address OA2 is NACKed.
1: Own address 2 enabled. The received target address OA2 is ACKed.
000: No mask
001: OA2[1] is masked and don't care. Only OA2[7:2] are compared.
010: OA2[2:1] are masked and don't care. Only OA2[7:3] are compared.
011: OA2[3:1] are masked and don't care. Only OA2[7:4] are compared.
100: OA2[4:1] are masked and don't care. Only OA2[7:5] are compared.
101: OA2[5:1] are masked and don't care. Only OA2[7:6] are compared.
110: OA2[6:1] are masked and don't care. Only OA2[7] is compared.
111: OA2[7:1] are masked and don't care. No comparison is done, and all (except reserved)
7-bit received addresses are acknowledged.
As soon as OA2MSK ≠ 0, the reserved I2C addresses (0b0000xxx and 0b1111xxx) are
not acknowledged, even if the comparison matches.
7-bit addressing mode: 7-bit address
Inter-integrated circuit interface (I2C)
24
23
22
Res.
Res.
Res.
8
7
6
rw
rw
rw
RM0366 Rev 5
21
20
19
18
Res.
Res.
Res.
Res.
5
4
3
2
OA2[7:1]
rw
rw
rw
rw
17
16
Res.
Res.
1
0
Res.
rw
703/874
711

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series