Electronic Components Datasheet Search
  English  ▼

X  

HT45R36 Datasheet(PDF) 17 Page - Holtek Semiconductor Inc

Part # HT45R36
Description  C/R to F Type 8-Bit OTP MCU
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT45R36 Datasheet(HTML) 17 Page - Holtek Semiconductor Inc

Back Button HT45R36 Datasheet HTML 13Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 14Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 15Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 16Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 17Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 18Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 19Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 20Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 21Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 40 page
background image
HT45R36
Rev. 1.00
17
September 28, 2006
There are six registers related to the RC oscillation con-
verter, i.e., TMRAH, TMRAL, RCOCCR, TMRBH,
TMRBL and RCOCR. The internal timer clock is the in-
put to TMRAH and TMRAL, the external RC oscillation
is the input to TMRBH and TMRBL. The OVB bit, bit 0 of
RCOCR register, decides whether Timer A overflows or
Timer B overflows, then the RCOCF bit is set and an ex-
ternal RC oscillation converter interrupt occurs. When
the RC oscillation converter mode Timer A or Timer B
overflows, the RCOCON bit is reset to
²0² and stops
counting. Writing to TMRAH/TMRBH places the start
value in Timer A/Timer B while reading TMRAH/TMRBH
obtains the contents of Timer A/Timer B. Writing to
TMRAL/TMRBL only writes the data into a low byte
buffer. However writing to TMRAH/TMRBH will write the
data and the contents of the low byte buffer into the
Timer A/Timer B (16-bit) simultaneously. Timer A/Timer
B is changed by writing to TMRAH/TMRBH but writing to
TMRAL/TMRBL will keep the Timer A/Timer B un-
changed.
Reading TMRAH/TMRBH will also latch the
TMRAL/TMRBL into the low byte buffer to avoid the
false timing problem. Reading TMRAL/TMRBL returns
the contents of the low byte buffer. In other word, the low
byte of Timer A/Timer B can not be read directly. It must
read the TMRAH/TMRBH first to ensure that the low
byte contents of Timer A/Timer B are latched into the
buffer.
The resistor and capacitor form an oscillation circuit and
input to TMRBH and TMRBL. The RCOM0, RCOM1
and RCOM2 bits of RCOCCR define the clock source of
Timer A. It is recommended that the clock source of
Timer A uses the system clock or the instruction clock.
If the RCOCON bit, bit 4 of RCOCCR, is set to
²1², Timer
A and Timer B will start counting until Timer A or Timer B
overflows, the timer/event counter will then generate an
interrupt request flag which is RCOCF; bit 4 of INTC1.
The Timer A and Timer B will stop counting and will reset
the RCOCON bit to
²0² at the same time. If the
RCOCON bit is
²1², TMRAH, TMRAL, TMRBH and
TMRBL cannot be read or written.
External RC oscillation converter mode example program - Timer A overflow:
clr RCOCCR
mov a, 00000010b
; Enable External RC oscillation mode and set Timer A overflow
mov RCOCR,a
clr intc1.4
; Clear External RC Oscillation Converter interrupt request flag
mov a, low (65536-1000)
; Give timer A initial value
mov tmral, a
; Timer A count 1000 time and then overflow
mov a, high (65536-1000)
mov tmrah, a
mov a, 00h
; Give timer B initial value
mov tmrbl, a
mov a, 00h
mov tmrbh, a
mov a, 00110000b
; Timer A clock source=fSYS/4 and timer on
mov RCOCCR, a
p10:
clr wdt
snz intc1.4
; Polling External RC Oscillation Converter interrupt request flag
jmp p10
clr intc1.4
; Clear External RC Oscillation Converter interrupt request flag
; Program continue



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


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