HT46RU25 Holtek Semiconductor Inc., HT46RU25 Datasheet - Page 10

no-image

HT46RU25

Manufacturer Part Number
HT46RU25
Description
Ht46ru25/ht46cu25 -- A/d Type 8-bit Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT46RU25
Manufacturer:
HOLTEK/合泰
Quantity:
20 000
Rev. 1.30
RAM Mapping
10
The ALU not only saves the results of a data operation
but also changes the status register.
Status Register - STATUS
The status register (0AH) is 8 bits wide and contains, a
carry flag (C), an auxiliary carry flag (AC), a zero flag (Z),
an overflow flag (OV), a power down flag (PDF), and a
Watchdog time-out flag (TO). It also records the status in-
formation and controls the operation sequence. Except
for the TO and PDF flags, bits in the status register can be
altered by instructions similar to other registers. Data
written into the status register does not alter the TO or
PDF flags. Operations related to the status register, how-
ever, may yield different results from those intended. The
TO and PDF flags can only be changed by a Watchdog
Timer overflow, chip power-up, or clearing the Watchdog
Timer and executing the HALT instruction.
The Z, OV, AC, and C flags reflect the status of the latest
operations. On entering the interrupt sequence or exe-
cuting the subroutine call, the status register will not be
automatically pushed onto the stack. If the contents of
the status is important, and if the subroutine is likely to
corrupt the status register, the programmer should take
precautions and save it properly.
Interrupts - INTC0, INTC1, MFIC
The device provides one external interrupt, two internal
timer/event counter 0/1 interrupts, UART Bus interrupt,
I
(timer/event counter 2 interrupt, real time clock interrupt,
time base interrupt), The interrupt control register 0
(INTC0;0BH), interrupt control register 1 (INTC1;1EH)
and Multi-Function interrupt control register (MFIC;2FH)
contains the interrupt control bits to set the enable/dis-
able 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 occur during this interval but only
the interrupt request flag is recorded. If a certain inter-
rupt requires servicing within the service routine, the
EMI bit and the corresponding bit of the INTC0, INTC1
and MFIC may be set to allow interrupt nesting. If the
stack is full, the interrupt request will not be acknowl-
edged, even if the related interrupt is enabled, until the
SP is decremented. 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
2
Increment and Decrement (INC, DEC)
Branch decision (SZ, SNZ, SIZ, SDZ)
C-Bus interrupt, the Multi-function interrupt
HT46RU25/HT46CU25
March 9, 2007

Related parts for HT46RU25