전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

ST72411R 데이터시트(PDF) 36 Page - STMicroelectronics

부품명 ST72411R
상세설명  8-BIT MCU WITH SMARTCARD INTERFACE, LCD DRIVER, 8-BIT TIMER, SAFE RESET AND SUPPLY MONITORING
PDF  71 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST72411R 데이터시트(HTML) 36 Page - STMicroelectronics

Back Button ST72411R Datasheet HTML 32Page - STMicroelectronics ST72411R Datasheet HTML 33Page - STMicroelectronics ST72411R Datasheet HTML 34Page - STMicroelectronics ST72411R Datasheet HTML 35Page - STMicroelectronics ST72411R Datasheet HTML 36Page - STMicroelectronics ST72411R Datasheet HTML 37Page - STMicroelectronics ST72411R Datasheet HTML 38Page - STMicroelectronics ST72411R Datasheet HTML 39Page - STMicroelectronics ST72411R Datasheet HTML 40Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 36 / 71 page
background image
ST72411R
36/71
8-BIT TIMER (Cont’d)
5.3.4 Functional description
5.3.4.1 8-bit counting and interrupt capability
on counter underflow
Whatever the division factor defined for the pres-
caler, the Timer Counter works as an 8-bit down-
counter. The input clock frequency is user selecta-
ble using the PS0 and PS1 bits.
When the downcounter underflows (transition from
00h to FFh), the UDF (Timer Underflow) bit in the
TSCR is set. If the ETI (Enable Timer Interrupt) bit
in the TSCR is also set, an interrupt request is
generated.
The Timer interrupt can be used to exit the MCU
from WAIT or HALT mode.
The TCR can be written at any time by software to
define a time period ending with a UDF event, and
therefore manage delay or timer functions.
UDF is set when the counter underflows (clock
pulse creating the transition from 00h to FFh);
however, it may also be set by setting bit 4 of the
TSCR register. The UDF bit must be cleared by
user software when servicing the timer interrupt to
avoid undesired interrupts when leaving the inter-
rupt service routine. After reset, the 8-bit counter
register is loaded with 0FFh, while the 9-bit pres-
caler is loaded with 1FFh, and the TSCR register
is loaded with 050h. This means that the Timer is
stopped (PSE=“0”) and the timer interrupt is disa-
bled.
Note: A write to the TCR register will predominate
over the 8-bit counter decrement to 00h function,
i.e. if a write and a TCR register decrement to 00h
occur simultaneously, the write will take prece-
dence, and the UDF bit is not set until the 8-bit
counter underflows again.
Application Notes
– A time base interrupt can be created by using the
UDF interrupt to generate interrupts at regular
time intervals.
With the maximum prescaler ratio set, the maxi-
mum period between two UDF flags is:
512/fTIMER
If we consider the previous example:
(fTIMER=fCPU/16)
we have
(512*16) / fCPU
(2.3 ms for a fCPU of 3.58MHz).
With the minimum prescaler ratio set, the mini-
mum step of the 8-bit downcounter, i.e the res-
olution, is 1/fTIMER, that means 16 / fCPU (4.5 µs
for a fCPU=3.58MHz).
– When the maximum division factor (512) is set,
the input clock to the 8-bit downcounter is the 9th
and last bit of the prescaler. This means, the 9-
bit prescaler and the 8-bit counter are serialized
and can be considered as a 16-bit counter with a
frequency of fTIMER/512.
5.3.4.2 Gated mode
(TOUT = “0”, DOUT = “1”)
Figure 25. fTIMER Clock in Gated Mode
In this mode, the prescaler is decremented by the
Timer clock input, but only when the signal on the
TIMIO pin is held high (fCPU/16 gated by TIMIO).
See Figure 39 and Figure 40.
This mode is selected by clearing the TOUT bit in
the TSCR register (i.e. as input) and setting the
DOUT bit.
Figure 26. .Gated Mode Operation
fTIMER
TIMIO
fCPU/16
fEXT
xx1
1
Counter Value
TIMIO Pin
Timer Clock
Value 1
Value 2
Pulse Length
xx2



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com