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

HT45R04E 参数 Datasheet PDF下载

HT45R04E图片预览
型号: HT45R04E
PDF下载: 下载PDF文件 查看货源
内容描述: [适用于安防系列(烟感器、温感器、家用一 氧化碳测试器)等产品的 IC:HT45R04E。 工作电压:2.2V~5.5V ;工作频率:400Kz---2MHz(当fsys=455kHz时,VDD=+5V时 IDD<200uA) 1. 最多可有13 个双向输入/输出口 , 18-pin SOP 封装 2. 1 个与输入/输出口共用引脚的外部中断输入 3. 8 位可编程定时/计数器,具有溢出中断和7 级预分频器 4. 内置晶体和RC 振荡电路 5. 看门狗定时器 6. 1024×14Bits 程序存储器ROM 7. 64×8Bits 数据存储器RAM 8. 128×8Bits 数据存储器EEPROM,符合IIC通信协议(使用方法同24C01一致) 9. 具有PFD 功能,可以用来发声 10. HALT 和唤醒功能可降低功耗 11. 4 层硬件堆栈 12. 4 通道8 位解析度的A/D 转换器 13. 查表指令,表格内容字长14 位 14. 63 条指令,包含位操作指令 15. 指令执行时间为1 或2 个指令周期]
分类和应用: 晶体转换器预分频器计数器存储测试通信可编程只读存储器电动程控只读存储器电可擦编程只读存储器
文件页数/大小: 43 页 / 2641 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT45R04E的Datasheet PDF文件第14页浏览型号HT45R04E的Datasheet PDF文件第15页浏览型号HT45R04E的Datasheet PDF文件第16页浏览型号HT45R04E的Datasheet PDF文件第17页浏览型号HT45R04E的Datasheet PDF文件第19页浏览型号HT45R04E的Datasheet PDF文件第20页浏览型号HT45R04E的Datasheet PDF文件第21页浏览型号HT45R04E的Datasheet PDF文件第22页  
Preliminary  
HT45R04/HT45R04E  
The following two programming examples illustrate how to setup and implement an A/D conversion. In the first exam-  
ple, the method of polling the EOCB bit in the ADCR register is used to detect when the conversion cycle is complete,  
whereas in the second example, the A/D interrupt is used to determine when the conversion is complete.  
Example: using EOCB Polling Method to detect end of conversion  
clr INTC.3  
; disable A/D interrupt in interrupt control register  
mov a,00100000B  
mov ADCR,a  
; setup ADCR register to configure Port PB0~PB3 as A/D inputs and select  
; AN0 to be connected to the A/D converter  
mov a,00000001B  
mov ACSR,a  
; setup the ACSR register to select fSYS/8 as the A/D clock  
Start_conversion:  
clr ADCR.7  
set ADCR.7  
clr ADCR.7  
; reset A/D  
; start A/D  
Polling_EOC:  
sz ADCR.6  
; poll the ADCR register EOCB bit to detect end of A/D conversion  
; continue polling  
jmp polling_EOC  
mov a,ADRH  
; read conversion result from the high byte ADRH register  
; save result to user defined register  
mov adrh_buffer,a  
:
:
jmp start_conversion  
; start next A/D conversion  
Example: using the Interrupt method to detect end of conversion  
set INTC.0  
; interrupt global enable  
set INTC.3  
; enable A/D interrupt in interrupt control register  
mov a,00100000B  
mov ADCR,a  
; setup ADCR register to configure Port PB0~PB3 as A/D inputs and select  
; AN0 to be connected to the A/D converter  
mov a,00000001B  
mov ACSR,a  
; setup the ACSR register to select fSYS/8 as the A/D clock  
start_conversion:  
clr ADCR.7  
set ADCR.7  
; reset A/D  
; start A/D  
clr ADCR.7  
:
:
; interrupt service routine  
EOC_service routine:  
mov a_buffer,a  
; save ACC to user defined register  
mov a,ADRH  
; read conversion result from the high byte ADRH register  
; save result to user defined register  
mov adrh_buffer,a  
clr ADCR.7  
set ADCR.7  
clr ADCR.7  
; reset A/D  
; start A/D  
mov a,a_buffer  
reti  
; restore ACC from temporary storage  
Rev. 0.00  
18  
December 30, 2004  
 复制成功!