English
Language : 

UPD784938 Datasheet, PDF (120/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 6 PORT FUNCTIONS
6.2.2 I/O mode/control mode setting
The port 0 input/output mode is set by means of the port 0 mode register (PM0) as shown in Figure 6-3.
Figure 6-3. Port 0 Mode Register (PM0) Format
PM0
7
6
5
4
3
2
1
0 Address After reset R/W
PM07 PM06 PM05 PM04 PM03 PM02 PM01 PM00 0FF20H
FFH
R/W
PM0n P0n Pin Input/Output Mode Specification
(n = 0 to 7)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
When port 0 is used as a real-time output port, the P0LM and P0HM bits of the real-time output port control register (RTPC)
should be set (to 1).
When P0LM and P0HM are set, the respective pin output buffer is turned on and the output latch contents are output to the
pin irrespective of the contents of PM0.
120
Preliminary User’s Manual U13987EJ1V0UM00