Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
mikrocont / ATtiny26.pdf
Источник:
Скачиваний:
58
Добавлен:
06.01.2022
Размер:
1.98 Mб
Скачать

ATtiny26(L)

Reset Sources

The ATtiny26/L provides four sources of reset:

 

• Power-on Reset. The MCU is reset when the supply voltage is below the Power-on

 

Reset threshold (VPOT).

 

 

 

 

 

 

pin as an External Reset, instead of I/O pin,

 

• External Reset. To use the PB7/RESET

 

unprogram (“1”) the RSTDISBL Fuse. 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.

 

• Brown-out Reset. The MCU is reset when the supply voltage VCC is below the

 

Brown-out Reset threshold (VBOT).

 

During reset, all I/O Registers are then set to their initial values, and the program starts

 

execution 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. Figure 20 shows the reset logic for the ATtiny26/L. Table 3

 

shows the timing and electrical parameters of the reset circuitry for ATtiny26/L.

 

Figure 20. Reset Logic for the ATtiny26/L

 

 

 

 

 

 

DATA BUS

 

MCU Status

Register (MCUSR)

PORF

BORF

EXTRF

WDRF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Brown-Out

 

 

 

 

BODEN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset Circuit

 

 

 

BODLEVEL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock

CK

Delay Counters

 

 

 

Generator

 

 

TIMEOUT

 

 

 

 

 

CKSEL[3:0]

21

1477B–AVR–04/02

0

Table 3.

Reset Characteristics

 

 

 

 

 

Symbol

 

 

Parameter

Condition

Min

Typ

Max

Units

 

 

 

 

 

 

 

 

 

 

 

 

Power-on Reset Threshold

 

 

1.4

2.3

V

 

 

 

Voltage (rising)

 

 

VPOT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Power-on Reset Threshold

 

 

1.3

2.3

V

 

 

 

 

 

 

 

 

Voltage (falling)(1)

 

 

 

 

 

 

 

 

 

 

VRST

 

 

 

Pin Threshold Voltage

 

0.1

 

0.9

VCC

 

 

RESET

 

 

tRST

 

 

Minimum pulse width on

 

 

50

 

ns

 

 

RESET

Pin

 

 

 

VBOT

 

 

Brown-out Reset Threshold

BODLEVEL = 1

2.5

2.7

3.2

V

 

 

Voltage(2)

 

 

 

 

 

 

BODLEVEL = 0

3.7

4.0

4.2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tBOD

 

 

Minimum low voltage period for

BODLEVEL = 1

 

2

 

µs

 

 

Brown-out Detection

 

 

 

 

 

 

 

BODLEVEL = 0

 

2

 

µs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VHYST

 

 

Brown-out Detector hysteresis

 

 

130

 

mV

Notes: 1. The Power-on Reset will not work unless the supply voltage has been below VPOT (falling)

2.VBOT may be below nominal minimum operating voltage for some devices. For devices where this is the case, the device is tested down to VCC = VBOT during the production test. This guarantees that a Brown-out Reset will occur before VCC drops to a voltage where correct operation of the microcontroller is no longer guaranteed. The test is performed using BODLEVEL=1 for ATtiny26L and BODLEVEL=0 for ATtiny26. BODLEVEL=1 is not applicable for ATtiny26.

See start-up times from reset from “System Clock and Clock Options” on page 25. When the CPU wakes up from Power-down, only the clock counting part of the start-up time is used. The Watchdog Oscillator is used for timing the real-time part of the start-up time.

Power-on Reset

A Power-on Reset (POR) pulse is generated by an On-chip Detection circuit. The detec-

 

tion level is defined in Table 3 The POR is activated whenever VCC is below the

 

detection level. The POR circuit can be used to trigger the Start-up Reset, as well as

 

detect a failure in supply voltage.

 

The Power-on Reset (POR) circuit ensures that the device is reset from Power-on.

 

Reaching the Power-on Reset threshold voltage invokes a delay counter, which deter-

 

mines the delay, for which the device is kept in RESET after VCC rise. The time-out

 

period of the delay counter can be defined by the user through the CKSEL Fuses. The

 

different selections for the delay period are presented in “System Clock and Clock

 

Options” on page 25. The RESET signal is activated again, without any delay, when the

 

VCC decreases below detection level.

22 ATtiny26(L)

1477B–AVR–04/02

ATtiny26(L)

Figure 21. MCU Start-up, RESET Tied to VCC

 

 

 

 

 

 

 

VPOT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VRST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESET

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TIME-OUT

 

 

 

tTOUT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INTERNAL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESET

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 22. MCU Start-up,

 

 

 

Controlled Externally

 

RESET

 

 

 

 

 

 

 

VPOT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VRST

 

 

RESET

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TIME-OUT

 

 

 

 

 

 

 

tTOUT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INTERNAL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

External Reset

RESET

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

An External Reset is generated by a low level on the

 

 

 

pin. Reset pulses longer

RESET

 

than 500 ns will generate a reset, even if the clock is not running. Shorter pulses are not

 

guaranteed to generate a reset. When the applied signal reaches the Reset Threshold

 

Voltage – VRST – on its positive edge, the delay timer starts the MCU after the Time-out

 

period tTOUT has expired.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 23. External Reset During Operation

VCC

RESET

VRST

t TOUT

TIME-OUT

INTERNAL

RESET

23

1477B–AVR–04/02

Brown-out Detection

 

 

 

 

 

 

 

 

 

 

 

 

ATtiny26/L has an On-chip Brown-out Detection (BOD) circuit for monitoring the VCC

 

level during the operation. The BOD circuit can be enabled/disabled by the fuse

 

BODEN. When the BOD is enabled (BODEN programmed), and VCC decreases below

 

the trigger level, the Brown-out Reset is immediately activated. When VCC increases

 

above the trigger level, the Brown-out Reset is deactivated after a delay. The delay is

 

defined by the user in the same way as the delay of POR signal, in Table 2. The trigger

 

level for the BOD can be selected by the fuse BODLEVEL to be 2.7V (BODLEVEL

 

unprogrammed), or 4.0V (BODLEVEL programmed). The trigger level has a hysteresis

 

of 50 mV to ensure spike free Brown-out Detection.

 

 

The BOD circuit will only detect a drop in VCC if the voltage stays below the trigger level

 

for longer than tBOD given in Table 3.

 

 

Figure 24. Brown-out Reset During Operation

 

 

VCC

 

VBOT-

VBOT+

 

 

 

 

 

RESET

 

 

 

 

 

 

TIME-OUT

 

 

 

 

tTOUT

 

INTERNAL

 

 

 

 

 

 

RESET

 

 

 

 

 

Watchdog Reset

When the Watchdog times out, it will generate a short reset pulse of one CK cycle dura-

 

tion. On the falling edge of this pulse, the delay timer starts counting the Time-out period

 

tTOUT. Refer to page 58 for details on operation of the Watchdog.

Figure 25. Watchdog Time-out

1 CK Cycle

24 ATtiny26(L)

1477B–AVR–04/02

Соседние файлы в папке mikrocont