Mask Option - Epson S1C60N03 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

Input interrupt programming related precautions
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 (input terminal = high status), the
factor flag for input interrupt may be set.
For example, a factor flag is set with the timing of
content of the mask register with the input terminal kept in the high status and then setting it, the factor
flag of the input ir 5rrupt is again set at the timing that has been set.
Consequently, when the input terminal is in the active status (high status), do not rewrite the mask
register (clearing, then setting the mask register), so that a factor flag will only set at the rising 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 (low status).

4.3.3 Mask option

The contents that can be selected with the input port mask option are as follows:
(1) An internal pull-down resistor can be selected for each of the four bits of the input ports (K00–K03).
Having selected "pull-down resistor disabled", take care that the input does not float. Select "pull-
down resistor enabled" for input ports that are not being used.
(2) The input interrupt circuit contains a noise rejection circuit to prevent interrupts form occurring
through noise. The mask option enables selection of the noise rejection circuit for each separate
terminal series. When "use" is selected, a maximum delay of 0.5 msec (fosc = 32 kHz) occurs from the
time an interrupt condition is established until the interrupt factor flag (IK0) is set to 1.
S1C60N03 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Input Ports)
Port K input
Mask register
When the content of the mask register is rewritten, while the port
K input is in the active status. The input interrupt factor flag is
set at
.
Fig. 4.3.2.2 Input interrupt timing
Active status
Factor flag set Not set
shown in Figure 4.3.2.2. However, when clearing the
EPSON
13

Advertisement

Table of Contents
loading

Table of Contents