BAT32G1x9 user manual | Chapter 32 Security features
1124 / 1149
Rev.1.02
32.3.7
Digital output signal level detection function on input/output pins
The IEC60730 standard requires confirmation that the I/O function is normal.
Digital Output Signal Level Detection on Input/Output Pins Reads the Digital Output Level of the Pin
when the Pin is in Output Mode.
32.3.7.1
Port Mode Select Register (PMS).
This register selects whether to read the value of the output latch of the port or the output level of the
read pin when the pin is output mode (the PMmn bit of the port mode register (PMm) is "0").
Set the PMS registers via the 8-bit memory operation instructions.
After generating a reset signal, the value of this register changes to "00H".
Figure 32-12
format of port mode selection register (PMS).
Address: 4004087BH
after reset:
00H
R/W
Symbol
7
6
5
4
3
2
1
0
PMS
PMS0
Selection of data to read when the pin is in output mode
0
Read
the value of the Pmn register.
1
Read the digital output level of the pin.
Note 1
For pins that use the
pulse output forced cutoff function of timer M to turn the pin into a high impedance state, if
the digital output level of the pin is read, the read value is
"0".
Note m = 0
to
7,
12
to
14
n=0~7
0
0
0
0
0
0
0
PMS0