công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

HT45R37V bảng dữ liệu(PDF) 30 Page - Holtek Semiconductor Inc

tên linh kiện HT45R37V
Giải thích chi tiết về linh kiện  TinyPower C/R-F Type 8-Bit OTP MCU
PDF  90 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  HOLTEK [Holtek Semiconductor Inc]
Trang chủ  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT45R37V bảng dữ liệu(HTML) 30 Page - Holtek Semiconductor Inc

Back Button HT45R37V Datasheet HTML 26Page - Holtek Semiconductor Inc HT45R37V Datasheet HTML 27Page - Holtek Semiconductor Inc HT45R37V Datasheet HTML 28Page - Holtek Semiconductor Inc HT45R37V Datasheet HTML 29Page - Holtek Semiconductor Inc HT45R37V Datasheet HTML 30Page - Holtek Semiconductor Inc HT45R37V Datasheet HTML 31Page - Holtek Semiconductor Inc HT45R37V Datasheet HTML 32Page - Holtek Semiconductor Inc HT45R37V Datasheet HTML 33Page - Holtek Semiconductor Inc HT45R37V Datasheet HTML 34Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 30 / 90 page
background image
HT45R37V
Rev. 1.00
30
October 20, 2009
Timer Program Example
This program example shows how the Timer/Event Counter registers are setup, along with how the interrupts are en-
abled and managed. Note how the Timer/Event Counter is turned on, by setting bit 4 of the Timer Control Register. The
Timer/Event Counter can be turned off in a similar way by clearing the same bit. This example program sets the
Timer/Event Counter to be in the timer mode, which uses the internal system clock as the clock source.
org 04h
; external interrupt vector
reti
org 0Ch
; Timer/Event Counter 0 interrupt vector
jmp tmrint
; jump here when the Timer/Event Counter 0 overflows
:
org 20h
; main program
;internal Timer/Event Counter 0 interrupt routine
tmrint:
:
; Timer/Event Counter 0 main program placed here
:
reti
:
:
begin:
;setup Timer 0 registers
mov a,09bh
; setup Timer 0 preload value
mov tmr0,a;
mov a,081h
; setup Timer 0 control register
mov tmr0c,a
; timer mode and prescaler set to /2
; setup interrupt register
mov a,009h
; enable master interrupt and timer interrupt
mov int0c,a
set tmr0c.4
; start Timer/Event Counter 0 - note mode bits must be previously setup
C/R to F Converter
The C/R to F Converter function within the device en-
ables external resistance and capacitance to be con-
verted into a frequency. With this function the device has
a way of measuring external capacitance and resis-
tance values and can therefore be used in applications
such as touch switches.
C/R to F Operation
The C/R to F function is implemented using an external
RC oscillator. A single external reference resistor and
external reference capacitor are required to be con-
nected as shown. These components and the internal
inverter circuits form an oscillator circuit whose fre-
quency is dependent upon the value of the external ca-
pacitance and resistance. By using two internal 16-bit
programmable count-up timers, known as Timer A and
Timer B, the converted frequency value can be mea-
sured.
The value of the two internal 16-bit programmable
count-up counters, known as Timer A and Timer B, are
stored within two pairs of registers, TMRAL/TMRAH and
TMRBL/TMRBH registers. Two other registers,
RCOCCR and RCOCR control the overall operation of
the C/R to F converter.
The Timer A clock source comes from the system clock
or from the system clock/4, determined by the RCOM
bits in the RCOCCR register. This clock source deter-
mines the value in the TMRAL/TMRAH registers. The
Timer B clock source comes from the external RC oscil-
lator circuit and therefore determines the value in the
TMRBL/TMRBL registers. It is a combination of a fixed
frequency clock source driving Timer A and a varying
frequency clock source driving Timer B that enables ex-
ternal resistance and capacitance values to be mea-
sured.
The OVB bit, in the RCOCR register, decides whether
Timer A or Timer B overflows. When this happens, the
RCOCF bit will be set and an external RC oscillation
converter interrupt occurs. When the C/R to F converter
causes Timer A or Timer B to overflow, the RCOCON bit
in the RCOCCR register will be reset to zero and the
counter will stop counting. Writing initial values to the
TMRAL/TMRAH and TMRBL/TMRBH registers places
a start value into Timer A and Timer B. Note that writing
to the low byte registers, TMRAL and TMRBL, only
writes the data into a low byte buffer. However writing to
the high byte registers, TMRAH and TMRBH, will write
both the high byte values and the low byte buffer values
directly into the Timer A and Timer B simultaneously.



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 81 82 83 84 85 86 87 88 89 90


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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