HT45R34 Holtek Semiconductor, HT45R34 Datasheet - Page 7

no-image

HT45R34

Manufacturer Part Number
HT45R34
Description
C/R to F Type 8-Bit OTP MCU
Manufacturer
Holtek Semiconductor
Datasheet
www.DataSheet4U.com
by a return instruction, RET or RETI, the program counter
is restored to its previous value from the stack. After a de-
vice reset, the stack pointer 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
acknowledgment will be inhibited. When the stack
pointer is decremented, by RET or RETI, the interrupt
will be serviced. This feature prevents stack overflow al-
lowing the programmer to use the structure more easily.
In a similar case, if the stack is full and a CALL is sub-
sequently executed, stack overflow occurs and the first
entry will be lost as only the most recent 4 return ad-
dresses are stored.
Data Memory - RAM
The data memory has a capacity of 111 8 bits. The data
memory is divided into two functional groups: special
function registers and general purpose data memory
(88 8). Most are read/write, but some are read only.
The general purpose data memory, addressed from 28H
to 7FH, is used for data and control information under in-
struction 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 the SET [m].i
and CLR [m].i bit manipulation instructions. They are
also indirectly accessible through the memory pointer
registers (MP0;01H, MP1;02H).
Indirect Addressing Register
The method of indirect addressing allows data manipu-
lation using memory pointers instead of the usual direct
memory addressing method where the actual memory
address is defined. Any action on the indirect address-
ing registers will result in corresponding read/write oper-
ations to the memory location specified by the
corresponding memory pointers. This device contains
two indirect addressing registers known as IAR0 and
IAR1 and two memory pointers MP0 and MP1. Note that
these indirect addressing registers are not physically
implemented and that reading the indirect addressing
registers indirectly will return a result of 00H and writ-
ing to the registers indirectly will result in no operation.
The two memory pointers, MP0 and MP1, are physically
implemented in the data memory and can be manipu-
lated in the same way as normal registers providing a
convenient way with which to address and track data.
When any operation to the relevant indirect addressing
registers is carried out, the actual address that the
microcontroller is directed to is the address specified by
the related memory pointer.
Rev. 1.20
7
Bit 7 of the memory pointers are not implemented. How-
ever, it must be noted that when the memory pointers in
this device is read, a value of 1 will be read.
Accumulator
The accumulator is closely related to ALU operations. It
is also mapped to location 05H of the data memory
and can carry out immediate data operations. The data
movement between two data memory locations must
pass through the accumulator.
RAM Mapping
October 15, 2007
HT45R34

Related parts for HT45R34