English
Language : 

UPD17016 Datasheet, PDF (267/324 Pages) NEC – 4-BIT SINGLE-CHIP MICROCONTROLLERS WITH DIGITAL TUNING SYSTEM HARDWARE
µPD17016, 17017
21.4.2 Function of segment signal/general-purpose output port select block
The segment signal/general-purpose output port select block specifies whether each pin is used as a segment
signal output pin or a general-purpose output port pin, by using the software macro supplied with the device file
(refer to Table 21-1. Software Macros Setting Ports (P0E and P0F)).
For the details on the general-purpose output port, refer to 15. GENERAL-PURPOSE PORT.
Table 21-1. Software Macros Setting Ports (P0E and P0F)
Function
Uses LCD22/P0E0-LCD25/P0E3 pins as general-purpose output port
Uses LCD26/P0F0-LCD29/P0F3 pins as general-purpose output port
Uses LCD22/P0E0-LCD25/P0E3 pins and LCD26/P0F0-LCD29/P0F3 pins as general-purpose
output port
Uses LCD22/P0E0-LCD25/P0E3 pins as LCD segment signal output pins
Uses LCD26/P0F0-LCD29/P0F3 pins as LCD segment signal output pins
Uses LCD22/P0E0-LCD25/P0E3 and LCD26/P0F0-LCD29/P0F3 pins as LCD segment signal
output pins
Uses LCD22/P0E0-LCD25/P0E3 pins as LCD segment signal output pins and LCD26/P0F0-
LCD29/P0F3 pins as general-purpose output port
Uses LCD22/P0E0-LCD25/P0E3 pins as general-purpose output port and LCD26/P0F0-LCD29/
P0F3 pins as LCD segment signal output pins
Macro Format
SET1_P0EON
SET1_P0FON
SET2_P0EON_P0FON
CLR1_P0EON
CLR1_P0FON
CLR2_P0EON_P0FON
INIT_NOT_P0EON_P0FON
INIT_P0EON_NOT_P0FON
Caution
If the above macros are used, the contents of the window register are destroyed.
If the above macros are immediately follow an embedded macro instruction, an “object error”
occurs when the source file is assembled and loaded to the in-circuit emulator. If an embedded
macro is used before the above macros, insert a comment statement in between them.
21.4.3 Functions of output timing control blocks
The output timing control blocks control the timing of the common and segment signals for LCD display and
the timing of the key source and segment signals when the key source controller/decoder is used.
The common and segment signals are output when the LCDEN flag of the LCD mode select register is “1”.
In other words, all the LCD display dots can be turned OFF by the LCDEN flag.
When all the LCD display dots have been turned OFF, the common and segment signals output a low level.
The key source signals are output when the KSEN flag of the LCD mode select register is “1”.
Therefore, use of the key source signal can be specified by the KSEN flag.
21.4.4 explains the configuration and function of the LCD mode select register.
21.4.5 shows the output waveforms of the common and segment signals.
For the details on the key source controller/decoder, refer to 22. KEY SOURCE CONTROLLER/DECODER.
267