| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT48R02 bảng dữ liệu(PDF) 10 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT48R02 bảng dữ liệu(HTML) 10 Page - Holtek Semiconductor Inc |
|
10 / 38 page ![]() HT48R01/HT48R02/HT48R03 Rev. 1.00 10 December 20, 2006 In addition, on entering the interrupt sequence or exe- cuting the subroutine call, the status register will not be pushed onto the stack automatically. If the contents of the status are important and if the subroutine can cor- rupt the status register, precautions must be taken to save it properly. System Control Register Bit No. Label Function 0 CLKMOD Clock mode selection - select the system clock source 0: High speed clock as system clock - internal RC 1: Low speed clock as system clock - 32.768kHz, and RC oscillator stop Note: This selection is used only in internal RC + RTC mode. 1 QOSC 32768Hz OSC quick start-up oscillating setting 0: quickly startup 1: slow startup 2 3 BZEN0 BZEN1 BZ/BZ enable/disable 00: both disabled 01: Reserved 10: BZ only enabled 11: BZ and BZ enabled When BZ or BZ are disabled, the I/O port will have general I/O functions. If enabled, the BZ or BZ outputs will still be controlled by the related I/O port control and data settings. Refer to the I/O chapter for details. 4~5 ¾ Unused bit, read as ²0² 6 BZCS BZCS, buzzer clock source, 0/1: Timer0/Timer1 7 Unused bit, read as ²0² CTRL (16H) Register Note: For the HT48R01, BZCS is always 0 no matter what value is written into it; i.e., clock source for Buzzer is only from timer0. Interrupt The device provides an external interrupt and internal timer/event counter interrupts. The Interrupt Control Reg- ister (INTC;0BH) contains the interrupt control bits to set the enable or disable and the interrupt request flags. Once an interrupt subroutine is serviced, all the other in- terrupts will be blocked, by clearing the EMI bit. This scheme may prevent any further interrupt nesting. Other interrupt requests may happen during this interval but only the interrupt request flag is recorded. If a certain in- terrupt requires servicing within the service routine, the EMI bit and the corresponding bit in the INTC register may be set to allow interrupt nesting. If the stack is full, the interrupt request will not be acknowledged, even if the related interrupt is enabled, until the SP is decre- mented. If immediate service is desired, the stack must be prevented from becoming full. All these kinds of interrupts have a wake-up capability. As an interrupt is serviced, a control transfer occurs by pushing the program counter onto the stack, followed by a branch to a subroutine at specified location in the pro- gram memory. Only the program counter is pushed onto the stack. If the contents of the register or status register are altered by the interrupt service program which cor- rupts the desired control sequence, the contents should be saved in advance. External interrupts are triggered by a high to low transi- tion of INT and the related interrupt request flag (EIF; bit 4 of INTC) will be set. When the interrupt is enabled, the stack is not full and the external interrupt is active, a sub- routine call to location 04H will occur. The interrupt re- quest flag (EIF) and EMI bits will be cleared to disable other interrupts. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |