
S1C6S460 TECHNICAL MANUAL
EPSON
81
CHAPTER 12: SUMMARY OF NOTES
(4) When switching the CPU operating clock from OSC1 to OSC3, follow the flow chart shown in Figure
5.5.1 and then proceed with software processing.
(5) Use separate instructions to switch the clock from OSC3 to OSC1 and turn the OSC3 oscillation OFF.
Simultaneous processing with a single instruction may cause malfunction of the CPU.
Input port (Kxx)
(1) When changing the input port from Low level to High level with a pull up resistor, a delay in the
waveform rise time will occur depending on the time constant of the pull up resistor and input gate
capacity. Hence, when reading data from the input port, set an appropriate waiting time. Care is
particularly required for key matrix configuration scanning. For reference, approximately 500 s
waiting time is required.
(2) Input interrupt programming related precautions
Port K input
Factor flag set Not set
Factor flag set
Input relation
register
Mask register
Active status
Rising edge interrupt
Falling edge interrupt
When the content of the mask register is rewritten, while the port K input is in the active
status. The input interrupt factor flags are set at and , being the interrupt due to the
falling edge and the interrupt due to the rising edge.
Fig. 12.2.1 Input interrupt timing
When using an input interrupt, if you rewrite the content of the mask register, when the value of the
input terminal which becomes the interrupt input is in the active status, the factor flag for input
interrupt may be set. Therefore, when using the input interrupt, the active status of the input terminal
implies
input terminal = Low status, when the falling edge interrupt is effected and
input terminal = High status, when the rising edge interrupt is effected.
When an interrupt is triggered at the falling edge of an input terminal, a factor flag is set with the
timing of shown in Figure 12.2.1. However, when clearing the content of the mask register with the
input terminal kept in the Low status and then setting it, the factor flag of the input interrupt is again
set at the timing that has been set.
Consequently, when the input terminal is in the active status (Low status), do not rewrite the mask
register (clearing, then setting the mask register), so that a factor flag will only set at the falling edge
in this case.
When clearing, then setting the mask register, set the mask register, when the input terminal is not in
the active status (High status).
When an interrupt is triggered at the rising edge of the input terminal, a factor flag will be set at the
timing of shown in Figure 12.2.1. In this case, when the mask registers cleared, then set, you should
set the mask register, when the input terminal is in the Low status.
In addition, when the mask register = "1" and the content of the input relation register is rewritten in
the input terminal active status, an input interrupt factor flag may be set. Thus, you should rewrite
the content of the input relation register in the mask register = "0" status.