DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

UPSD3213B-40T6(2009) データシートの表示(PDF) - STMicroelectronics

部品番号
コンポーネント説明
メーカー
UPSD3213B-40T6 Datasheet PDF : 181 Pages
First Prev 51 52 53 54 55 56 57 58 59 60 Next Last
Timer/counters (Timer 0, Timer 1 and Timer 2)
UPSD3212A, UPSD3212C, UPSD3212CV
11.1.3
Table 39. Description of the TMOD bits
Bit Symbol Timer
Function
7
Gate
Gating control when set. Timer/Counter 1 is enabled only while INT1 pin
is High and TR1 control pin is set. When cleared, Timer 1 is enabled
whenever TR1 control bit is set
6
C/T
Timer or Counter selector, cleared for timer operation (input from internal
system clock); set for counter operation (input from T1 input pin)
5
M1 Timer1 (M1,M0)=(0,0): 13-bit Timer/Counter, TH1, with TL1 as 5-bit prescaler
(M1,M0)=(0,1): 16-bit Timer/Counter. TH1 and TL1 are cascaded. There
is no prescaler.
4
M0
(M1,M0)=(1,0): 8-bit auto-reload Timer/Counter. TH1 holds a value which
is to be reloaded into TL1 each time it overflows
(M1,M0)=(1,1): Timer/Counter 1 stopped
3
Gate
Gating control when set. Timer/Counter 0 is enabled only while INT0 pin
is High and TR0 control pin is set. When cleared, Timer 0 is enabled
whenever TR0 control bit is set
2
C/T
Timer or Counter selector, cleared for timer operation (input from internal
system clock); set for counter operation (input from T0 input pin)
1
M1
(M1,M0)=(0,0): 13-bit Timer/Counter, TH0, with TL0 as 5-bit prescaler
Timer0 (M1,M0)=(0,1): 16-bit Timer/Counter. TH0 and TL0 are cascaded. There
is no prescaler.
0
M0
(M1,M0)=(1,0): 8-bit auto-reload Timer/Counter. TH0 holds a value which
is to be reloaded into TL0 each time it overflows
(M1,M0)=(1,1): TL0 is an 8-bit Timer/Counter controlled by the standard
TImer 0 control bits. TH0 is an 8-bit timer only controlled by Timer 1
control bits
Mode 2
Mode 2 configures the Timer register as an 8-bit Counter (TL1) with automatic reload, as
shown in Figure 22. Overflow from TL1 not only sets TF1, but also reloads TL1 with the
contents of TH1, which is preset by software. The reload leaves TH1 unchanged. Mode 2
operation is the same for Timer/Counter 0.
Figure 22. Timer/counter mode 2: 8-bit Auto-reload
fOSC
÷ 12
T1 pin
TR1
Gate
INT1 pin
C/T = 0
C/T = 1
Control
TL1
(8 bits)
TH1
(8 bits)
TF1
Interrupt
AI06623
60/181

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]