ATAM893X-TKHYZ ATMEL [ATMEL Corporation], ATAM893X-TKHYZ Datasheet - Page 6

no-image

ATAM893X-TKHYZ

Manufacturer Part Number
ATAM893X-TKHYZ
Description
Flash Version for ATAR080, ATAR090/890 and ATAR092/892
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
4.2.2.2
4.2.3
4.2.3.1
6
ATAM893-D
Registers
Return Stack
Program Counter (PC)
The 12-bit wide return stack is addressed by the Return stack Pointer (RP). It is used for storing
return addresses of subroutines, interrupt routines and for keeping loop index counts. The return
stack can also be used as a temporary storage area.
The MARC4 instruction set supports the exchange of data between the top elements of the
expression stack and the return stack. The two stacks within the RAM have a user definable
location and maximum depth.
Figure 4-3.
The MARC4 controller has seven programmable registers and one condition code register. They
are shown in the following programming model.
The program counter is a 12-bit register which contains the address of the next instruction to be
fetched from the ROM. Instructions currently being executed are decoded in the instruction
decoder to determine the internal micro-operations. For linear code (no calls or branches) the
program counter is incremented with every instruction cycle. If a branch-, call-, return-instruction
or an interrupt is executed, the program counter is loaded with a new address. The program
counter is also used with the table instruction to fetch 8-bit wide ROM constants.
RAM Map
RP
SP
Y
X
FCh
04h
00h
Autosleep
TOS-1
(256 x 4-bit)
RAM
FFh
07h
03h
Expression
stack
Return
stack
Global
variables
variables
Global
Expression stack
11
Return stack
3
TOS-1
TOS-2
TOS
4-bit
12-bit
0
SP
0
4680C–4BMCU–01/05
RP

Related parts for ATAM893X-TKHYZ