欢迎访问ic37.com |
会员登录 免费注册
发布采购

HT48R01N 参数 Datasheet PDF下载

HT48R01N图片预览
型号: HT48R01N
PDF下载: 下载PDF文件 查看货源
内容描述: 小型封装8位OTP MCU [Small Package 8-Bit OTP MCU]
分类和应用:
文件页数/大小: 71 页 / 404 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT48R01N的Datasheet PDF文件第38页浏览型号HT48R01N的Datasheet PDF文件第39页浏览型号HT48R01N的Datasheet PDF文件第40页浏览型号HT48R01N的Datasheet PDF文件第41页浏览型号HT48R01N的Datasheet PDF文件第43页浏览型号HT48R01N的Datasheet PDF文件第44页浏览型号HT48R01N的Datasheet PDF文件第45页浏览型号HT48R01N的Datasheet PDF文件第46页  
HT46R01B/02B/01N/02N  
HT48R01B/02B/01N/02N  
PWM Output Control  
the PWM data to appear on the pin. Writing a zero value  
will disable the PWM output function and force the out-  
put low. In this way, the Port data output registers can be  
used as an on/off control for the PWM function. Note  
that if the CTRL0 register have selected the PWM func-  
tion, but a high value has been written to its correspond-  
ing 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 options.  
The PWM outputs are pin-shared with the I/O pins PA4.  
To operate as a PWM output and not as an I/O pin, the  
correct bits must be set in the CTRL0 register. A zero  
value must also be written to the corresponding bit in the  
I/O port control register PAC.4 to ensure that the corre-  
sponding 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 PWMn register, writing a high value to the corre-  
sponding bit in the output data register PA.4 will enable  
·
PWM Programming Example  
The following sample program shows how the PWM0 output is setup and controlled.  
mov a,64h  
mov pwm0,a  
set ctrl0.5  
set ctrl0.3  
clr pac.4  
set pa.4  
: :  
; setup PWM value of decimal 100  
; select the 7+1 PWM mode  
; select pin PA4 to have a PWM function  
; setup pin PA4 as an output  
; enable the PWM output  
clr pa.4  
; disable the PWM output_ pin  
; PA4 forced low  
Rev.1.10  
42  
February 12, 2010  
 复制成功!