Epson E0C6001 Technical Manual page 132

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

Input Port
Fig. 4.1
Input interrupt timing
Output Port
CHAPTER 4: SUMMARY OF PROGRAMMING POINTS
– When modifying the input port from high level to low level
with pull-down resistance, a delay will occur at the rise of
the waveform due to time constant of the pull-down
resistance and input gate capacities. Provide appropriate
waiting time in the program when performing input port
reading.
– Input interrupt programing related precautions
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
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
shown in Figure 4.1. However, when clearing the content
of the mask register with the input terminal kept in the
high 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 (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).
The FOUT and BUZZER output signal may produce
hazards when the output ports R00 and R01 are turned
on or off.
Active status
Factor flag set Not set
.
II-51

Advertisement

Table of Contents
loading

Table of Contents