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

HT46R0662G 参数 Datasheet PDF下载

HT46R0662G图片预览
型号: HT46R0662G
PDF下载: 下载PDF文件 查看货源
内容描述: 增强A / D型8位OTP MCU与OPA [Enhanced A/D Type 8-Bit OTP MCU with OPA]
分类和应用:
文件页数/大小: 136 页 / 748 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46R0662G的Datasheet PDF文件第92页浏览型号HT46R0662G的Datasheet PDF文件第93页浏览型号HT46R0662G的Datasheet PDF文件第94页浏览型号HT46R0662G的Datasheet PDF文件第95页浏览型号HT46R0662G的Datasheet PDF文件第97页浏览型号HT46R0662G的Datasheet PDF文件第98页浏览型号HT46R0662G的Datasheet PDF文件第99页浏览型号HT46R0662G的Datasheet PDF文件第100页  
HT46R064G/065G/0662G  
Enhanced A/D Type 8-Bit OTP MCU with OPA  
External Interrupt  
For an external interrupt to occur, the global interrupt enable bit, EMI, and external interrupt enable bit,  
INTE, must first be set. An actual external interrupt will take place when the external interrupt request  
flag, INTF, is set, a situation that will occur when an edge transition appears on the external INT line.  
The type of transition that will trigger an external interrupt, whether high to low, low to high or both is  
determined by the INTEG0 and INTEG1 bits, which are bits 6 and 7 respectively, in the CTRL1  
control register. These two bits can also disable the external interrupt function.  
INTEG1  
INTEG0  
Edge Trigger Type  
External interrupt disable  
0
0
1
1
0
1
0
1
Rising edge Trigger  
Falling edge Trigger  
Both edge Trigger  
The external interrupt pin is pin-shared with the I/O pin PA3 and can only be configured as an exter-  
nal interrupt pin if the corresponding external interrupt enable bit in the INTC register has been set  
and the edge trigger type has been selected using the CTRL1 register. The pin must also be setup as  
an input by setting the corresponding PAC.3 bit in the port control register. When the interrupt is en-  
abled, the stack is not full and an active transition appears on the external interrupt pin, a subroutine  
call to the external interrupt vector at location 04H, will take place. When the interrupt is serviced,  
the external interrupt request flag, INTF, will be automatically reset and the EMI bit will be automati-  
cally cleared to disable other interrupts. Note that any pull-high resistor connections on this pin will  
remain valid even if the pin is used as an external interrupt input.  
Timer/Event Counter Interrupt  
For a Timer/Event Counter interrupt to occur, the global interrupt enable bit, EMI, and the  
corresponding timer interrupt enable bit, TnE, must first be set. An actual Timer/Event Counter  
interrupt will take place when the Timer/Event Counter request flag, TnF, is set, a situation that will  
occur when the relevant Timer/Event Counter overflows. When the interrupt is enabled, the stack is  
not full and a Timer/Event Counter n overflow occurs, a subroutine call to the relevant timer interrupt  
vector, will take place. When the interrupt is serviced, the timer interrupt request flag, TnF, will be  
automatically reset and the EMI bit will be automatically cleared to disable other interrupts.  
A/D Converter Interrupt  
For an A/D interrupt to occur, the global interrupt enable bit EMI and the corresponding interrupt  
enable bit ADE must be first set. An actual A/D interrupt will take place when the A/D converter  
request flag ADF is set, a situation that will occur when an A/D conversion process has completed.  
When the interrupt is enabled, the stack is not full and an A/D conversion process finishes execution, a  
subroutine call to the relevant A/D interrupt vector, will take place. When the interrupt is serviced, the  
A/D interrupt request flag ADF will be automatically reset and the EMI bit will be automatically  
cleared to disable other interrupts. As this interrupt vector location is shared with other interrupts, to be  
effective it must be selected via configuration option.  
Time Base Interrupt  
For a time base interrupt to occur the global interrupt enable bit EMI and the corresponding interrupt  
enable bit TBE, must first be set. An actual Time Base interrupt will take place when the time base  
request flag TBF is set, a situation that will occur when the Time Base overflows. When the interrupt is  
enabled, the stack is not full and a time base overflow occurs a subroutine call to time base vector will  
take place. When the interrupt is serviced, the time base interrupt flag. TBF will be automatically reset  
and the EMI bit will be automatically cleared to disable other interrupts.  
Rev. 1.00  
96  
March 3, 2011