Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

HT37B90 Scheda tecnica(PDF) 26 Page - Holtek Semiconductor Inc

Il numero della parte HT37B90
Spiegazioni elettronici  HT37B90
Download  80 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  HOLTEK [Holtek Semiconductor Inc]
Homepage  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT37B90 Scheda tecnica(HTML) 26 Page - Holtek Semiconductor Inc

Back Button HT37B90 Datasheet HTML 22Page - Holtek Semiconductor Inc HT37B90 Datasheet HTML 23Page - Holtek Semiconductor Inc HT37B90 Datasheet HTML 24Page - Holtek Semiconductor Inc HT37B90 Datasheet HTML 25Page - Holtek Semiconductor Inc HT37B90 Datasheet HTML 26Page - Holtek Semiconductor Inc HT37B90 Datasheet HTML 27Page - Holtek Semiconductor Inc HT37B90 Datasheet HTML 28Page - Holtek Semiconductor Inc HT37B90 Datasheet HTML 29Page - Holtek Semiconductor Inc HT37B90 Datasheet HTML 30Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 80 page
background image
HT37B90/HT37B70/HT37B50/HT37B30
Rev.1.00
26
June22,2017
high byte register must first be executed to latch the con-
tents of the low byte buffer into its associated low byte
register. After this has been done, the low byte register
can be read in the normal way. Note that reading the low
byte timer register will only result in reading the previ-
ously latched contents of the low byte buffer and not the
actualcontentsofthelowbytetimerregister.
TimerControlRegisters - TMR0C,TMR1C,TMR2C
The Timer/Event Counters0/1 enable them to operate in
three different modes. the options of which are deter-
mined by the contents of their respective control regis-
ter. There are four timer control registers, known as
TMR0C, TMR1C and TMR2C. It is the timer control reg-
ister together with its corresponding timer registers that
control the full operation of the Timer/Event Counters.
Before the timers can be used, it is essential that the ap-
propriate 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.
To choose which of the three modes the timer is to oper-
ate in, either in the timer mode, the event counting mode
or the pulse width measurement mode, bits 7 and 6 of
the Timer Control Register, which are known as the bit
pair T0M1/T0M0, T1M1/T1M0 respectively, depending
upon which timer is used, must be set to the required
logic levels. The timer-on bit, which is bit 4 of the Timer
Control Register and known as T0ON, T1ON or T2ON,
depending upon which timer is used, provides the basic
on/off control of the respective timer. Setting the bit high
allows the counter to run, clearing the bit stops the coun-
ter. If the timer is in the event count or pulse width mea-
surement mode, the active transition edge level type is
selected by the logic level of bit 3 of the Timer Control
Register which is known as T0E, T1E or T2E, depend-
inguponwhichtimerisused.
ConfiguringtheTimerMode
In this mode, the timer can be utilized to measure fixed
time intervals, providing an internal interrupt signal each
time the counter overflows. To operate in this mode, bits
TM1 and TM0 of the TMR0C~TMR2C register must be
set to 1 and 0 respectively. In this mode, the internal
clock is used as the timer clock. The input clock fre-
quency of 16 bit timer to the timer is fOSC/8 and RC12K,
selected by TMR0C.5. The input clock frequency of 8 bit
timer to the timer is Fosc divided by the value pro-
grammed into the timer prescaler, the value of which is
determined by bits PSC0~PSC2 of the TMR1C~
TMR2C register. The timer-on bit, TON must be set high
to enable the timer to run. Each time an internal clock
high to low transition occurs, the timer increments by
one. When the timer is full and overflows, the timer will
be reset to the value already loaded into the preload reg-
ister and continue counting. If the timer interrupt is en-
abled, an interrupt signal will also be generated. The
timer interrupt can be disabled by ensuring that the
ET0I~ET2I bit in the INTC and INTCH registers is
cleared to zero. It should be noted that a timer overflow
isoneofthewake-upsources.
ConfiguringtheEventCounterMode
In this mode, two number of externally changing logic
events, occurring on external pin PA6/TMR0 or
PA7/TMR1, can be recorded by the internal timer. For
the timer to operate in the event counting mode, bits
TM1 and TM0 of the TMR0C or TMR1C registers must
be set to 0 and 1 respectively. The timer-on bit, TON
must be set high to enable the timer to count. With TE
low, the counter will increment each time the PA6/TMR0
or PA7/TMR1 pin receives a low to high transition. If the
TE bit is high, the counter will increment each time
PA6/TMR0 or PA7/TMR1 pin receives a high to low tran-
sition. As in the case of the other two modes, when the
counter is full and overflows, the timer will be reset to the
value already loaded into the preload register and con-
tinue counting. If the timer interrupt is enabled, an inter-
ruptsignalwillalsobegenerated.
The timer interrupt can be disabled by ensuring that the
ETI bit in the INTC and INTCH registers is cleared to
zero. To ensure that the external pin PA6/TMR0 or
PA7/TMR1 is configured to operate as an event counter
input pin, two things have to happen. The first is to en-
sure that the TM0 and TM1 bits place the timer/event
counter in the event counting mode, the second is to en-
sure that the share pin TMR0 or TMR1 are selected by
option. It should be noted that a timer overflow is one of
the wake-up sources. Also in the Event Counting mode,
the Timer/Event Counter will continue to record exter-
nally changing logic events on the timer input pin, even if
the microcontroller is in the Power Down Mode. As a re-
sult when the timer overflows it will generate a wake-up
and if the interrupts are enabled also generate a timer
interruptsignal.
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
TimerModeTimingDiagram


Codice articolo simile - HT37B90

Produttore elettroniciIl numero della parteScheda tecnicaSpiegazioni elettronici
logo
Hotchip Technology Co.,...
HT3786D HOTCHIP-HT3786D Datasheet
292Kb / 5P
   Li-ion Battery Charger
Ver1.0
logo
Holtek Semiconductor In...
HT37A20 HOLTEK-HT37A20 Datasheet
709Kb / 85P
   8-Channel Music Synthesizer MCU
HT37A30 HOLTEK-HT37A30 Datasheet
709Kb / 85P
   8-Channel Music Synthesizer MCU
HT37A40 HOLTEK-HT37A40 Datasheet
709Kb / 85P
   8-Channel Music Synthesizer MCU
HT37A50 HOLTEK-HT37A50 Datasheet
709Kb / 85P
   8-Channel Music Synthesizer MCU
More results


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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80


Scheda tecnica Scarica

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEETIT.COM
Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   scambio Link   |   Ricerca produttore
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