at90pwm81-16se ATMEL Corporation, at90pwm81-16se Datasheet - Page 12

no-image

at90pwm81-16se

Manufacturer Part Number
at90pwm81-16se
Description
8-bit Avr Microcontroller With 8k Bytes In- System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
4.6
4.7
12
Stack Pointer
Instruction Execution Timing
AT90PWM81
In the different addressing modes these address registers have functions as fixed displacement, automatic
increment, and automatic decrement (see the instruction set reference for details).
The Stack is mainly used for storing temporary data, for storing local variables and for storing return
addresses after interrupts and subroutine calls. The Stack Pointer Register always points to the top of the
Stack. Note that the Stack is implemented as growing from higher memory locations to lower memory
locations. This implies that a Stack PUSH command decreases the Stack Pointer.
The Stack Pointer points to the data SRAM Stack area where the Subroutine and Interrupt Stacks are
located. This Stack space in the data SRAM must be defined by the program before any subroutine calls
are executed or interrupts are enabled. The Stack Pointer must be set to point above 0x100. The Stack
Pointer is decremented by one when data is pushed onto the Stack with the PUSH instruction, and it is
decremented by two when the return address is pushed onto the Stack with subroutine call or interrupt.
The Stack Pointer is incremented by one when data is popped from the Stack with the POP instruction,
and it is incremented by two when data is popped from the Stack with return from subroutine RET or
return from interrupt RETI.
The AVR Stack Pointer is implemented as two 8-bit registers in the I/O space. The number of bits actually
used is implementation dependent. Note that the data space in some implementations of the AVR architec-
ture is so small that only SPL is needed. In this case, the SPH Register will not be present.
This section describes the general access timing concepts for instruction execution. The AVR CPU is
driven by the CPU clock clk
clock division is used.
Figure 4-4
tecture and the fast-access Register File concept. This is the basic pipelining concept to obtain up to 1
MIPS per MHz with the corresponding unique results for functions per cost, functions per clocks, and
functions per power-unit.
Bit
Read/Write
Initial Value
Y-register
Z-register
shows the parallel instruction fetches and instruction executions enabled by the Harvard archi-
15
SP15
SP7
7
R/W
R/W
0
0
7
R29 (0x1D)
15
7
R31 (0x1F)
14
SP14
SP6
6
R/W
R/W
0
0
CPU
, directly generated from the selected clock source for the chip. No internal
13
SP13
SP5
5
R/W
R/W
0
0
ZH
0
12
SP12
SP4
4
R/W
R/W
0
0
11
0
SP11
SP3
3
R/W
R/W
0
0
7
R28 (0x1C)
7
R30 (0x1E)
R/W
R/W
10
SP10
SP2
2
0
0
9
SP9
SP1
1
R/W
R/W
0
0
ZL
8
SP8
SP0
0
R/W
R/W
0
0
0
SPH
SPL
7734M–AVR–03/10
0
0

Related parts for at90pwm81-16se