поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

HT48R02 датащи(PDF) 16 Page - Holtek Semiconductor Inc

номер детали HT48R02
подробное описание детали  10-Pin MSOP I/O Type 8-Bit OTP MCU
PDF  38 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  HOLTEK [Holtek Semiconductor Inc]
домашняя страница  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT48R02 датащи(HTML) 16 Page - Holtek Semiconductor Inc

Back Button HT48R02 Datasheet HTML 12Page - Holtek Semiconductor Inc HT48R02 Datasheet HTML 13Page - Holtek Semiconductor Inc HT48R02 Datasheet HTML 14Page - Holtek Semiconductor Inc HT48R02 Datasheet HTML 15Page - Holtek Semiconductor Inc HT48R02 Datasheet HTML 16Page - Holtek Semiconductor Inc HT48R02 Datasheet HTML 17Page - Holtek Semiconductor Inc HT48R02 Datasheet HTML 18Page - Holtek Semiconductor Inc HT48R02 Datasheet HTML 19Page - Holtek Semiconductor Inc HT48R02 Datasheet HTML 20Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 38 page
background image
HT48R01/HT48R02/HT48R03
Rev. 1.00
16
December 20, 2006
Timer/Event Counter
One or two timer/event counters are implemented in the
microcontroller. The timer/event counter contains an 8-bit
programmable count-up counter and the clock may come
from an external source, the system clock or RTC clock.
Using an external clock input allows the user to count
external events, measure time internals or pulse widths,
or generate an accurate time base, while using the inter-
nal clock allows the user to generate an accurate time
base.
The timer/event counter can generate a buzzer signal
by using an external or internal clock.
There are 2 registers related to the timer/event counter;
TMR0 [0DH], TMR0C [0EH] (TMR1 [10H]), TMR1C
[11H]). Two physical registers are mapped to the TMR lo-
cation; writing TMR0 (TMR1) places the start value into
the timer/event counter preload register while reading
TMR0 (TMR1) retrieves the contents of the timer/event
counter. The TMR0C (TMR1C) is a timer/ event counter
control register, which defines some options.
The T0M0, T0M1 (T1M0, T1M1) bits define the operat-
ing mode. The event count mode is used to count exter-
nal events, which means the clock source comes from
an external TMR0 (TMR1) pin. The timer mode func-
tions as a normal timer with the clock source coming
from the fINT clock. The pulse width measurement mode
can be used to count the high or low level duration of the
external signal TMR0 (TMR1). The counting is based on
the fINT clock.
In the event count or timer mode, once the timer/event
counter starts counting, it will count from the current
contents in the timer/event counter to FFH. Once an
overflow occurs, the counter is reloaded from the
timer/event counter preload register and generates an
interrupt request flag (T0F; bit 5 of INTC0 or T1F bit 6 of
INTC0) at the same time.
In the pulse width measurement mode with the values of
T0ON and T0E ( T1ON and T1E) equal to 1, after the
TMR0 (TMR1) has received a low to high transient (or
high to low if T0E (T1E) is
²0²), it will start counting until
TMR0 (TMR1) returns to its original level and resets
T0ON (T1ON). The measured result remains in the
timer/event counter even if the activated transient oc-
curs again. In other words, only a single cycle measure-
ment can be implemented. Not until the T0ON (T1ON)
bit has been set again, will the cycle measurement func-
tion again as long as it receives further transient pulses.
Note that, in this operating mode, the timer/event coun-
ter starts counting not according to the logic level but ac-
cording to the transient edges. In the case of counter
overflows, the counter is reloaded from the timer/event
counter preload register and issues the interrupt request
just like the other two modes. To enable the counting op-
eration, the timer ON bit, T0ON (T1ON) should be set to
1. In the pulse width measurement mode, the T0ON
(T1ON) will be cleared automatically after the measure-
ment cycle is completed. But in the other two modes the
T0ON (T1ON) can only be reset by instructions. The
overflow of the timer/event counter is one of the
wake-up sources. No matter what the operation mode
is, writinga0toETIcan disable the interrupt service.
T 0 M 1
T 0 M 0
T M R 0
T 0 E
T 0 M 1
T 0 M 0
T 0 O N
P u l s e W i d t h
M e a s u r e m e n t
M o d e C o n t r o l
8 - b i t T i m e r / E v e n t C o u n t e r
P r e l o a d R e g i s t e r
8 - b i t T i m e r / E v e n t
C o u n t e r 0 ( T M R 0 )
D a t a B u s
R e l o a d
O v e r f l o w
t o I n t e r r u p t
7 - s t a g e P r e s c a l e r
8 - 1 M U X
f S Y S
f I N T
T 0 P S C 2 ~ T 0 P S C 0
M
U
X
R T C O S C
T 0 S
f T P
1 / 2
B Z 0
Timer/Event Counter 0
T 1 M 1
T 1 M 0
T M R 1
T 1 E
T 1 M 1
T 1 M 0
T 1 O N
P u l s e W i d t h
M e a s u r e m e n t
M o d e C o n t r o l
8 - b i t T i m e r / E v e n t C o u n t e r
P r e l o a d R e g i s t e r
8 - b i t T i m e r / E v e n t
C o u n t e r 1 ( T M R 1 )
D a t a B u s
R e l o a d
O v e r f l o w
t o I n t e r r u p t
f S Y S / 4
M
U
X
R T C O S C
T 1 S
1 / 2
B Z 1
Timer/Event Counter 1 - HT48R02/HT48R03 only



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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