
BAT32G1x9 user manual | Chapter 2 Pin function
38 / 1149
Rev.1.02
2.3.6
Port input mode register (PIMxx).
This is the register that sets the input buffer in bits. When communicating serially with external devices with
different voltage level, the TTL input buffer can be selected.
After generating a reset signal, the value of these registers changes to "00H".
Register address = base a offset address; The base address of the PIM register is 0x40040000, and the
partial address is shown in the figure below.
Figure2-6 format of port input mode register
symbol
7
6
5
4
3
2
1
0
Offset
address
After
reset
R/W
PIM0
0
0
0
PIM04
PIM03
0
PIM01
0
0x040
00H
R/W
PIM1
PIM17
PIM16
PIM15
PIM14
0
0
0
PIM10
0x041
00H
R/W
PIM3
0
0
0
0
0
0
0
PIM30
0x043
00H
R/W
PIM4
0
0
0
PIM44
PIM43.
0
0
0
0x044
00H
R/W
PIM5
0
0
PIM55
0
0
0
0
PIM50
0x045
00H
R/W
PIM8
0
0
0
0
0
0
PIM81
PIM80
0x048
00H
R/W
PIM14
0
0
0
0
PIM143.
PIM142.
0
0
0x04E
00H
R/W
PIMmn
Selection of input buffers for the
Pmn pin
0
Schmidt input buffer
1
TTL input buffer
Note That the unassigned bits must be set at an initial value.