Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

HT56R26 View Datasheet(PDF) - Holtek Semiconductor

Part Name
Description
MFG CO.
HT56R26
Holtek
Holtek Semiconductor Holtek
'HT56R26' PDF : 134 Pages View PDF
HT56R22/HT56R23/HT56R24/HT56R25/HT56R26
PWM Programming Example
The following sample program shows how the PWM output is setup and controlled.
mov a,64h
mov pwm0h,a
clr pwm0l
clr pdc.0
set pwm0en
set pd.0
::
::
clr pd.0
; setup PWM0 value to 1600 decimal which is 640H
; setup PWM0H register value
; setup PWM0L register value
; setup pin PD0 as an output
; set the PWM0 enable bit
; Enable the PWM0 output
; PWM0 output disabled - PD0 will remain low
fS Y S /2
[P W M ] = 1 6 0 0
PW M
1 0 0 /2 5 6
[P W M ] = 1 6 0 1
PW M
1 0 1 /2 5 6
[P W M ] = 1 6 0 2
PW M
1 0 1 /2 5 6
1 0 0 /2 5 6
1 0 0 /2 5 6
1 0 1 /2 5 6
1 0 0 /2 5 6
1 0 0 /2 5 6
1 0 0 /2 5 6
[P W M ] = 1 6 1 5
PW M
1 0 1 /2 5 6
1 0 1 /2 5 6
1 0 1 /2 5 6
P W M m o d u la tio n p e r io d : 2 5 6 /fS Y S
M o d u la tio n c y c le 0
M o d u la tio n c y c le 1
M o d u la tio n c y c le 2
P W M c y c le : 4 0 9 6 /fS Y S
8+4 PWM Mode
1 0 0 /2 5 6
1 0 0 /2 5 6
1 0 0 /2 5 6
1 0 0 /2 5 6
1 0 1 /2 5 6
1 0 1 /2 5 6
1 0 1 /2 5 6
M o d u la tio n c y c le 1 5
1 0 1 /2 5 6
M o d u la tio n c y c le 0
P W M 0H ~P W M 3H
H ig h B y te R e g is te r s
b7
b0
11 10 9 8 7 6 5 4
b7
32
P W M 0L~P W M 3L
L o w B y te R e g is te r s
10
PWM Register Pairs
b0
P W M nE N
P W M R e g is te r s (n = 0 ~ 3 )
P W M O n /O ff C o n tro l
1 : P W M e n a b le
0 : I/O p in e n a b le
N o t im p le m e n te d , r e a d a s " 0 "
P W M A C V a lu e
b its 0 ~ 3
P W M D C V a lu e
b its 4 ~ 1 1
Rev. 1.30
59
December 26, 2014
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]