BAT32G1x9 user manual | Chapter 2 Pin function
41 / 1149
Rev.1.02
2.3.9
Port read-back register (PREADxx).
This is a read-only register that can be read to get the port level when the port is an ordinary digital GPIO.
Register address = base a offset address; The base address of the port register is 0x40040000,
and the offset address is shown in the figure below.
Figure 2-9
Format of port read-back register
symbol
7
6
5
4
3
2
1
0
address
After
reset
R/W
PREAD0
0
PREAD06 PREAD05 PREAD04 PREAD03 PREAD02 PREAD01 PREAD00
0x0A0
xxH
R
PREAD1 PREAD17 PREAD16 PREAD15 PREAD14 PREAD13 PREAD12 PREAD11 PREAD10
0x0A1
xxH
R
PREAD2 PREAD27 PREAD26 PREAD25 PREAD24 PREAD23 PREAD22 PREAD21 PREAD20
0x0A2
xxH
R
PREAD3
0
0
0
0
0
0
PREAD31 PREAD30
0x0A3
xxH
R
PREAD4 PREADC47 PREADC46 PREADC45 PREADC44 PREAD43
PREAD42
PREAD41 PREAD40
0x0A4
xxH
R
PREAD5 PREAD57 PREAD56 PREAD55
PREAD54
PREAD53
PREAD52
PREAD51 PREAD50
0x0A5
xxH
R
PREAD6 PREAD67 PREAD66 PREAD65 PREAD64 PREAD63 PREAD62 PREAD61 PREAD60
0x0A6
xxH
R
PREAD7 PREAD77 PREAD76 PREAD75 PREAD74 PREAD73 PREAD72 PREAD71 PREAD70
0x0A7
xxH
R
PREAD8 PREAD87 PREAD86 PREAD85 PREAD84 PREAD83 PREAD82 PREAD81 PREAD80
0x0A8
xxH
R
PREAD10
0
0
0
0
0
PREAD102 PREAD101 PREAD100 0x0AA
xxH
R
PREAD11
0
0
0
0
0
0
PREAD111 PREAD110 0x0AB
xxH
R
PREAD12
0
0
0
PREAD124 PREAD123 PREAD122 PREAD121 PREAD120 0x0AC
xxH
R
PREAD13 PREAD137 PREAD136
0
0
0
0
0
PREAD130 0x0AD
xxH
R
PREAD14 PREAD147 PREAD146 PREAD145 PREAD144 PREAD143 PREAD142 PREAD141 PREAD140 0x0AE
xxH
R
PREAD15
0
PREAD156 PREAD155 PREAD154 PREAD153 PREAD152 PREAD151 PREAD150 0x0AF
xxH
R
*The readout value of this register after reset depends on the status of each port.
PREADmn
Pmn port status readback
Output mode/input mode
0
The port is low.
1
The port is high.