Counter/Timers (8254)
Mode 2: Rate Generator
This mode functions like a divide-by-N counter. It is typically used to
generate a real-time clock interrupt. OUT is initially high. When the
initial count has decremented to 1, OUT goes low for one CLK pulse.
OUT then goes high again, the counter reloads the initial count, and
the process is repeated. Mode 2 is periodic: the same sequence is
repeated indefinitely. For an initial count of N, the sequence repeats
every N CLK cycles.
GATE = 1 enables counting
GATE = 0 disables counting
If GATE goes low during an output pulse, OUT is set high
immediately. A trigger reloads the counter with the initial count on
the next CLK pulse. OUT goes low N CLK pulses after the trigger.
Thus the GATE input can be used to synchronize the counter.
After writing a Control Word and initial count, the counter will be
loaded on the next CLK pulse. OUT goes low N CLK pulses after the
initial count is written. This allows the counter to be synchronized by
software also.
Writing a new count while counting does not affect the current
counting sequence. If a trigger is received after writing a new count
but before the end of the current period, the counter will be loaded
with the new count on the next CLK pulse and counting continues
from the new count. Otherwise, the new count is loaded at the end of
the current counting cycle. In Mode 2, a count of 1 is illegal.
11-18
Содержание ZT 8809A
Страница 15: ...Tables Table B 9 J5 Pin Assignments B 17 Table B 10 J6 Pin Assignments B 18 Table B 11 J7 Pin Assignments B 19...
Страница 334: ...Jumper Configurations W49 W48 A W47 B A B W37 W66 A W50 B C J7 W67 Figure A 11 W37 W47 50 W66 W67 Jumper Blocks A 34...
Страница 346: ...Jumper Configurations W61 W60 W62 W63 W64 A B A B W65 Figure A 13 W60 W65 Jumper Block A 46...