at90ls4433 ATMEL Corporation, at90ls4433 Datasheet - Page 20

no-image

at90ls4433

Manufacturer Part Number
at90ls4433
Description
At90s4433 8-bit Avr Microcontroller With 4k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at90ls4433-4AC
Manufacturer:
ATM
Quantity:
72
Part Number:
at90ls4433-4AI
Manufacturer:
HYNIX
Quantity:
14
Part Number:
at90ls4433-4AI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
at90ls44334AC
Manufacturer:
ON
Quantity:
3 617
Stack Pointer – SP
Reset and Interrupt
Handling
20
AT90S/LS4433
The AT90S4433 Stack Pointer is implemented as an 8-bit register in the I/O space loca-
tion $3D ($5D). As the AT90S4433 data memory has $0DF locations, eight bits are
used.
The Stack Pointer points to the data SRAM stack area where the Subroutine and Inter-
rupt 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 $60. 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 an address is pushed onto the Stack with subroutine calls and interrupts. 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 an address is popped from the Stack with
return from subroutine RET or return from interrupt RETI.
The AT90S4433 provides 13 different interrupt sources. These interrupts and the sepa-
rate reset vector each have a separate Program Vector in the Program memory space.
All interrupts are assigned individual enable bits, which must be set (one) together with
the I-bit in the Status Register in order to enable the interrupt.
The lowest addresses in the Program memory space are automatically defined as the
Reset and Interrupt Vectors. The complete list of Vectors is shown in Table 3. The list
also determines the priority levels of the different interrupts. The lower the address, the
higher the priority level. RESET has the highest priority, and next is INT0 (the External
Interrupt Request 0), etc.
Table 3. Reset and Interrupt Vectors
$3D ($5D)
Read/Write
Initial Value
Vector No.
10
11
12
13
14
1
2
3
4
5
6
7
8
9
Program
Address
SP7
R/W
7
0
$00A
$00B
$00C
$00D
$000
$001
$002
$003
$004
$005
$006
$007
$008
$009
SP6
R/W
6
0
Source
RESET
INT0
INT1
TIMER1 CAPT
TIMER1 COMP
TIMER1 OVF
TIMER0 OVF
SPI, STC
UART, RX
UART, UDRE
ADC
EE_RDY
ANA_COMP
UART, TX
SP5
R/W
5
0
SP4
R/W
4
0
Interrupt Definition
External Pin, Power-on Reset, Brown-out Reset
and Watchdog Reset
External Interrupt Request 0
External Interrupt Request 1
Timer/Counter1 Capture Event
Timer/Counter1 Compare Match
Timer/Counter1 Overflow
Timer/Counter0 Overflow
Serial Transfer Complete
UART, Rx Complete
UART, Tx Complete
ADC Conversion Complete
EEPROM Ready
Analog Comparator
UART Data Register Empty
SP3
R/W
3
0
SP2
R/W
2
0
SP1
R/W
1
0
SP0
R/W
1042H–AVR–04/03
0
0
SP

Related parts for at90ls4433