Mode 3: Two 8-Bit Counter/Timers (Timer 0 Only); Figure 15.3. T0 Mode 3 Block Diagram - Silicon Laboratories C8051F300 Manual

Mixed signal isp flash mcu family
Hide thumbs Also See for C8051F300:
Table of Contents

Advertisement

C8051F300/1/2/3/4/5

15.1.4. Mode 3: Two 8-bit Counter/Timers (Timer 0 Only)

In Mode 3, Timer 0 is configured as two separate 8-bit counter/timers held in TL0 and TH0. The
counter/timer in TL0 is controlled using the Timer 0 control/status bits in TCON and TMOD: TR0, C/T0,
GATE0 and TF0. TL0 can use either the system clock or an external input signal as its timebase. The TH0
register is restricted to a timer function sourced by the system clock or prescaled clock. TH0 is enabled
using the Timer 1 run control bit TR1. TH0 sets the Timer 1 overflow flag TF1 on overflow and thus controls
the Timer 1 interrupt.
Timer 1 is inactive in Mode 3. When Timer 0 is operating in Mode 3, Timer 1 can be operated in Modes 0,
1 or 2, but cannot be clocked by external signals nor set the TF1 flag and generate an interrupt. However,
the Timer 1 overflow can be used to generate baud rates for the SMBus and/or UART, and/or initiate ADC
conversions. While Timer 0 is operating in Mode 3, Timer 1 run control is handled through its mode set-
tings. To run Timer 1 while Timer 0 is in Mode 3, set the Timer 1 Mode as 0, 1, or 2. To disable Timer 1,
configure it for Mode 3.
Pre-scaled Clock
SYSCLK
T0
Crossbar
IN0PL
/INT0
146
CKCON
T
T
T
T
S
S
2
2
1
0
C
C
M
M
M
M
A
A
H
L
1
0
0
TR1
1
0
1
TR0
GATE0
XOR

Figure 15.3. T0 Mode 3 Block Diagram

Rev. 2.9
TMOD
G
C
T
T
G
C
T
T
A
/
1
1
A
/
0
0
T
T
M
M
T
T
M
M
E
1
1
0
E
0
1
0
1
0
TH0
(8 bits)
TL0
(8 bits)
TF1
Interrupt
TR1
TF0
Interrupt
TR0
IE1
IT1
IE0
IT0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C8051F300 and is the answer not in the manual?

This manual is also suitable for:

C8051f305C8051f303C8051f302C8051f301C8051f304

Table of Contents