Mode 1 - Hardware Retriggerable One-Shot; Mode 0 – Writing A New Count - Intel 386 User Manual

Embedded microprocessor
Table of Contents

Advertisement

Intel386™ EX EMBEDDED PROCESSOR USER'S MANUAL
Figure 10-4 shows writing a new count before the current count reaches zero. The counter loads
the new count on the CLKINn pulse after you write it, then decrements this new count on each
succeeding CLKINn pulse. OUTn remains low until the new count reaches zero.
Control
Word = 10H
Writes to
Counter n
CLKIN n
GATE n
OUT n
?
Count
10.2.2 Mode 1 – Hardware Retriggerable One-shot
This mode is similar to mode 0; it allows you to generate a rising edge on a counter's OUTn sig-
nal. Unlike mode 0, however, the counter waits for a gate-trigger before loading the count and
driving its OUTn signal low. When the counter reaches zero, OUTn is driven high. At this point,
the counter rolls over and continues counting with OUTn high. OUTn stays high and keeps count-
ing down and rolling over until the counter receives another gate-trigger or you reprogram it. You
can retrigger the one-shot at any time with a gate-trigger, causing the counter to reload the count
and drive OUTn low. Writing a new control word to the counter reprograms it.
Mode 1's basic operation is outlined below and shown in Figure 10-5.
1.
After a control word write, OUTn is driven high.
2.
On the CLKINn pulse following a gate-trigger, the count is loaded and OUTn is driven
low.
3.
On each succeeding CLKINn pulse, the count is decremented.
4.
When the count reaches zero, OUTn is driven high.
Writing a count of N causes a rising edge on OUTn in N CLKINn pulses after
the count is loaded (using a gate-trigger).
10-8
Count = 3
?
?
?
0003
Figure 10-4. Mode 0 – Writing a New Count
NOTE
Count = 2
0002
0001
0002
0001
0000
FFFF
A2395-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents