HT46R12A Holtek Semiconductor Inc., HT46R12A Datasheet - Page 8

no-image

HT46R12A

Manufacturer Part Number
HT46R12A
Description
Ht46r12a -- A/d Type 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
Stack Register - STACK
This is a special part of the memory which is used to
save the contents of the program counter only. The
stack is organized into 8 levels and is neither part of the
data nor part of the program space, and is neither read-
able nor writeable. The activated level is indexed by the
stack pointer, SP, and is neither readable nor writeable.
At a subroutine call or interrupt acknowledge signal, the
contents of the program counter are pushed onto the
stack. At the end of a subroutine or an interrupt routine,
indicated by a return instruction, RET or RETI, the pro-
gram counter is restored to its previous value from the
stack. After a chip reset, the SP will point to the top of the
stack.
If the stack is full and a non-masked interrupt takes
place, the interrupt request flag will be recorded but the
acknowledge signal will be inhibited. When the stack
pointer is decremented, using RET or RETI, the inter-
rupt will be serviced. This feature prevents a stack over-
flow allowing the programmer to use the structure more
easily. In a similar case, if the stack is full and a CALL
is subsequently executed, a stack overflow will occur
and the first entry will be lost as only the most recent 8
return addresses are stored.
Data Memory - RAM
The data memory has a capacity of 115 8 bits, and is di-
vided into two functional groups, namely the special
function registers and the general purpose data mem-
ory (88 8 bits), most of which are readable/writeable,
although some are read only.
The unused space before address 28H is reserved for
future expansion usage and reading these locations will
obtain a result of 00H . The general purpose data
memory, addressed from 28H to 7FH is used for data
and control information under instruction commands.
All of the data memory areas can handle arithmetic,
logic, increment, decrement and rotate operations di-
rectly. Except for some dedicated bits, each bit in the
data memory can be set and reset by SET [m].i and
the memory pointer registers, MP0 and MP1.
Rev. 1.00
CLR [m].i . They are also indirectly accessible through
operation. These areas may function as normal pro-
gram memory depending upon requirements.
8
RAM Mapping
HT46R12A
August 3, 2007

Related parts for HT46R12A