摘要 |
<p>PURPOSE:To simultaneously execute output and interruption by generating interruption in accordance with the level of an output signal. CONSTITUTION:A signal from a frequency generator 13 is supplied to a counter 1, and a signal from a pulse generator 14 is supplied to the reset terminal of the counter 1. Data from data sources 2a-2c are supplied to a data latch 4 through a data bus 3, and the index of data is supplied to a data latch 5. A signal from the data latch 5 is supplied to a comparator 6 and it is compared with the count value of the counter 1. Compared output when they coincide is supplied to an output latch 7 and a signal from the data latch 4 is latched. A signal from the output latch 7 is supplied to a microcomputer(CPU) 9 through an output port 8. Furthermore, an arbitrary output signal from the output latch 7 is supplied to an edge detection circuit 10. A signal from the edge detection circuit 10 is supplied to the interruption terminal of CPU 9.</p> |