Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

HT83F02 Datasheet(PDF) 22 Page - Holtek Semiconductor Inc

Part # HT83F02
Description  External Voice Memory Flash MCU
PDF  64 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT83F02 Datasheet(HTML) 22 Page - Holtek Semiconductor Inc

Back Button HT83F02 Datasheet HTML 18Page - Holtek Semiconductor Inc HT83F02 Datasheet HTML 19Page - Holtek Semiconductor Inc HT83F02 Datasheet HTML 20Page - Holtek Semiconductor Inc HT83F02 Datasheet HTML 21Page - Holtek Semiconductor Inc HT83F02 Datasheet HTML 22Page - Holtek Semiconductor Inc HT83F02 Datasheet HTML 23Page - Holtek Semiconductor Inc HT83F02 Datasheet HTML 24Page - Holtek Semiconductor Inc HT83F02 Datasheet HTML 25Page - Holtek Semiconductor Inc HT83F02 Datasheet HTML 26Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 64 page
background image
HT83F02
Rev. 1.20
22
November 19, 2010
Timer Control Registers
- TMR0C, TMR1C
Each timer has its respective timer control register,
known as TMR0C and TMR1C. It is the timer control
register together with their corresponding timer registers
that control the full operation of the timers. Before the
timers can be used, it is essential that the appropriate
timer control register is fully programmed with the right
data to ensure its correct operation, a process that is
normally carried out during program initialization. Bits 7
and 6 of the Timer Control Register, must be set to the
required logic levels. Bit 6 of the registers must always
be written with a
²1², and bit 7 must always be written
with a
²0². The timer-on bit, which is bit 4 of the Timer
Control Register and known as T0ON/ T1ON, depend-
ing upon which timer is used, provides the basic on/off
control of the respective timer. setting the bit high allows
the timer to run, clearing the bit stops the timer. For the
8-bit timers, which have prescalers, bits 0~2 of the
Timer Control Register determines the division ratio of
the input clock prescaler.
Configuring the Timer
The Timer is used to measure fixed time intervals, pro-
viding an internal interrupt signal each time the Timer
overflows. To do this the Operating Mode Select bit pair
in the Timer Control Register must be set to the correct
value as shown.
Control Register Operating Mode
Select Bits
Bit7 Bit6
10
The internal clock, f
SYS, is used as the Timer clock. How-
ever, this clock source is further divided by a prescaler,
the value of which is determined by the Prescaler Rate
Select bits, which are bits 0~2 in the Timer Control Reg-
ister. After the other bits in the Timer Control Register
have been setup, the enable bit, which is bit 4 of the
Timer Control Register, can be set high to enable the
Timer to run. Each time an internal clock cycle occurs,
the Timer increments by one. When it is full and over-
flows, an interrupt signal is generated and the Timer will
reload the value already loaded into the preload register
and continue counting. The interrupt can be disabled by
ensuring that the Timer Interrupt Enable bit in the Inter-
rupt Control Register, INTC, is reset to zero.
Prescaler
All of the 8-bit timers possess a prescaler. Bits 0~2 of
their associated timer control register, define the
pre-scaling stages of the internal clock source of the
Timer. The Timer overflow signal can be used to gener-
ate signals for the Timer interrupt.
Programming Considerations
The internal system clock is used as the timer clock
source and is therefore synchronized with the overall
operation of the microcontroller. In this mode, when the
appropriate timer register is full, the microcontroller will
generate an internal interrupt signal directing the pro-
gram flow to the respective internal interrupt vector.
When the Timer is read, the clock is blocked to avoid er-
rors, however as this may result in a counting error, this
should be taken into account by the programmer. Care
must be taken to ensure that the timers are properly ini-
tialized before using them for the first time. The associ-
ated timer enable bits in the interrupt control register must
be properly set otherwise the internal interrupt associated
with the timer will remain inactive. The edge select, timer
mode and clock source control bits in timer control regis-
ter must also be correctly set to ensure the timer is prop-
erly configured for the required application. It is also
important to ensure that an initial value is first loaded into
the timer registers before the timer is switched on; this is
because after power-on the initial values of the timer reg-
isters are unknown. After the timer has been initialized
the timer can be turned on and off by controlling the en-
able bit in the timer control register.
I n c r e m e n t
T i m e r C o n t r o l l e r
P r e s c a l e r O u t p u t
T i m e r + 1
T i m e r + 2
T i m e r + N
T i m e r + N + 1
Timer Mode Timing Diagram



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


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