Electronic Components Datasheet Search
  English  ▼

X  

HT48R502 Datasheet(PDF) 15 Page - Holtek Semiconductor Inc

Part # HT48R502
Description  I/O Type 8-Bit OTP MCU
PDF  39 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT48R502 Datasheet(HTML) 15 Page - Holtek Semiconductor Inc

Back Button HT48R502 Datasheet HTML 11Page - Holtek Semiconductor Inc HT48R502 Datasheet HTML 12Page - Holtek Semiconductor Inc HT48R502 Datasheet HTML 13Page - Holtek Semiconductor Inc HT48R502 Datasheet HTML 14Page - Holtek Semiconductor Inc HT48R502 Datasheet HTML 15Page - Holtek Semiconductor Inc HT48R502 Datasheet HTML 16Page - Holtek Semiconductor Inc HT48R502 Datasheet HTML 17Page - Holtek Semiconductor Inc HT48R502 Datasheet HTML 18Page - Holtek Semiconductor Inc HT48R502 Datasheet HTML 19Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 15 / 39 page
background image
HT48R502
Rev. 1.00
15
September 27, 2006
The T0M0, T0M1 (TMR0C), T1M0, T1M1 (TMR1C) bits
define the operating mode. The event count mode is
used to count external events, which means the clock
source comes from an external (TMR0/TMR1) pin. The
timer mode functions as a normal timer with the clock
source coming from the instruction clock or RTC clock
(Timer0/Timer1). 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 instruction clock or RTC clock (Timer0/Timer1).
In the event count or timer mode, once the Timer/Event
Counter 0/1 starts counting, it will count from the current
contents in the Timer/Event Counter 0/1 to FFFFH.
Once overflow occurs, the counter is reloaded from the
Timer/Event Counter 0/1 preload register and generates
the interrupt request flag (T0F/T1F; bit 5/6 of INTC) at
the same time.
In the pulse width measurement mode with the
T0ON/T1ON and T0E/T1E bits equal to one, once the
TMR0/TMR1 has received a transient from low to high
(or high to low if the T0E/T1E bits is
²0²) it will start
counting until the TMR0/TMR1 returns to the original
level and resets the T0ON/T1ON. The measured result
will remain in the Timer/Event Counter 0/1 even if the
activated transient occurs again. In other words, only
one cycle measurement can be done. Until setting the
T0ON/T1ON, the cycle measurement will function again
as long as it receives further transient pulse. Note that,
in this operating mode, the Timer/Event Counter 0/1
starts counting not according to the logic level but ac-
cording to the transient edges. In the case of counter
overflows, the counter 0/1 is reloaded from the
Timer/Event Counter 0/1 preload register and issues the
interrupt request just like the other two modes. To en-
able the counting operation, the timer ON bit (T0ON: bit
4 of TMR0C; T1ON: bit 4 of TMR1C) should be set to 1.
In the pulse width measurement mode, the T0ON/T1ON
will be cleared automatically after the measurement cy-
cle is completed. But in the other two modes the
T0ON/T1ON can only be reset by instructions. The
overflow of the Timer/Event Counter 0/1 is one of the
wake-up sources. No matter what the operation mode
is, writinga0to ET0I/ET1I can disable the correspond-
ing interrupt services.
In the case of Timer/Event Counter 0/1 OFF condition,
writing data to the Timer/Event Counter 0/1 preload
register will also reload that data to the Timer/Event
Counter 0/1. But if the Timer/Event Counter 0/1 is turned
on, data written to it will only be kept in the Timer/Event
Counter 0/1 preload register. The Timer/Event Counter
0/1 will still operate until overflow occurs (a Timer/Event
Counter 0/1 reloading will occur at the same time). When
the Timer/Event Counter 0/1 (reading TMR0/TMR1) is
read, the clock will be blocked to avoid errors. As clock
blocking may results in a counting error, this must be
taken into consideration by the programmer.
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
1 6 B i t s
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
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
f R T C
O p t i o n
1 6 B i t s
T i m e r / E v e n t C o u n t e r
( T M R 1 H / T M R 1 L )
L o w B y t e
B u f f e r
Timer/Event Counter 1
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
1 6 B i t s
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
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
f R T C
O p t i o n
1 6 B i t s
T i m e r / E v e n t C o u n t e r
( T M R 0 H / T M R 0 L )
L o w B y t e
B u f f e r
f I N T
B Z
B Z
¸ 2
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


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