Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

HT49R50 Datasheet(PDF) 22 Page - Holtek Semiconductor Inc

Part # HT49R50
Description  8-Bit Microcontroller
PDF  59 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT49R50 Datasheet(HTML) 22 Page - Holtek Semiconductor Inc

Back Button HT49R50 Datasheet HTML 18Page - Holtek Semiconductor Inc HT49R50 Datasheet HTML 19Page - Holtek Semiconductor Inc HT49R50 Datasheet HTML 20Page - Holtek Semiconductor Inc HT49R50 Datasheet HTML 21Page - Holtek Semiconductor Inc HT49R50 Datasheet HTML 22Page - Holtek Semiconductor Inc HT49R50 Datasheet HTML 23Page - Holtek Semiconductor Inc HT49R50 Datasheet HTML 24Page - Holtek Semiconductor Inc HT49R50 Datasheet HTML 25Page - Holtek Semiconductor Inc HT49R50 Datasheet HTML 26Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 59 page
background image
HT49R50
22
October 22, 1999
Timer/event counter
Two timer/event counters are implemented in
the HT49R50. Both of them contain an 8-bit
programmable count-up counter.
The timer/event count 0 clock source may come
from the system clock or system clock/4 or RTC
time-out signal or external source. System
clock source or system clock/4 is selected by op-
tions.
The timer/event count 1 clock source may come
from TMR0 overflow or system clock or time
base time-out signal or system clock/4 or exter-
nal source, and the three former clock source is
selected by options.
The external clock input allows the user to
count external events, measure time intervals
or pulse widths, or to generate an accurate time
base.
The two timer/event counters are operated al-
most in the same manner, except the clock
source and related registers.
There are two registers related to the
timer/event counter 0, i.e., TMR0 ([0DH]) and
TMR0C ([0EH]), and two registers related to
the timer/event counter 1, i.e., TMR1 ([10H],
and TMR1C ([11H]). There are also two physi-
cal registers are mapped to TMR0 (TMR1) loca-
tion; writing TMR0 (TMR1) places the starting
value in the timer/event counter preload regis-
ter, while reading it yields the contents of the
timer/event counter. TMR0C and TMR1C are
timer/event counter control registers used to
define some options.
The TN0 and TN1 bits define the operation
mode. The event count mode is used to count ex-
ternal events, which means that the clock
source is from an external (TMR0, TMR1) pin.
The timer mode functions as a normal timer
with the clock source coming from the internal
selected clock source. Finally, the pulse width
measurement mode can be used to count the
high or low level duration of the external signal
(TMR0, TMR1), and the counting is based on
the internal selected clock source.
In the event count or timer mode, the timer/event
counter starts counting at the current contents in
the timer/event counter and ends at FFH. Once
an overflow occurs, the counter is reloaded from
the timer/event counter preload register, and
generates an interrupt request flag (T0F; bit 6 of
INTC0, T1F; bit 4 of INTC1).
In the pulse width measurement mode with
the values of the TON and TE bits equal to
one, after the TMR0 (TMR1) has received a
transient from low to high (or high to low if
the TE bit is "0"), it will start counting until
the TMR0 (TMR1) returns to the original
level and resets the TON. The measured re-
sult remains in the timer/event counter even
if the activated transient occurs again. In
other words, only one cycle measurement can
be made until the TON is set. The cycle mea-
surement will re-function as long as it receives
further transient pulse. In this operation mode,
the timer/event counter begins counting accord-
ing not to the logic level but to the transient
TE
Sy s t e m C l o c k
TN 1
TN 0
TM R 0
TN 1
TN 0
TO N
P u l s e W i dt h
M eas ur e m ent
M ode C ont r o l
T i m e r / ev en t c o u n t e r 0
P r el o a d R e gi s t e r
T i m e r / ev en t
c oun t e r 0
Da t a B u s
R e l oad
O v er f l ow
T o In te r r u p t
Ma s k
Op t i o n
Se l e c t
M
U
X
TN 2
TQ
PF D 0
PA3 D a t a C T R L
RT C O u t
S y s t e m C l o c k /4
Timer/event counter 0



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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