ATTINY861A-MUR Atmel, ATTINY861A-MUR Datasheet - Page 11

no-image

ATTINY861A-MUR

Manufacturer Part Number
ATTINY861A-MUR
Description
MCU AVR 8KB FLASH 20MHZ 32QFN
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY861A-MUR

Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
Connectivity
USI
Peripherals
Brown-out Detect/Reset, POR, PWM, Temp Sensor, WDT
Number Of I /o
16
Program Memory Size
8KB (4K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
4.5
8197B–AVR–01/10
Stack Pointer
Figure 4-3.
In different addressing modes these address registers function as automatic increment and
automatic decrement (see the instruction set reference for details).
The Stack is mainly used for storing temporary data, local variables and return addresses for
interrupts and subroutine calls. The Stack Pointer Register always points to the top of the Stack,
in the data SRAM Stack area where the subroutine and interrupt stacks are located.
The Stack 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 start of the
SRAM (see
internal SRAM.
Note that the Stack is implemented as growing from higher to lower memory locations. This
means a Stack PUSH command decreases the Stack Pointer. See
Table 4-1.
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 architecture is so small that only
SPL is needed. In this case, the SPH Register will not be present.
X-register
Y-register
Z-register
Instruction
PUSH
CALL
ICALL
RCALL
POP
RET
RETI
Figure 5-2 on page
The X-, Y-, and Z-registers
Stack Pointer instructions
Stack pointer
Decremented by 1
Decremented by 2
Incremented by 1
Incremented by 2
15
7
R27 (0x1B)
15
7
R29 (0x1D)
15
7
R31 (0x1F)
16). The initial Stack Pointer value equals the last address of the
ZH
XH
YH
0
Description
Data is pushed onto the stack
Return address is pushed onto the stack with a
subroutine call or interrupt
Data is popped from the stack
Return address is popped from the stack with return
from subroutine or return from interrupt
0
0
7
R26 (0x1A)
7
R28 (0x1C)
7
R30 (0x1E)
Table
4-1.
XL
YL
ZL
0
11
0
0
0
0
0

Related parts for ATTINY861A-MUR