II-80
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (Input Ports)
(1) When input ports are changed from high to low by pull-
down resistor, the fall of the waveform is delayed on
account of the time constant of the pull-down resistance
and input gate capacitance. Hence, when fetching input
ports, set an appropriate wait time.
Particular care needs to be taken of the key scan during
key matrix configuration. Aim for a wait time of about 1
ms.
(2) When "noise rejector circuit enable" is selected with the
mask option, a maximum delay of 1 ms occurs from the
time the interrupt conditions are established until the
interrupt factor flag (IK) is set to "1" (until the interrupt is
actually generated).
Hence, pay attention to the timing when reading out
(resetting) the interrupt factor flag.
(3) Input interrupt programing related precautions
Programming notes
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.
Port K input
Factor flag set Not set
➁
Factor flag set
Differential register
Mask register
Active status
Active status
Rising edge interrupt
➀
Falling edge interrupt
Fig. 5.7.3
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.
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......