at90s2323 ATMEL Corporation, at90s2323 Datasheet - Page 23

no-image

at90s2323

Manufacturer Part Number
at90s2323
Description
8-bit Microcontroller With 2k Bytes Of In-system Programmable Flash At90s2323 At90ls2323 At90s2343 At90ls2343
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at90s2323-10PC
Manufacturer:
ATMEL
Quantity:
3 000
Part Number:
at90s2323-10PC
Manufacturer:
ATMEL
Quantity:
3 000
Part Number:
at90s2323-10PC
Manufacturer:
SAMSUNG
Quantity:
4 500
Part Number:
at90s2323-10PI
Manufacturer:
ATMEL
Quantity:
3 000
Part Number:
at90s2323-10PI
Manufacturer:
ATMEL
Quantity:
3 000
Part Number:
at90s2323-10SC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
at90s2323-10SI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Watchdog Reset
MCU Status Register –
MCUSR
1004D–09/01
When the Watchdog times out, it will generate a short reset pulse of 1 CPU clock cycle
duration. On the falling edge of this pulse, the delay timer starts counting the Time-out
period t
Figure 28. Watchdog Reset during Operation
The MCU Status Register provides information on which reset source caused an MCU
reset.
• Bits 7..2 – Res: Reserved Bits
These bits are reserved bits in the AT90S2323/2343 and always read as zero.
• Bit 1 – EXTRF: External Reset Flag
After a Power-on Reset, this bit is undefined (X). It will be set by an External Reset. A
Watchdog Reset will leave this bit unchanged.
• Bit 0 – PORF: Power-on Reset Flag
This bit is set by a Power-on Reset. A Watchdog Reset or an External Reset will leave
this bit unchanged.
To summarize, Table 7 shows the value of these two bits after the three modes of reset.
Table 7. PORF and EXTRF Values after Reset
To make use of these bits to identify a reset condition, the user software should clear
both the PORF and EXTRF bits as early as possible in the program. Checking the
PORF and EXTRF values is done before the bits are cleared. If the bit is cleared before
an External or Watchdog Reset occurs, the source of reset can be found by using the
following truth table, Table 8.
Bit
$34 ($54)
Read/Write
Initial Value
Reset Source
Power-on Reset
External Reset
Watchdog Reset
TOUT
. Refer to page 30 for details on operation of the Watchdog.
R
7
0
R
6
0
R
5
0
R
4
0
Unchanged
Unchanged
PORF
1
AT90S/LS2323/2343
R
3
0
R
2
0
EXTRF
See Bit Description
R/W
1
Unchanged
Undefined
EXTRF
PORF
R/W
1
0
MCUSR
23

Related parts for at90s2323