XC886/888CLM
Timers
User’s Manual
13-7
V1.3, 2010-02
Timers, V 1.0
13.1.2.4
Mode 3
In mode 3, Timer 0 and Timer 1 behave differently. Timer 0 in mode 3 establishes TL0
and TH0 as two separate counters. Timer 1 in mode 3 simply holds its count. The effect
is the same as setting TR1 = 0
The logic for mode 3 operation for Timer 0 is shown in
control bits GATE0, TR0 and TF0, while TH0 is locked into a timer function (counting
machine cycles) and takes over the use of TR1 and TF1 from Timer 1. Thus, TH0 now
sets TF1 upon overflow and generates an interrupt if ET1 is set.
Mode 3 is provided for applications requiring an extra 8-bit timer. When Timer 0 is in
mode 3 and TR1 is set, Timer 1 can be turned on by switching it to any of the other
modes and turned off by switching it into mode 3.
Figure 13-4
Timer 0, Mode 3: Two 8-Bit Timers/Counters
TL0
(8 Bits)
TF0
f
PCLK
/2
TH0
(8 Bits)
&
>1
=1
Timer0_Mode3
Interrupt
GATE0
Control
TR0
Timer Clock
TR1
TF1
Interrupt
EXINT0
T0S = 0
T0
T0S = 1
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...