9-15
TIMER/COUNTER UNIT
Figure 9-9. TxOUT Signal Timing
In dual maximum count mode, the timer output pin indicates which Maxcount Compare register
is currently in use. A low output indicates Maxcount Compare B, and a high output indicates
Maxcount Compare A (see Figure 9-4 on page 9-6). If programmed to run continuously, a repet-
itive waveform can be generated. For example, if Maxcount Compare A contains 10, Maxcount
Compare B contains 20, and CLKOUT is 12.5 MHz, the timer generates a 33 percent duty cycle
waveform at 104 KHz. The output pin always goes high at the end of the counting sequence (even
if the timer is not programmed to run continuously).
9.2.5 Enabling/Disabling Counters
Each timer has an Enable (EN) bit in its Control register to allow or prevent timer counting. The
Inhibit (INH) bit controls write accesses to the EN bit. Timers 0 and 1 can be programmed to use
their input pins as enable functions also. If a timer is disabled, the count register does not incre-
ment when the counter element services the timer.
The Enable bit can be altered by programming or the timers can be programmed to disable them-
selves at the end of a counting sequence with the Continuous (CONT) bit. If the timer is not pro-
grammed for continuous operation, the Enable bit automatically clears at the end of a counting
sequence. In single maximum count mode, this occurs after Maxcount Compare A is reached. In
dual maximum count mode, this occurs after Maxcount Compare B is reached (Timers 0 and 1
only).
TxOUT Pin
1
Internal Count Value
NOTE: 1. T
CLOV1
Timer 0
Serviced
Maxcount - 1
0
A1301-0A
Summary of Contents for 80C186EA
Page 1: ...80C186EA 80C188EA Microprocessor User s Manual...
Page 2: ...80C186EA 80C188EA Microprocessor User s Manual 1995...
Page 19: ......
Page 20: ...1 Introduction...
Page 21: ......
Page 28: ...2 Overview of the 80C186 Family Architecture...
Page 29: ......
Page 79: ......
Page 80: ...3 Bus Interface Unit...
Page 81: ......
Page 129: ......
Page 130: ...4 Peripheral Control Block...
Page 131: ......
Page 139: ......
Page 140: ...5 ClockGenerationand Power Management...
Page 141: ......
Page 165: ......
Page 166: ...6 Chip Select Unit...
Page 167: ......
Page 190: ...7 Refresh Control Unit...
Page 191: ......
Page 205: ......
Page 206: ...8 Interrupt Control Unit...
Page 207: ......
Page 239: ...INTERRUPT CONTROL UNIT 8 32...
Page 240: ...9 Timer Counter Unit...
Page 241: ......
Page 265: ......
Page 266: ...10 Direct Memory Access Unit...
Page 267: ......
Page 295: ...DIRECT MEMORY ACCESS UNIT 10 28...
Page 296: ...11 Math Coprocessing...
Page 297: ......
Page 314: ...12 ONCE Mode...
Page 315: ......
Page 318: ...A 80C186 Instruction Set Additions and Extensions...
Page 319: ......
Page 330: ...B Input Synchronization...
Page 331: ......
Page 334: ...C Instruction Set Descriptions...
Page 335: ......
Page 383: ...INSTRUCTION SET DESCRIPTIONS C 48...
Page 384: ...D Instruction Set Opcodes and Clock Cycles...
Page 385: ......
Page 408: ...Index...
Page 409: ......