Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HT46R71D Datasheet(PDF) 17 Page - Holtek Semiconductor Inc

Part # HT46R71D
Description  A/D with LCD Type 8-Bit MCU
PDF  46 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46R71D Datasheet(HTML) 17 Page - Holtek Semiconductor Inc

Back Button HT46R71D Datasheet HTML 13Page - Holtek Semiconductor Inc HT46R71D Datasheet HTML 14Page - Holtek Semiconductor Inc HT46R71D Datasheet HTML 15Page - Holtek Semiconductor Inc HT46R71D Datasheet HTML 16Page - Holtek Semiconductor Inc HT46R71D Datasheet HTML 17Page - Holtek Semiconductor Inc HT46R71D Datasheet HTML 18Page - Holtek Semiconductor Inc HT46R71D Datasheet HTML 19Page - Holtek Semiconductor Inc HT46R71D Datasheet HTML 20Page - Holtek Semiconductor Inc HT46R71D Datasheet HTML 21Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 46 page
background image
HT46R71D
Rev. 1.00
17
January 9, 2006
Timer/Event Counter
Two timer/event counters (TMR0,TMR1) are imple-
mented in the microcontroller. The Timer/Event Counter
0 contains a 8-bit programmable count-up counter and
the clock may come from an external source or an inter-
nal clock source. An internal clock source comes from
fSYS or Internal RC. The Timer/Event Counter 1 contains
a 16-bit programmable count-up counter and the clock
may come from an external source or an internal clock
source. An internal clock source comes from fSYS/4 or
Internal RC selected by special function register option.
The external clock input allows the user to count exter-
nal events, measure time intervals or pulse widths, or to
generate an accurate time base.
There are two registers related to the Timer/Event
Counter 0; TMR0 ([0DH]) and TMR0C ([0EH]). Writing
to TMR0 puts the starting value in the Timer/Event
Counter 0 register and reading TMR0 reads out the con-
tents of Timer/Event Counter 0. The TMR0C is a
timer/event counter control register, which defines some
options. There are three registers related to the
Timer/Event Counter 1; TMR1H (0FH), TMR1L (10H)
and TMR1C (11H). Writing to TMR1L will only put the
written data into an internal lower-order byte buffer
(8-bit) while writing to TMR1H will transfer the specified
data and the contents of the lower-order byte buffer to
both the TMR1H and TMR1L registers, respectively.
The Timer/Event Counter 1 preload register is changed
every time there is a write operation to TRM1H. Reading
TMR1H will latch the contents of TMR1H and TMR1L
counters to the destination and the lower-order byte
buffer, respectively. Reading TMR1L will read the con-
tents of the lower-order byte buffer. The TMR1C is the
Timer/Event Counter 1 control register, which defines
the operating mode, counting enable or disable and an
active edge.
The T0M0, T0M1 (TMR0C) and T1M0, T1M1 (TMR1C)
bits define the operation mode. The event count mode is
used to count external events, which means that the
clock source must come 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 a high or low level duration
of an external signal on TMR0 or TMR1, with the timing
based on the internal selected clock source.
In the event count or timer mode, the Timer/Event Coun-
ter 0 (1) starts counting at the current contents in the
Timer/Event Counter 0 (1) and ends at FFH (FFFFH).
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, T1F; bit6
of INTC0). In the pulse width measurement mode with
the values of the T0ON/T1ON and T0E/T1E bits equal
to 1, 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) pin returns to the
original level and resets the T0ON/T1ON bit. The mea-
sured result remains in the timer/event counter even if
the activated transient occurs again. In other words,
only a 1-cycle measurement can be made until the
T0ON/T1ON is set. The cycle measurement will
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
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
( T M R 0 )
D a t a B u s
8 - s t a g e P r e s c a l e r
8 - 1 M U X
f I N T 0
T 0 P S C 2 ~ T 0 P S C 0
M
U
X
f S Y S
I n t . R C O S C
T 0 S
f T 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
f I N T 1
1 6 - B i t
P r e l o a d R e g i s t e r
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
L o w B y t e
B u f f e r
H i g h B y t e
L o w B y t e
1 6 - B i t T i m e r / E v e n t C o u n t e r
8 - s t a g e P r e s c a l e r
8 - 1 M U X
T 1 P S C 2 ~ T 1 P S C 0
M
U
X
f S Y S / 4
I n t . R C O S C
T 1 S
f T 1
Timer/Event Counter 1



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


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