Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HT46F49E Datasheet(PDF) 37 Page - Holtek Semiconductor Inc

Part # HT46F49E
Description  Cost-Effective A/D Flash Type 8-Bit MCU with EEPROM
PDF  88 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46F49E Datasheet(HTML) 37 Page - Holtek Semiconductor Inc

Back Button HT46F49E Datasheet HTML 33Page - Holtek Semiconductor Inc HT46F49E Datasheet HTML 34Page - Holtek Semiconductor Inc HT46F49E Datasheet HTML 35Page - Holtek Semiconductor Inc HT46F49E Datasheet HTML 36Page - Holtek Semiconductor Inc HT46F49E Datasheet HTML 37Page - Holtek Semiconductor Inc HT46F49E Datasheet HTML 38Page - Holtek Semiconductor Inc HT46F49E Datasheet HTML 39Page - Holtek Semiconductor Inc HT46F49E Datasheet HTML 40Page - Holtek Semiconductor Inc HT46F49E Datasheet HTML 41Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 37 / 88 page
background image
HT46F46E/HT46F47E/HT46F48E/HT46F49E
Rev. 1.40
37
July 28, 2009
PWM Output Control
On all devices, the PWM outputs are pin-shared with
pins PD0 or PD1. To operate as PWM outputs and not
as I/O pins, the correct PWM configuration options must
be selected. A
²0² must also be written to the corre-
sponding bits in the I/O port control register PDC to en-
sure that the required PWM output pin is setup as an
output. After these two initial steps have been carried
out, and of course after the required PWM value has
been written into the PWM register, writing a
²1² to the
corresponding bit in the PD output data register will en-
able the PWM data to appear on the pin. Writing a
²0² to
the corresponding bit in the PD output data register will
disable the PWM output function and force the output
low. In this way, the Port D 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 corresponding
bit in the PDC control register to configure the pin as an
input, then the pin can still function as a normal input
line, with pull-high resistor options.
PWM Programming Example
The following sample program shows how the PWM
outputs are setup and controlled. Before use the corre-
sponding PWM output configuration options must first
be selected.
clr PDC.0
; set pin PD0 as output
clr PDC.1
; set pin PD1 as output
set pd.0
; PD.0=1; enable pin
²PD0/PWM0² to be the PWM channel 0
mov a,64h
; PWM0=100D=64H
mov pwm0,a
set pd.1
; PD.1=1; enable pin
²PD1/PWM1² to be the PWM channel 1
mov a,65h
; PWM1=101D=65H
mov pwm1,a
clr pd.0
; disable PWM0 output
- PD.0 will remain low
clr pd.1
; disable PWM1 output
- PD.1 will remain low
P W M , P W M 0 , P W M 1 R e g i s t e r s
( 7 + 1 ) M o d e
b 7
b 0
A C v a l u e
D C v a l u e
7+1 Mode Pulse Width Modulation Register



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


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