欢迎访问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文件第7页浏览型号HT45R04E的Datasheet PDF文件第8页浏览型号HT45R04E的Datasheet PDF文件第9页浏览型号HT45R04E的Datasheet PDF文件第10页浏览型号HT45R04E的Datasheet PDF文件第12页浏览型号HT45R04E的Datasheet PDF文件第13页浏览型号HT45R04E的Datasheet PDF文件第14页浏览型号HT45R04E的Datasheet PDF文件第15页  
Preliminary  
HT45R04/HT45R04E  
Bit No.  
Label  
EMI  
EEI  
ETI  
Function  
Controls the master (global) interrupt (1= enable; 0= disable)  
Controls the external interrupt (1= enable; 0= disable)  
0
1
2
3
4
5
6
7
Controls the timer/event counter interrupt (1= enable; 0= disable)  
Controls the A/D converter interrupt (1= enable; 0= disable)  
External interrupt request flag (1= active; 0= inactive)  
Internal timer/event counter request flag (1= active; 0= inactive)  
A/D converter request flag (1= active; 0= inactive)  
Unused bit, read as ²0²  
EADI  
EIF  
TF  
ADF  
¾
INTC (0BH) Register  
The internal timer/event counter interrupt is initialized by  
setting the timer/event counter interrupt request flag  
(TF; bit 5 of the INTC), caused by a timer overflow.  
When the interrupt is enabled, the stack is not full and  
the TF bit is set, a subroutine call to location 08H will oc-  
cur. The related interrupt request flag (TF) will be reset  
and the EMI bit cleared to disable further interrupts.  
isters (INTC) which is located at 0BH in the data  
memory. EMI, EEI, ETI, EADI and are used to control  
the enabling/disabling of interrupts. These bits prevent  
the requested interrupts from being serviced. Once the  
interrupt request flags (TF, EIF, ADF) are set, they will  
remain in the INTC register until the interrupts are ser-  
viced or cleared by a software instruction.  
The A/D converter end-of-conversion interrupt is initial-  
ized by setting the A/D end-of-conversion interrupt re-  
quest flag (bit 6 of the INTC), caused by an end of A/D  
conversion. When the interrupt is enabled, the stack is  
not full and the end of A/D conversion interrupt request  
flag is set, a subroutine call to location 00CH will occur.  
The related interrupt request flag will be reset and the  
EMI bit cleared to disable further interrupts.  
It is recommended that a program does not use the  
²CALL subroutine² within the interrupt subroutine. Inter-  
rupts often occur in an unpredictable manner or need to  
be serviced immediately in some applications. If only  
one stack is left and enabling the interrupt is not well  
controlled, the original control sequence will be dam-  
aged once the ²CALL² operates in the interrupt subrou-  
tine.  
During the execution of an interrupt subroutine, other in-  
terrupt acknowledge are held until the ²RETI²  
instruction is executed or the EMI bit and the related in-  
terrupt control bit are set to 1 (if the stack is not full). To  
return from the interrupt subroutine, ²RET² or ²RETI²  
may be invoked. RETI will set the EMI bit to enable an  
interrupt service, but RET will not.  
Oscillator Configuration  
There are two oscillator circuits in the microcontroller.  
V
D
D
O
S
C
1
O
S
C
1
Interrupts, occurring in the interval between the rising  
edges of two consecutive T2 pulses, will be serviced on  
the latter of the two T2 pulses, if the corresponding inter-  
rupts are enabled. In the case of simultaneous requests  
the following table shows the priority that is applied.  
These can be masked by resetting the EMI bit.  
S
Y
S
O
S
C
2
O
S
C
2
N
M
O
S
O
p
e
n
D
r
a
i
n
C
r
y
s
t
a
l
O
s
c
i
l
l
a
t
o
r
R
C
O
s
c
i
l
l
a
t
o
r
System Oscillator  
Both are designed for system clocks, namely the RC os-  
cillator and the Crystal oscillator, which are determined  
by options. No matter what oscillator type is selected,  
the signal provides the system clock. The HALT mode  
stops the system oscillator and ignores an external sig-  
nal to conserve power.  
Interrupt Source  
External Interrupt  
Priority Vector  
1
2
3
04H  
08H  
0CH  
Timer/Event Counter Overflow  
A/D Converter Interrupt  
The timer/event counter interrupt request flag (TF), ex-  
ternal interrupt request flags (EIF), A/D converter inter-  
rupt request flag (ADF), enable timer/event counter  
interrupt bit (ETI), enable A/D converter interrupt  
(EADI), enable external interrupt (EEI) and enable mas-  
ter interrupt bit(EMI) constitute the interrupt control reg-  
If an RC oscillator is used, an external resistor between  
OSC1 and VSS is required and the resistance must  
range from 24kW to 1MW. The system clock, divided by  
4, is available on OSC2, which can be used to synchro-  
nize external logic. The RC oscillator provides the most  
cost effective solution. However, the oscillation fre-  
Rev. 0.00  
11  
December 30, 2004  
 复制成功!