70CHAPTER 3 PIN FUNCTION (μPD78058F SUBSERIES)3.2.9 P120 to P127 (Port 12)These are 8-bit input/output ports. Besides serving as input/output ports, they function as a real-time output port.The following operating modes can be specified bit-wise.(1) Port modeThese ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports withport mode register 12 (PM12). When they are used as input ports, on-chip pull-up resistors can be used bydefining the pull-up resistor option register H (PUOH).(2) Control modeThese ports function as real-time output ports (RTP0 to RTP7) outputting data in synchronization with atrigger.3.2.10 P130 and P131 (Port 13)These are 2-bit input/output ports. Besides serving as input/output ports, they are used for D/A converter analogoutput.The following operating modes can be specified bit-wise.(1) Port modeThese ports function as 2-bit input/output ports. They can be specified bit-wise as input or output ports withport mode register 13 (PM13). When they are used as input ports, on-chip pull-up resistors can be used bydefining the pull-up resistor option register H (PUOH).(2) Control modeThese ports allow D/A converter analog output (ANO0 and ANO1).Caution When only either one of the D/A converter channels is used with AVREF1 > V DD , the other pinsthat are not used as analog outputs must be set as follows:• Set PM13× bit of the port mode register 13 (PM13) to 1 (input mode) and connect the pinto V SS .• Set PM13× bit of the port mode register 13 (PM13) to 0 (output mode) and the output latchto 0, to output low level from the pin.3.2.11 AV REF0A/D converter reference voltage input pin.When A/D converter is not used, connect this pin to V SS .3.2.12 AV REF1D/A converter reference voltage input pin.When D/A converter is not used, connect this pin to V DD .