7-3
The 8254 programmable interval timer provides three 16-bit, 8-MHz timers for timing and counting
functions such as frequency measurement, event counting, and interrupts. All three of the Timer/Counters are
available for the user. Figure 7-1 shows the TC circuitry.
Each timer/counter has two inputs, CLK in and GATE in, and one output, timer/counter OUT. They can be
programmed as binary or BCD down counters by writing the appropriate data to the command word, as
described in the I/O map discussion in Chapter 4.
The output from from each Timer/Counter is available at the connector CN3.
The timers can be programmed to operate in one of six modes, depending on your application. The
following paragraphs briefly describe each mode.
Mode 0, Event Counter (Interrupt on Terminal Count).
This mode is typically used for event counting.
While the timer/counter counts down, the output is low, and when the count is complete, it goes high. The
output stays high until a new Mode 0 control word is written to the timer/counter.
Mode 1, Hardware-Retriggerable One-Shot.
The output is initially high and goes low on the clock pulse
following a trigger to begin the one-shot pulse. The output remains low until the count reaches 0, and then goes high
and remains high until the clock pulse after the next trigger.
Mode 2, Rate Generator.
This mode functions like a divide-by-N counter and is typically used to generate a
real-time clock interrupt. The output is initially high, and when the count decrements to 1, the output goes low for
one clock pulse. The output then goes high again, the timer/counter reloads the initial count, and the process
is repeated. This sequence continues indefinitely.
Fig. 7-1 User TC Circuitry
CLK0
6210
I/O CONNECTOR
CN3
PIN 46
PIN 43
PIN 42
8254
TIMER/
COUNTER
0
CLK
GATE
OUT
TIMER/
COUNTER
1
CLK
GATE
OUT
TIMER/
COUNTER
2
CLK
GATE
OUT
PIN 39
PIN 44
XTAL (8 MHz)
JP1
+5 V
+5 V
+5 V
PIN 19
PIN 40
PIN 41
PIN 45
T/C OUT 0
OUT0
OUT1
EXT CLK 0
T/C OUT 1
EXT CLK 1
EXT GATE 2
T/C OUT 2
EXT CLK 2
EXT GATE 0
EXT GATE 1
EC0
OSC
EC1
OSC
EC2
Содержание DM6210
Страница 2: ......
Страница 9: ...i 1 INTRODUCTION...
Страница 10: ...i 2...
Страница 14: ...1 2...
Страница 22: ...1 10...
Страница 24: ...2 2...
Страница 28: ...2 6...
Страница 30: ...3 2...
Страница 34: ...4 2...
Страница 44: ...5 2...
Страница 48: ...5 6...
Страница 50: ...6 2...
Страница 56: ...6 8...
Страница 57: ...7 1 CHAPTER 7 TIMER COUNTERS This chapter explains the 8254 timer counter circuits on the DM6210...
Страница 58: ...7 2...
Страница 61: ...8 1 CHAPTER 8 DIGITAL I O This chapter explains the digital I O circuitry on the DM6210...
Страница 62: ...8 2...
Страница 65: ...9 1 CHAPTER 9 EXAMPLE PROGRAMS This chapter discusses the example programs included with the DM6210...
Страница 66: ...9 2...
Страница 68: ...9 4...
Страница 70: ...10 2...
Страница 74: ...10 6...
Страница 75: ...A 1 APPENDIX A DM6210 SPECIFICATIONS...
Страница 76: ...A 2...
Страница 78: ...A 4...
Страница 79: ...B 1 APPENDIX B CN3 CONNECTOR PIN ASSIGNMENTS...
Страница 80: ...B 2...
Страница 82: ...B 4...
Страница 83: ...APPENDIX C COMPONENT DATA SHEETS C 1...
Страница 84: ......
Страница 85: ...Intel 82C54 Programmable Interval Timer Data Sheet Reprint...
Страница 86: ......
Страница 88: ...D 2...
Страница 90: ...D 4 RTD Embedded Technologies Inc 103InnovationBlvd StateCollegePA16803 0906 USA Ourwebsite www rtd com...
Страница 91: ...DM6210 User Settings Base I O Address hex decimal IRQ Channel...