ATmega406 Atmel Corporation, ATmega406 Datasheet - Page 132

no-image

ATmega406

Manufacturer Part Number
ATmega406
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega406

Flash (kbytes)
40 Kbytes
Pin Count
48
Max. Operating Frequency
1 MHz
Cpu
8-bit AVR
# Of Touch Channels
8
Hardware Qtouch Acquisition
No
Max I/o Pins
18
Ext Interrupts
4
Usb Speed
No
Usb Interface
No
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
11
Adc Resolution (bits)
12
Adc Speed (ksps)
1.9
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
2
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-30 to 85
I/o Supply Class
4.0 to 25
Operating Voltage (vcc)
4.0 to 25
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
3
Pwm Channels
2
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega406-1AAU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega406-1AAU
Manufacturer:
AT
Quantity:
20 000
22.7.7
132
ATmega406
BPIR – Battery Protection Interrupt Register
• Bit 7 – DUVIF: Deep Under-voltage Early Warning Interrupt Flag
If the voltage at VFET pin is below the Deep Under-voltage detection level and only 250 ms is
left of the Deep Under-voltage delay, DUVIF becomes set. The flag must be cleared by writing a
logical one to it.
• Bit 6 – COCIF: Charge Over-current Protection Activated Interrupt Flag
When the Charge Over-current Protection is activated, COCIF becomes set. The flag must be
cleared by writing a logical one to it.
• Bit 5 – DOCIF: Discharge Over-current Protection Activated Interrupt Flag
When the Discharge Over-current Protection is activated, DOCIF becomes set. The flag must be
cleared by writing a logical one to it.
• Bit 4 – SCIF: Short-circuit Protection Activated Interrupt Flag
When the Short-circuit Protection is activated, SCIF becomes set. The flag must be cleared by
writing a logical one to it.
• Bit 3 – DUVIE: Deep Under-voltage Early Warning Interrupt Enable
The DUVIE bit enables interrupt caused by the Deep Under-voltage Early Warning Interrupt Flag
• Bit 2 – COCIE: Charge Over-current Protection Activated Interrupt Enable
The COCIE bit enables interrupt caused by the Charge Over-current Protection Activated Inter-
rupt Flag.
• Bit 1 – DOCIE: Discharge Over-current Protection Activated Interrupt Enable
The DOCIE bit enables interrupt caused by the Discharge Over-current Protection Activated
Interrupt Flag.
• Bit 0 – SCIE: Short-circuit Protection Activated Interrupt Enable
The SCIE bit enables interrupt caused by the Short-circuit Protection Activated Interrupt Flag.
If one of the Battery Protection Interrupt Flags is set, and the corresponding Interrupt Enable bit
and the I-bit in the Status Register (SREG) are set, the MCU will jump to the Battery Protection
interrupt vector. The application software must read the Battery Protection Interrupt Register to
determine the cause of the interrupt. The interrupt flags will not be cleared when the interrupt
routine is executed, they must be cleared by writing a logical one to them.
Bit
(0xF2)
Read/Write
Initial Value
DUVIF
R/W
7
0
COCIF
R/W
6
0
DOCIF
R/W
5
0
SCIF
R/W
4
0
DUVIE
R/W
3
0
COCIE
R/W
2
0
DOCIE
R/W
1
0
SCIE
R/W
0
0
2548E–AVR–07/06
BPIR

Related parts for ATmega406