
4. Using the I/O Address Map
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
33
Pulse Count (with interrupts)
Flowchart
Yes
No
Count value
acquiring
No
Keyboard input
Yes
Clear the
interrupt mask
Status acquiring
EOI
Start
Interrupt processing
Count the number
of interrupts
End
Return
Status reset
Start couner
Show data
End of interrupt?
Reset the
interrupt level
Restore
interrupt vector
Stop couner
Reset the
interrupt mask
Initialize
Set an interrupt
level
Interrupt vectors
processing
Figure 4.13. Pulse Count (with Interrupts)