Built-In Pull-Up Resistor; Pull-Up-Resistor-Option Register Format - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

(3) Control pins
When port 6 function as control pins, they cannot be manipulated or tested by software.
(4) Analog inputs (P66 and P67 only)
When port 6 is used as analog input pins (AN6 and AN7), the level of each pin can be read and tested.

5.7.4 Built-In Pull-Up Resistor

P64 through P67 have built-in pull-up resistors. When they must be pulled up, the built-in pull-up resistors should
be used. Use of the built-in pull-up resistors can reduce the number of the required components and the required
installation space.
Use of a built-in pull-up resistor can be specified for each of these pins, independently of the other pins, by the
PUO6 bit of pull-up-resistor-option register (PUO) and the port 6 mode register (PM6).
When the PUO6 bit is 1, the built-in pull-up resistor for a pin specified by the PM6 (PM6n = 1, n = 4 to 7) is connected.
P60 through P63 do not have a built-in pull-up resistor.
7
PUO
0
PUO6
Remark Resetting the PUO to 00H can reduce the required current in the STOP mode.
Caution To use P66 and P67 as AN6 and AN7, respectively, it is necessary to reset the PU06 bit to 0; do not specify to use built-in pull-up
resistors for port 6.
Fig. 5-41 Pull-Up-Resistor-Option Register Format
6
5
4
3
2
PUO5
PUO4
PUO3
PUO2
Fig. 5-42 Connection of Pull-Up Resistors (Port 6)
(PUO)
PUO6
1
0
0
0
(00H when RESET is input)
PUO6
Specifies pull-up resistor connection of port 6
0
Not connected with port 6
1
Connected with port 6
• • •
Port 6 mode
register (PM6)
Chapter 5 Port Functions
V
DD
P64
P65
P66
P67
5
91

Advertisement

Table of Contents
loading

Table of Contents