HT56R66 Holtek Semiconductor Inc., HT56R66 Datasheet - Page 48

no-image

HT56R66

Manufacturer Part Number
HT56R66
Description
Tinypower Tm A/d Type With Lcd 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
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
Rev. 1.10
:
:
:
:
; 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
PWM Register Pairs
8+4 PWM Mode
PD0 will remain low
48
HT56R66/HT56R666
September 8, 2009

Related parts for HT56R66