RL78/G1H CHAPTER 24 SAFETY FUNCTIONS
R01UH0575EJ0120 Rev. 1.20 Page 795 of 920
Dec 22, 2016
24.3.9 Digital output signal level detection function for I/O pins
In the IEC60730, it is required to check that the I/O function correctly operates.
By using the digital output signal level detection function for I/O pins, the digital output level of the pin can be
read when the port is set to output mode.
24.3.9.1 Port mode select register (PMS)
This register is used to select the output level from output latch level or pin output level when the pin is output
mode in which PMmn bit of port mode register (PMm) is 0.
This register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears these registers to 00H.
Figure 24 - 18 Format of Port mode select register (PMS)
Caution While the PMS0 bit in the PMS register is set to 1, do not change the value of the port register (Pxx)
using a bit manipulation instruction. To change the value of the port register (Pxx), use an 8-bit data
manipulation instruction.
Address: F007BH After reset: 00H R/W
Symbol76543210
PMS0000000PMS0
PMS0 Method for selecting output level to be read when pin is output mode
0 Pmn register value is read.
1 Digital output level of the pin is read.