DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

HT48R03 データシートの表示(PDF) - Holtek Semiconductor

部品番号
コンポーネント説明
メーカー
HT48R03
Holtek
Holtek Semiconductor Holtek
HT48R03 Datasheet PDF : 38 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
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.
HT48R01/HT48R02/HT48R03
System Control Register
Bit No. Label
Function
Clock mode selection - select the system clock source
0
CLKMOD
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.
32768Hz OSC quick start-up oscillating setting
1
QOSC 0: quickly startup
1: slow startup
BZ/BZ enable/disable
00: both disabled
01: Reserved
2
BZEN0 10: BZ only enabled
3
BZEN1 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.
Rev. 1.00
10
December 20, 2006

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]