ATTINY40-MMHR Atmel, ATTINY40-MMHR Datasheet - Page 32

no-image

ATTINY40-MMHR

Manufacturer Part Number
ATTINY40-MMHR
Description
MCU AVR 4KB FLASH 12MHZ 3X3 QFN
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY40-MMHR

Core Processor
AVR
Core Size
8-Bit
Speed
12MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
18
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATTINY40-MMHR
Quantity:
6 000
8. System Control and Reset
8.1
8.2
8.2.1
32
Resetting the AVR
Reset Sources
ATtiny40
Power-on Reset
During reset, all I/O registers are set to their initial values, and the program starts execution from
the Reset Vector. The instruction placed at the Reset Vector must be a 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
defined in section
Figure 8-1.
The I/O ports of the AVR are immediately reset to their initial state when a reset source goes
active. This does not require any clock source to be running.
After all reset sources have gone inactive, a delay counter is invoked, stretching the internal
reset. This allows the power to reach a stable level before normal operation starts. The start up
sequence is described in
The ATtiny40 has four sources of reset:
A Power-on Reset (POR) pulse is generated by an on-chip detection circuit. The detection level
is defined in section
whenever V
Reset, as well as to detect a failure in supply voltage.
A Power-on Reset (POR) circuit ensures that the device is reset from Power-on. Reaching the
Power-on Reset threshold voltage invokes the delay counter, which determines how long the
• Power-on Reset. The MCU is reset when the supply voltage is below the Power-on Reset
• External Reset. The MCU is reset when a low level is present on the RESET pin for longer
• Watchdog Reset. The MCU is reset when the Watchdog Timer period expires and the
• Brown Out Reset. The MCU is reset when the Brown-Out Detector is enabled and supply
RESET
RESET
threshold (V
than the minimum pulse length
Watchdog is enabled
voltage is below the brown-out threshold (V
V
CC
CC
CC
PULL-UP
PULL-UP
RESISTOR
RESISTOR
Reset Logic
is below the detection level. The POR circuit can be used to trigger the Start-up
POT
Figure 8-1
“System and Reset Characteristics” on page
FILTER
FILTER
)
SPIKE
SPIKE
“System and Reset Characteristics” on page
RSTDISBL
RSTDISBL
“Starting from Reset” on page
shows the reset logic. Electrical parameters of the reset circuitry are
DATA BUS
RESET CIRCUIT
RESET CIRCUIT
RESET CIRCUIT
RESET CIRCUIT
RESET CIRCUIT
RESET CIRCUIT
BODLEVEL[2:0]
BODLEVEL[2:0]
BROWN OUT
BROWN OUT
POWER-ON
POWER-ON
EXTERNAL
EXTERNAL
OSCILLATOR
OSCILLATOR
WATCHDOG
WATCHDOG
WATCHDOG
WATCHDOG
RESET FLAG REGISTER
RESET FLAG REGISTER
TIMER
TIMER
BOT
(RSTFLR)
(RSTFLR)
)
22.
GENERATOR
GENERATOR
168.
CLOCK
CLOCK
COUNTER RESET
COUNTER RESET
CK
CK
168. The POR is activated
COUNTERS
COUNTERS
DELAY
DELAY
TIMEOUT
TIMEOUT
S
R
Q
8263A–AVR–08/10
INTERNAL
INTERNAL
RESET
RESET

Related parts for ATTINY40-MMHR