
μ
PD17016, 17017
267
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
Macro Format
Uses LCD
22
/P0E
0
-LCD
25
/P0E
3
pins as general-purpose output port
SET1_P0EON
Uses LCD
26
/P0F
0
-LCD
29
/P0F
3
pins as general-purpose output port
SET1_P0FON
Uses LCD
22
/P0E
0
-LCD
25
/P0E
3
pins and LCD
26
/P0F
0
-LCD
29
/P0F
3
pins as general-purpose
output port
SET2_P0EON_P0FON
Uses LCD
22
/P0E
0
-LCD
25
/P0E
3
pins as LCD segment signal output pins
CLR1_P0EON
Uses LCD
26
/P0F
0
-LCD
29
/P0F
3
pins as LCD segment signal output pins
CLR1_P0FON
Uses LCD
22
/P0E
0
-LCD
25
/P0E
3
and LCD
26
/P0F
0
-LCD
29
/P0F
3
pins as LCD segment signal
output pins
CLR2_P0EON_P0FON
Uses LCD
22
/P0E
0
-LCD
25
/P0E
3
pins as LCD segment signal output pins and LCD
26
/P0F
0
-
LCD
29
/P0F
3
pins as general-purpose output port
INIT_NOT_P0EON_P0FON
Uses LCD
22
/P0E
0
-LCD
25
/P0E
3
pins as general-purpose output port and LCD
26
/P0F
0
-LCD
29
/
P0F
3
pins as LCD segment signal output pins
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
.