Electronic Components Datasheet Search
  English  ▼

X  

HT45R38 Datasheet(PDF) 24 Page - Holtek Semiconductor Inc

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

HT45R38 Datasheet(HTML) 24 Page - Holtek Semiconductor Inc

Back Button HT45R38 Datasheet HTML 20Page - Holtek Semiconductor Inc HT45R38 Datasheet HTML 21Page - Holtek Semiconductor Inc HT45R38 Datasheet HTML 22Page - Holtek Semiconductor Inc HT45R38 Datasheet HTML 23Page - Holtek Semiconductor Inc HT45R38 Datasheet HTML 24Page - Holtek Semiconductor Inc HT45R38 Datasheet HTML 25Page - Holtek Semiconductor Inc HT45R38 Datasheet HTML 26Page - Holtek Semiconductor Inc HT45R38 Datasheet HTML 27Page - Holtek Semiconductor Inc HT45R38 Datasheet HTML 28Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 24 / 49 page
background image
HT45R38
Rev. 1.00
24
December 13, 2006
f S Y S / 2
P W M
[ P W M ] = 1 0 0
[ P W M ] = 1 0 1
P W M
[ P W M ] = 1 0 2
P W M
[ P W M ] = 1 0 3
P W M
P W M m o d u l a t i o n p e r i o d : 1 2 8 / f S Y S
5 0 / 1 2 8
5 1 / 1 2 8
5 1 / 1 2 8
5 2 / 1 2 8
5 0 / 1 2 8
5 0 / 1 2 8
5 1 / 1 2 8
5 1 / 1 2 8
5 0 / 1 2 8
5 1 / 1 2 8
5 1 / 1 2 8
5 2 / 1 2 8
M o d u l a t i o n c y c l e 0
P W M c y c l e : 2 5 6 / f S Y S
M o d u l a t i o n c y c l e 1
M o d u l a t i o n c y c l e 0
7+1 PWM Mode
P W M R e g i s t e r
( 7 + 1 ) M o d e
b 7
b 0
A C v a l u e
D C v a l u e
PWM Register for 7+1 Mode
· PWM Output Control
The PWM outputs are pin-shared with the Port A I/O
pins. To operate as PWM outputs and not as I/O pins,
the correct PWM configuration options must be se-
lected. A
²0² must also be written to the corresponding
bits in the I/O port control register PAC to ensure that
the required PWM output pins are setup as outputs.
After these two initial steps have been carried out, and
of course after the required PWM value has been writ-
ten into the PWM register, writing a
²1² to the corre-
sponding bit in the PA output data register will enable
the PWM data to appear on the pin. Writing a
²0² to
the corresponding bit in the PA output data register will
disable the PWM output function and force the output
low. In this way, the Port A data output register can be
used as an on/off control for the PWM function. Note
that if the configuration options have selected the
PWM function, but a
²1² has been written to its corre-
sponding bit in the PAC control register to configure
the pin as an input, then the pin can still function as a
normal input line, with pull-high resistor configuration
options.
The following diagram illustrates the waveforms associated with the 7+1 mode of PWM operation. It is important to
note how the single PWM cycle is subdivided into 2 individual modulation cycles, numbered 0 and 1 and how the AC
value is related to the PWM value.
clr PAC.0
; set pin PA0 as output
clr PAC.1
; set pin PA1 as output
set pa.0
; PA.0=1; enable pin
²PA0/PWM0² to be the PWM channel 0
mov a,64h
; PWM0=100D=64H
mov pwm0,a
set pa.1
; PA.1=1; enable pin
²PA1/PWM1² to be the PWM channel 1
mov a,65h
; PWM1=101D=65H
mov pwm1,a
clr pa.0
; disable PWM0 output
- PA.0 will remain low
clr pa.1
; disable PWM1 output
- PA.1 will remain low



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


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