11.4.19 P2: Port 2 Pin Latch
Bit
7
6
5
4
3
2
1
0
Name
Reserved
B1
B0
Access
R
RW
RW
Reset
0x00
0
0
SFR Page = ALL; SFR Address: 0xA0 (bit-addressable)
Bit
Name
Reset
Access Description
7:2
Reserved
Must write reset value.
1
B1
0
RW
Port 2 Bit 1 Latch.
Value
Name
Description
0
LOW
P2.1 is low. Set P2.1 to drive low.
1
HIGH
P2.1 is high. Set P2.1 to drive or float high.
0
B0
0
RW
Port 2 Bit 0 Latch.
See bit 1 description
Writing this register sets the port latch logic value for the associated I/O pins configured as digital I/O.
Reading this register returns the logic value at the pin, regardless if it is configured as output or input.
11.4.20 P2MDIN: Port 2 Input Mode
Bit
7
6
5
4
3
2
1
0
Name
Reserved
B1
B0
Access
R
RW
RW
Reset
0x00
0
0
SFR Page = 0x20; SFR Address: 0xF3
Bit
Name
Reset
Access Description
7:2
Reserved
Must write reset value.
1
B1
0
RW
Port 2 Bit 1 Input Mode.
Value
Name
Description
0
ANALOG
P2.1 pin is configured for analog mode.
1
DIGITAL
P2.1 pin is configured for digital mode.
0
B0
0
RW
Port 2 Bit 0 Input Mode.
See bit 1 description
Port pins configured for analog mode have their weak pullup, digital driver, and digital receiver disabled.
EFM8UB3 Reference Manual
Port I/O, Crossbar, External Interrupts, and Port Match
silabs.com
| Building a more connected world.
Rev. 0.2 | 119