Download Print this page

Atmel AVR AT90S2323 Manual page 20

8-bit microcontroller with 2k bytes of in-system programmable flash

Advertisement

Reset Sources
AT90S/LS2323/2343
20
The most typical program setup for the Reset and Interrupt vector addresses are:
Address
Labels
$000
$001
$002
$003
MAIN:
...
...
The AT90S2323/2343 provides three sources of reset:
Power-on Reset. The MCU is reset when the supply voltage is below the Power-on
Reset threshold (V
POT
External Reset. The MCU is reset when a low level is present on the RESET pin for
more than 50 ns.
Watchdog Reset. The MCU is reset when the Watchdog timer period expires and
the Watchdog is enabled.
During reset, all I/O registers are set to their initial values and the program starts execu-
tion from address $000. The instruction placed in address $000 must be an RJMP
(relative jump) instruction to the reset handling routine. If the program never enables an
interrupt source, the interrupt vectors are not used and regular program code can be
placed at these locations. The circuit diagram in Figure 24 shows the reset logic.
Table 4 defines the timing and electrical parameters of the reset circuitry.
Figure 24. Reset Logic
Power-On Reset
VCC
Circuit
100 - 500K
RESET
Reset Circuit
Watchdog
Timer
On-Chip
RC-Oscillator
The AT90S/LS2323 has a programmable start-up time. A fuse bit (FSTRT) in the Flash
memory selects the shortest start-up time when programmed ("0"). The AT90S/LS2323
is shipped with this bit unprogrammed.
The AT90S/LS2343 has a fixed start-up time.
Code
rjmp RESET
rjmp EXT_INT0
rjmp TIM_OVF0
ldi r16, low(RAMEND)
out SPL, r16
<instr> xxx
...
).
POR
14-Stage Ripple Counter
Q0
Q3
Comments
; Reset Handler
; IRQ0 Handler
; Timer0 Overflow
; Handler;
; Main program start
...
S
Q
R
Q
Q13
1004D–09/01

Advertisement

loading

This manual is also suitable for:

Avr at90ls2323Avr at90ls2343Avr at90ss2343At90s2323At90ls2323At90s2343 ... Show all