BAT32G1x9 user manual | Chapter 2 Pin function
30 / 1149
Rev.1.02
2.3 Registers that control port functionality
•
Control the ports through the following registers.
•
Port Mode Register (PMxx).
•
Port register (Pxx).
•
Port Set control register (PSETxx).
•
Port Clearing Control Register (PCLRxx).
•
Pull-up resistor selection register (PUxx).
•
Port Input mode register (PIMx).
•
Port Output mode register (POMx).
•
Port Mode Control Register (PMCxx).
•
Port Readback register (PREADxx).
•
Peripheral I/O redirect register (PIORx).
•
Global Digital Input Disable Register (GDIDIS).
Note: The registers and bits allocated vary by product. For the registers and bits assigned to each product, please refer to
the following table. The unassigned bits must be initialized.
Table2-1 Registers assigned by product and their bits (1/3).
port
Bit name
100
Pins
80
Pins
64
Pins
(-
A)Not
e
64
Pins
48
Pin (-
A)
Note
48
Pins
PMxx
register
Pxx
register
PSETxx
register
PCLRxx
register
PUxx
register
PIMxx
register
POMxx
register
PMCxx
register
PREADxx
register
Port 0
0
PM00
P00
PSET00
PCLR00
PU00
—
POM00
PMC00 Note
1
PREAD00
○
○
○
○
○
○
1
PM01
P01
PSET01
PCLR01
PU01
PIM01
—
PMC01 Note
1
PREAD01
○
○
○
○
○
○
2
PM02
P02
PSET02
PCLR02
PU02
—
POM02
PMC02
PREAD02
○
○
○
○
—
—
3
PM03
P03
PSET03
PCLR03
PU03
PIM03
POM03
PMC03
PREAD03
○
○
○
○
—
—
4
PM04
P04
PSET04
PCLR04
PU04
PIM04
POM04
PMC04
PREAD04
○
○
○
○
—
—
5
PM05
P05
PSET05
PCLR05
PU05
—
—
—
PREAD05
○
○
○
○
—
—
6
PM06
P06
PSET06
PCLR06
PU06
—
—
—
PREAD06
○
○
○
○
—
—
Port 1
0
PM10
P10
PSET10
PCLR10
PU10
PIM10
POM10
PMC10
PREAD10
○
○
○
○
○
○
1
PM11
P11
PSET11
PCLR11
PU11
—
POM11
PMC11
PREAD11
○
○
○
○
○
○
2
PM12
P12
PSET12
PCLR12
PU12
—
—
—
PREAD12
○
○
○
○
○
○
3
PM13
P13
PSET13
PCLR13
PU13
—
POM13
—
PREAD13
○
○
○
○
○
○
4
PM14
P14
PSET14
PCLR14
PU14
PIM14
POM14
—
PREAD14
○
○
○
○
○
○
5
PM15
P15
PSET15
PCLR15
PU15
PIM15
POM15
—
PREAD15
○
○
○
○
○
○
6
PM16
P16
PSET16
PCLR16
PU16
PIM16
—
—
PREAD16
○
○
○
○
○
○
7
PM17
P17
PSET17
PCLR17
PU17
PIM17
POM17
—
PREAD17
○
○
○
○
○
○
Port 2
0
PM20
P20
PSET20
PCLR20
—
—
—
PMC20
PREAD20
○
○
○
○
○
○
1
PM21
P21
PSET21
PCLR21
—
—
—
PMC21
PREAD21
○
○
○
○
○
○
2
PM22
P22
PSET22
PCLR22
—
—
—
PMC22
PREAD22
○
○
○
○
○
○
3
PM23
P23
PSET23
PCLR23
—
—
—
PMC23
PREAD23
○
○
○
○
○
○
4
PM24
P24
PSET24
PCLR24
—
—
—
PMC24
PREAD24
○
○
○
○
○
○
5
PM25
P25
PSET25
PCLR25
—
—
—
PMC25
PREAD25
○
○
○
○
○
○
6
PM26
P26
PSET26
PCLR26
—
—
—
PMC26
PREAD26
○
○
○
○
○
○
7
PM27
P27
PSET27
PCLR27
—
—
—
PMC27
PREAD27
○
○
○
○
○
○
Port 3
0
PM30
P30
PSET30
PCLR30
PU30
PIM30
POM30
—
PREAD30
○
○
○
○
○
○
1
PM31
P31
PSET31
PCLR31
PU31
—
—
—
PREAD31
○
○
○
○
○
○
Note 1
Limited to
48-pin
products. (-A) indicates that it is limited to BATG1xx-A series products.