Port Function Control Registers - NEC mPD789026 Subseries User Manual

8-bit single-chip
Table of Contents

Advertisement

4.3 Port Function Control Registers

The following two types of registers control the ports.
• Port mode registers (PM0 to PM5)
• Pull-up resistor option register (PUO)
(1)
Port mode registers (PM0 to PM5)
These registers are used to set port input/output in 1-bit units.
Port mode registers are independently set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets these registers to FFH.
When port pins are used as alternate-function pins, set the port mode register and output latch according to
Table 4-3.
Caution As port 3 has an alternate function as external interrupt input, when the port function
output mode is specified and the output level is changed, the interrupt request flag is set.
When the output mode is used, therefore, the interrupt mask flag should be set to 1
beforehand.
Table 4-3. Port Mode Register and Output Latch Settings when Using Alternate Functions
Pin Name
P30
INTP0
P31
INTP1
P32
INTP2
CPT2
Note
P40 to P47
KR0 to KR7
P50
TI0
TO0
P51
TO2
Note When an alternate function is used, set the key return mode register 00 (KRM00) to 1 (see Section
10.3 (5)).
Caution When Port 2 is used for serial interface pin, the I/O mode and output latch must be set
according to its function. For details of the settings, see Table 9-2.
×
: Don't care
Remark
PM×× : Port mode register
P××
: Output latch of port
CHAPTER 4 PORT FUNCTIONS
Alternate Function
Name
Input/Output
Input
Input
Input
Input
Input
Input
Output
Output
User's Manual U11919EJ3V0UM00
PM××
P××
×
1
×
1
×
1
×
1
×
1
×
1
0
0
0
0
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd789022Mpd789024Mpd789025Mpd789026Mpd78f9026a

Table of Contents