BAT32G1x9User Manual | Chapter 27 Key interrupt function
1068 / 1149
Rev.1.02
27.3.2
Port mode register (PMx).
When used as key interrupt input pins (KR0~KR7), the PMCx x bits must be set to "0" and PMxx respectively
The bits are placed "1" respectively. In this case, the output latch of Pxx can be "0" or "1".
The PM x register is set via the 8-bit memory operation instruction.
After the reset signal is generated, the value of this register changes to "FFH".
An internal pull-up resistor can be used in bits by a pull-up resistor select register (PU x).
For the format of the port mode register, see "2.3.1 Port Mode Register (PMxx)".