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

HT46R12A 参数 Datasheet PDF下载

HT46R12A图片预览
型号: HT46R12A
PDF下载: 下载PDF文件 查看货源
内容描述: A / D型8位OTP MCU [A/D Type 8-Bit OTP MCU]
分类和应用:
文件页数/大小: 48 页 / 303 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46R12A的Datasheet PDF文件第7页浏览型号HT46R12A的Datasheet PDF文件第8页浏览型号HT46R12A的Datasheet PDF文件第9页浏览型号HT46R12A的Datasheet PDF文件第10页浏览型号HT46R12A的Datasheet PDF文件第12页浏览型号HT46R12A的Datasheet PDF文件第13页浏览型号HT46R12A的Datasheet PDF文件第14页浏览型号HT46R12A的Datasheet PDF文件第15页  
HT46R12A  
The A/D converter interrupt is initialised by setting the  
A/D converter request flag (ADF; bit 6 of the INTC1),  
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 018H will occur. The related inter-  
rupt request flag, ADF, will be reset and the EMI bit  
cleared to disable further interrupts.  
There are two types of system oscillator circuits within the  
microcontroller. These are an RC oscillator and a Crys-  
tal oscillator, the choice of which is determined via a  
configuration option.  
If an RC oscillator is used, an external resistor between  
OSC1 and VSS is required and whose resistance  
should range from 24kW to 1MW. Pin OSC2 can be  
used to monitor the system frequency at 1/4 the system  
frequency or can be used to synchronize external cir-  
cuitry. The RC oscillator provides the most cost effec-  
tive means of oscillator implementation, however, the  
frequency of oscillation may vary with VDD, tempera-  
ture and process variations. It is, therefore, not recom-  
mended for use in timing sensitive applications where  
an accurate oscillator frequency is desired.  
During the execution of an interrupt subroutine, other in-  
terrupt acknowledgements are held until the ²RETI² in-  
struction is executed or the EMI bit and the related  
interrupt control bit are set to 1, if the stack is not full. To  
return from the interrupt subroutine, a RET or RETI  
instruction may be executed. The RETI instruction will set  
the EMI bit to re-enable an interrupt service, but the RET  
will not.  
If a Crystal oscillator is used, a crystal connected be-  
tween OSC1 and OSC2 is required. No other external  
components are required. Instead of a crystal, a resona-  
tor can also be connected between OSC1 and OSC2 to  
obtain a frequency reference, but two external capaci-  
tors connected between OSC1, OSC2 and ground are  
required, if the oscillating frequency is less than 1MHz.  
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  
Priority Vector  
When the system enters the Power-down mode the sys-  
tem oscillator is stopped to conserve power.  
Comparator 0 output interrupt  
Comparator 1 output interrupt  
External Interrupt - from PC1  
Timer/Event Counter 0 overflow  
Timer/Event Counter 1 overflow  
A/D converter completed overflow  
1
2
3
4
5
6
004H  
008H  
00CH  
010H  
014H  
018H  
The WDT oscillator is a free running on-chip RC oscillator,  
and no external components are required. Even if the sys-  
tem enters the power down mode where the system clock  
is stopped, the WDT oscillator will continue to operate with  
a period of approximately 65ms at 5V. The WDT oscillator  
can be disabled using a configuration option to conserve  
power.  
The EMI, EC0I, EC1I, EEI, ET0I, ET1I, and EADI bits  
are all used to control the enable/disable status of the in-  
terrupts. These bits prevent the requested interrupt from  
being serviced. Once the interrupt request flags, C0F,  
C1F, EIF, T0F, T1F, ADF are set, they remain in the  
INTC1 or INTC0 register until the interrupts are serviced  
or cleared by a software instruction. It is recommended  
that a program does not use the ²CALL subroutine² within  
the interrupt subroutine. Interrupts often occur in an un-  
predictable 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 se-  
quence will be damaged if the ²CALL² operates within the  
interrupt subroutine.  
Watchdog Timer - WDT  
The WDT clock source is implemented using a dedi-  
cated internal RC oscillator (WDT oscillator) or by the in-  
struction clock, which is the system clock divided by 4.  
The choice of which one is used is determined by a  
configuration option. This timer is designed to prevent a  
software malfunction or a sequence jumping to an un-  
known location with unpredictable results. The  
Watchdog Timer can be disabled by a configuration op-  
tion. If the Watchdog Timer is disabled, all instructions  
relating to the WDT result in no operation.  
The WDT clock source will be subsequently divided by  
either 213, 214 , 215 or 216, determined by a configuration  
option, to get the actual WDT time-out period. Using the  
internal WDT clock source, the minimum WDT time-out  
period is about 600ms. This time-out period may vary  
with temperature, VDD and process variations. By se-  
lecting appropriate WDT options, longer time-out peri-  
ods can be implemented. If the WDT time-out is  
selected to be fS/216, then a maximum time-out period of  
about 4.7s can be achieved.  
Oscillator Configuration  
V
D
D
O
S
C
1
O
S
C
1
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  
Rev. 1.00  
11  
August 3, 2007