|
CLK PULSE: a rising edge, then a falling edge, in that order, of a Counter's CLK input.
Trigger: a rising edge of a Counters GATE input.
Counter loading: the transfer of a count from the CR to the CE.
MODE 0: Interrupt on Terminal Count
1. Event counting.
2. After the Control Word is written, OUT is initially low and remains low.
3. When the counter reaches zero. OUT then goes high and remains high until a new count or a new Mode 0 Control Word is written into the Counter.
MODE 1: Hardware Retriggerable One-Shot
1. OUT will be initially high. OUT will go low on the CLK pulse following a trigger to begin the one-shot pulse, and remain low until the Counter reaches zero.
2. OUT will then go high and remain high until the CLK pulse after the next trigger.
MODE 2: Rate Generator
1. Functions like a divide-by-N counter and used to generate a Real Time Clock interrupt.
2. OUT will initially be high.
3. When the initial count has decremented to one, OUT goes low for one CLK pulse.
4. Out then goes high again, the Counter reloads the initial count and the process is repeated.
5. MODE 2 is periodic. The same sequence is repeated indefinitely.
MODE 3: Square Wave Mode
1. Typically used for baud rate generation.
2. Out will initially be high.
3. When half the initial count is expired, OUT goes low for the remainder of the count.
4. MODE 3 is periodic. The same sequence is repeated indefinitely.
MODE 4: Software Triggered Strobe
1. OUT will initially be high.
2. When the initial count expires, OUT will go low for one CLK pulse and then go high again.
3. The counting sequence is "triggered" by writing the initial count.
4. The Counter is loaded on the next CLK pulse following writing a Control Word and initial count.
MODE 5: Hardware Triggered Strobe (Retriggerable)
1. OUT will initially be high.
2. Counting is triggered by a rising edge of GATE.
3. When the initial count expires, OUT will go low for one CLK pulse and then go high again.
4. The difference between MODE 4 and MODE 5 is that in MODE 5 the count will not be loaded until the CLK pulse after a trigger.
|