English
Language : 

UPD17016 Datasheet, PDF (121/324 Pages) NEC – 4-BIT SINGLE-CHIP MICROCONTROLLERS WITH DIGITAL TUNING SYSTEM HARDWARE
µPD17016, 17017
(3) Notes on using P0D0/ADC2 to P0D3/ADC5 pin as A/D converter pin
A/D input
P0D3/ADC5
Latch
A/D input
P0D2/ADC4
P0D1/ADC3
P0D0/ADC2
General-purpose output port or LCD segment signal output
When any of the P0D0/ADC2 through P0D3/ADC5 pins is used as an A/D converter pin, the selected pin (only
one pin can be selected at one time) is disconnected from the input latch and is connected to the internal A/
D converter input.
If a high level is input to the pin selected as an A/D converter pin at this time, the latch circuit holds the high
level.
If the “HALT 0001H” instruction is executed in this status, the halt status is immediately released even if the
instruction can be executed because the input latch is at high level.
To prevent this, set the pin in the input port mode before executing the “HALT 0001H” instruction, and set
a low level for A/D converter input.
(4) Others
Output port
Microcontroller, etc.
P0D3/ADC5
Latch
P0D2/ADC4
P0D1/ADC3
P0D0/ADC2
General-purpose output port or LCD segment signal output
The P0D0/ADC2 through P0D3/ADC5 pins can also be used as general-purpose input port pins with pull-down
resistors.
Therefore, the halt status can also be controlled by using an external microcontroller as shown above.
121