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

HT46R01 参数 Datasheet PDF下载

HT46R01图片预览
型号: HT46R01
PDF下载: 下载PDF文件 查看货源
内容描述: 10引脚MSOP A / D型8位OTP MCU [10-Pin MSOP A/D Type 8-Bit OTP MCU]
分类和应用:
文件页数/大小: 60 页 / 482 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46R01的Datasheet PDF文件第27页浏览型号HT46R01的Datasheet PDF文件第28页浏览型号HT46R01的Datasheet PDF文件第29页浏览型号HT46R01的Datasheet PDF文件第30页浏览型号HT46R01的Datasheet PDF文件第32页浏览型号HT46R01的Datasheet PDF文件第33页浏览型号HT46R01的Datasheet PDF文件第34页浏览型号HT46R01的Datasheet PDF文件第35页  
HT46R01/HT46R02/HT46R03  
:
:
; As the Port A channel bits have changed the  
; following START  
; signal (0-1-0) must be issued within 10  
; instruction cycles  
Start_conversion:  
clr  
set  
clr  
Polling_EOC:  
sz  
START  
START  
START  
; reset A/D  
; start A/D  
EOCB  
; poll the ADCR register EOCB bit to detect end  
; of A/D conversion  
; continue polling  
; read conversion result value from the ADR  
; register  
; save result to user defined memory  
jmp  
mov  
polling_EOC  
a,ADR  
mov  
jmp  
adr_buffer,a  
:
:
start_conversion  
; start next A/D conversion  
Example: using an interrupt method to detect the end of conversion for the HT46R01 devices  
clr  
mov  
mov  
EADI  
a,00000001B  
ACSR,a  
; disable ADC interrupt  
; setup the ACSR register to select fSYS/8 as  
; the A/D clock  
mov  
mov  
a,00100000B  
; setup ADCR register to configure Port PA0~PA3  
; as A/D inputs  
; and select AN0 to be connected to the A/D  
; converter  
ADCR,a  
:
; As the Port A channel bits have changed the  
; following START  
; signal (0-1-0) must be issued within 10  
; instruction cycles  
:
Start_conversion:  
clr  
set  
clr  
clr  
set  
set  
START  
START  
START  
ADF  
EADI  
EMI  
:
; reset A/D  
; start A/D  
; clear ADC interrupt request flag  
; enable ADC interrupt  
; enable global interrupt  
:
:
; ADC interrupt service routine  
ADC_ISR:  
mov  
mov  
mov  
acc_stack,a  
a,STATUS  
status_stack,a  
:
; save ACC to user defined memory  
; save STATUS to user defined memory  
:
a,ADR  
mov  
mov  
; read conversion result value from the ADR  
; register  
; save result to user defined register  
adr_buffer,a  
:
:
EXIT_INT_ISR:  
mov  
mov  
mov  
reti  
a,status_stack  
STATUS,a  
a,acc_stack  
; restore STATUS from user defined memory  
; restore ACC from user defined memory  
Rev. 1.00  
31  
September 21, 2007  
 复制成功!