ATMEGA162-16MUR Atmel, ATMEGA162-16MUR Datasheet - Page 24
![MCU AVR 16KB FLASH 16MHZ 44QFN](/photos/12/13/121316/313-44-qfn_sml.jpg)
ATMEGA162-16MUR
Manufacturer Part Number
ATMEGA162-16MUR
Description
MCU AVR 16KB FLASH 16MHZ 44QFN
Manufacturer
Atmel
Series
AVR® ATmegar
Specifications of ATMEGA162-16MUR
Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
EBI/EMI, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
35
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-VQFN Exposed Pad
For Use With
ATSTK600-TQFP44 - STK600 SOCKET/ADAPTER 44-TQFPATSTK500 - PROGRAMMER AVR STARTER KIT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
- Current page: 24 of 324
- Download datasheet (6Mb)
EEPROM Write During
Power-down Sleep
Mode
Preventing EEPROM
Corruption
24
ATmega162/V
The next code examples show assembly and C functions for reading the EEPROM. The exam-
ples assume that interrupts are controlled so that no interrupts will occur during execution of
these functions.
When entering Power-down sleep mode while an EEPROM write operation is active, the
EEPROM write operation will continue, and will complete before the write access time has
passed. However, when the write operation is complete, the Oscillator continues running, and as
a consequence, the device does not enter Power-down entirely. It is therefore recommended to
verify that the EEPROM write operation is completed before entering Power-down.
During periods of low V
too low for the CPU and the EEPROM to operate properly. These issues are the same as for
board level systems using EEPROM, and the same design solutions should be applied.
An EEPROM data corruption can be caused by two situations when the voltage is too low. First,
a regular write sequence to the EEPROM requires a minimum voltage to operate correctly. Sec-
ondly, the CPU itself can execute instructions incorrectly, if the supply voltage is too low.
EEPROM data corruption can easily be avoided by following this design recommendation:
Keep the AVR RESET active (low) during periods of insufficient power supply voltage. This can
be done by enabling the internal Brown-out Detector (BOD). If the detection level of the internal
BOD does not match the needed detection level, an external low V
can be used. If a Reset occurs while a write operation is in progress, the write operation will be
completed provided that the power supply voltage is sufficient.
Assembly Code Example
C Code Example
EEPROM_read:
unsigned char EEPROM_read(unsigned int uiAddress)
{
}
; Wait for completion of?previous write
sbic EECR,EEWE
rjmp EEPROM_read
; Set up address (r18:r1?) in address register
out
out
; Start eeprom read by w?iting EERE
sbi
; Read data from data re?ister
in
ret
/* Wait for completion o? previous write */
while(EECR & (1<<EEWE))
/* Set up address regist?r */
EEAR = uiAddress;
/* Start eeprom rea? by writing EERE */
EECR |= (1<<EERE);
/* Return data from data?register */
return EEDR;
;
EEARH, r18
EEARL, r17
EECR,EERE
r16,EEDR
CC,
the EEPROM data can be corrupted because the supply voltage is
CC
Reset Protection circuit
2513K–AVR–07/09
Related parts for ATMEGA162-16MUR
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATmega162](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATMEGA162-16AU](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
IC AVR MCU 16K 16MHZ 5V 44TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16PU](/photos/6/70/67049/453-40-dip_tmb.jpg)
Part Number:
Description:
IC AVR MCU 16K 16MHZ 5V 40DIP
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16MU](/photos/12/13/121316/313-44-qfn_tmb.jpg)
Part Number:
Description:
IC AVR MCU 16K 16MHZ 5V 44-QFN
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16AI](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K 5V 16MHZ 44-TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16MI](/photos/12/13/121316/313-44-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K 5V 16MHZ 44-QFN
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16AUR](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
MCU AVR 16KB FLASH 16MHZ 44TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16AC](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K 5V 16MHZ 44-TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16MC](/photos/12/13/121316/313-44-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K 5V 16MHZ 44-QFN
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16PC](/photos/6/70/67049/453-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K 5V 16MHZ 40-DIP
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16PI](/photos/6/70/67049/453-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K 5V 16MHZ 40-DIP
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16AJ](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K 5V 16MHZ 44-TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA162-16MJ](/photos/12/13/121316/313-44-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K 5V 16MHZ 44-QFN
Manufacturer:
Atmel
Datasheet: