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

HT46C23(24S0P) 参数 Datasheet PDF下载

HT46C23(24S0P)图片预览
型号: HT46C23(24S0P)
PDF下载: 下载PDF文件 查看货源
内容描述: [Microcontroller, 8-Bit, MROM, 8MHz, CMOS, PDSO24]
分类和应用: 微控制器光电二极管
文件页数/大小: 48 页 / 407 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46C23(24S0P)的Datasheet PDF文件第6页浏览型号HT46C23(24S0P)的Datasheet PDF文件第7页浏览型号HT46C23(24S0P)的Datasheet PDF文件第8页浏览型号HT46C23(24S0P)的Datasheet PDF文件第9页浏览型号HT46C23(24S0P)的Datasheet PDF文件第11页浏览型号HT46C23(24S0P)的Datasheet PDF文件第12页浏览型号HT46C23(24S0P)的Datasheet PDF文件第13页浏览型号HT46C23(24S0P)的Datasheet PDF文件第14页  
HT46R23/HT46C23  
The internal timer/event counter interrupt is initialized by  
setting the timer/event counter interrupt request flag  
(TF; bit 5 of INTC0), 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 occur. The  
related interrupt request flag (TF) will be reset and the  
EMI bit cleared to disable further interrupts.  
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.  
Interrupt Source  
External Interrupt  
Priority Vector  
The A/D converter interrupt is initialized by setting the  
A/D converter request flag (ADF; bit 6 of INTC0),  
caused by an end of A/D conversion. When the interrupt  
is enabled, the stack is not full and the ADF is set, a sub-  
routine call to location 0CH will occur. The related inter-  
rupt request flag (ADF) will be reset and the EMI bit  
cleared to disable further interrupts.  
1
2
3
4
04H  
08H  
0CH  
10H  
Timer/Event Counter Overflow  
A/D Converter Interrupt  
Serial bus interrupt  
The timer/event counter interrupt request flag (TF), ex-  
ternal interrupt request flag (EIF), A/D converter request  
flag (ADF), the I2C Bus interrupt request flag (HIF), en-  
able timer/event counter bit (ETI), enable external inter-  
rupt bit (EEI), enable A/D converter interrupt bit (EADI),  
enable I2C Bus interrupt bit (EHI) and enable master in-  
terrupt bit (EMI) constitute an interrupt control register 0  
(INTC0) and an interrupt control register 1 (INTC1)  
which are located at 0BH and 1EH in the data memory.  
EMI, EEI, ETI, EADI, EHI are used to control the en-  
abling/disabling of interrupts. These bits prevent the re-  
quested interrupt from being serviced. Once the  
interrupt request flags (TF, EIF, ADF, HIF) are set, they  
will remain in the INTC0 and INTC1 register until the in-  
terrupts are serviced or cleared by a software instruc-  
tion.  
Register Bit No. Label  
Function  
Controls the master (global)  
0
1
2
EMI interrupt  
(1=enabled; 0=disabled)  
Controls the external interrupt  
(1=enabled; 0=disabled)  
EEI  
Controls the timer/event  
ETI counter interrupt  
(1=enabled; 0=disabled)  
Controls the A/D converter  
EADI interrupt  
INTC0  
(0BH)  
3
4
5
(1=enabled; 0=disabled)  
External interrupt request flag  
(1=active; 0=inactive)  
EIF  
Internal timer/event counter  
Register Bit No. Label  
Function  
TF request flag  
(1=active; 0=inactive)  
Controls the I2C Bus interrupt  
(1= enabled; 0= disabled)  
0
EHI  
¾
A/D converter request flag  
(1=active; 0=inactive)  
6
7
ADF  
1~3  
4
Unused bit, read as ²0²  
INTC1  
(1EH)  
I2C Bus interrupt request flag  
(1= active; 0= inactive)  
¾
Unused bit, read as ²0²  
HIF  
¾
INTC0 Register  
5~7  
Unused bit, read as ²0²  
The I2C Bus interrupt is initialized by setting the I2C Bus  
interrupt request flag (HIF; bit 4 of INTC1), caused by a  
slave address match (HAAS=²1²) or one byte of data trans-  
fer is completed. When the interrupt is enabled, the stack  
is not full and the HIF bit is set, a subroutine call to location  
10H will occur. The related interrupt request flag (HIF) will  
be reset and the EMI bit cleared to disable further inter-  
rupts.  
INTC1 Register  
It is recommended that a program does not use the  
²CALL subroutine² within the interrupt subroutine. In-  
terrupts 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 acknowledgments are held until the ²RETI² in-  
struction is executed or the EMI bit and the related  
interrupt control bit are set to 1 (of course, 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 en-  
able an interrupt service, but RET will not.  
Rev. 1.40  
10  
September 3, 2003