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

X  

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

tên linh kiện HT46R92
Giải thích chi tiết về linh kiện  A/D Type 8-Bit MCU with 1616 High Current LED Driver
PDF  61 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

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

Back Button HT46R92 Datasheet HTML 19Page - Holtek Semiconductor Inc HT46R92 Datasheet HTML 20Page - Holtek Semiconductor Inc HT46R92 Datasheet HTML 21Page - Holtek Semiconductor Inc HT46R92 Datasheet HTML 22Page - Holtek Semiconductor Inc HT46R92 Datasheet HTML 23Page - Holtek Semiconductor Inc HT46R92 Datasheet HTML 24Page - Holtek Semiconductor Inc HT46R92 Datasheet HTML 25Page - Holtek Semiconductor Inc HT46R92 Datasheet HTML 26Page - Holtek Semiconductor Inc HT46R92 Datasheet HTML 27Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 61 page
background image
HT46R92
Rev. 1.10
23
November 5, 2008
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 TMRC as an independent
instruction. 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 08h
; Timer/Event Counter interrupt vector
jmp tmrint0
; jump here when Timer/Event Counter overflows
:
org 20h
; main program
;internal Timer/Event Counter interrupt routine
tmrint0:
:
; Timer/Event Counter main program placed here
:
reti
:
:
begin:
;setup Timer registers
mov a,09bh
; setup Timer preload value
mov tmr,a;
mov a,081h
; setup Timer control register
mov tmrc,a
; timer mode and prescaler set to /4
; setup interrupt register
mov a,005h
; enable Master and Timer/Event Counter interrupt
mov intc0,a
set tmrc.4
; start Timer/Event Counter - note mode bits must be previously setup
Pulse Width Modulator
The device contains two Pulse Width Modulation, PWM,
outputs, known as PWM0 and PWM1. Useful for such
applications such as motor speed control, the PWM
function provides an output with a fixed frequency but
with a duty cycle that can be varied by setting particular
values into the corresponding PWM registers.
Channels
PWM
Mode
Output
Pins
Register
Name
2
6+2 or
7+1
PA4
PA5
PWM0
PWM1
PWM Overview
The PWM outputs are selected via configuration op-
tions. Two registers, located in the Data Memory are as-
signed to the Pulse Width Modulator and are known as
PWM0 and PWM1. It is in these registers that the 8-bit
value, which represents the overall duty cycle of one
modulation cycle of the output waveform, should be
placed. To increase the PWM modulation frequency,
each modulation cycle is modulated into two or four indi-
vidual modulation sub-sections, known as the 7+1 mode
or the 6+2 mode respectively. The device can choose
which mode to use by selecting the appropriate configu-
ration option. Note that it is only necessary to write the
required modulation value into the corresponding
PWM0 or PWM1 register as the subdivision of the wave-
form into its sub-modulation cycles is implemented au-
tomatically within the microcontroller hardware. The
PWM clock source is the system clock fSYS.
This method of dividing the original modulation cycle into
a further 2 or 4 sub-cycles enables the generation of
higher PWM frequencies, which allow a wider range of
applications to be served. As long as the periods of the
generated PWM pulses are less than the time constants
of the load, the PWM output will be suitable as such long
time constant loads will average out the pulses of the
PWM output. The difference between what is known as
the PWM cycle frequency and the PWM modulation fre-
quency should be understood. As the PWM clock is the
system clock, fSYS, and as the PWM value is 8-bits wide,
the overall PWM cycle frequency is fSYS/256. However,
when in the 7+1 mode of operation, the PWM modulation
frequency will be fSYS/128, while the PWM modulation
frequency for the 6+2 mode of operation will be fSYS/64.
6+2 PWM Mode
Each full PWM cycle, as it is controlled by an 8-bit regis-
ter, has 256 clock periods. However, in the 6+2 PWM
Mode, each PWM cycle is subdivided into four individual
sub-cycles known as modulation cycle 0~modulation
cycle 3, denoted as
²i² in the table. Each one of these



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


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