
M0A21/M0A23 Series
May 06, 2022
Page
245
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
6.5.7
Register Description
Port A-D I/O Mode Control (Px_MODE)
Register
Offset
R/W
Description
Reset Value
PA_MODE
0x000
R/W
PA I/O Mode Control
0xXXXX_XXXX
PB_MODE
0x040
R/W
PB I/O Mode Control
0xXXXX_XXXX
PC_MODE
0x080
R/W
PC I/O Mode Control
0xXXXX_XXXX
PD_MODE
0x0C0
R/W
PD I/O Mode Control
0xXXXX_XXXX
31
30
29
28
27
26
25
24
MODE15
MODE14
MODE13
MODE12
23
22
21
20
19
18
17
16
MODE11
MODE10
MODE9
MODE8
15
14
13
12
11
10
9
8
MODE7
MODE6
MODE5
MODE4
7
6
5
4
3
2
1
0
MODE3
MODE2
MODE1
MODE0
Bits
Description
[2n+1:2n]
n=0,1..15
MODE
Port A-D I/O Pin[n] Mode Control
Determine each I/O mode of Px.n pins.
00 = Px.n is in Input mode.
01 = Px.n is in Push-pull Output mode.
10 = Px.n is in Open-drain Output mode.
11 = Px.n is in Quasi-bidirectional mode.
Note
1:
The
initial
value
of
this
field
is
defined
by
CIOINI
(CONFIG0
[10]).
If CIOINI is set to 0, the default value is 0xFFFF_FFFF and all pins will be quasi-bidirectional mode after chip
powered
on.
If CIOINI is set to 1, the default value is 0x0000_0000 and all pins will be input mode after chip powered on.
Note 2:
The PA.6~PA.15/PB.0~PB.3/PB.8~PB.15/PC.8~15/PD.8~15 pin is ineffective.
Note 3:
The GPA.3 is a input pin.
Note 4:
If MFOS is enabled then GPIO mode setting is ignored.