ATxmega16D4 Atmel Corporation, ATxmega16D4 Datasheet - Page 275
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATxmega16D4
Manufacturer Part Number
ATxmega16D4
Description
Manufacturer
Atmel Corporation
Specifications of ATxmega16D4
Flash (kbytes)
16 Kbytes
Pin Count
44
Max. Operating Frequency
32 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
34
Ext Interrupts
34
Usb Speed
No
Usb Interface
No
Spi
4
Twi (i2c)
2
Uart
2
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
12
Adc Resolution (bits)
12
Adc Speed (ksps)
200
Analog Comparators
2
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
2
Eeprom (bytes)
1024
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
Yes
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.6 to 3.6
Operating Voltage (vcc)
1.6 to 3.6
Fpu
No
Mpu / Mmu
no / no
Timers
4
Output Compare Channels
14
Input Capture Channels
14
Pwm Channels
14
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATxmega16D4-AU
Manufacturer:
Atmel
Quantity:
438
Part Number:
ATxmega16D4-AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATxmega16D4-MH
Manufacturer:
Atmel
Quantity:
1 605
Company:
Part Number:
ATxmega16D4-MHR
Manufacturer:
SANYO
Quantity:
50
Part Number:
ATxmega16D4-MHR
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
23.7
23.7.1
23.7.2
8210B–AVR–04/10
Flash and EEPROM Programming Sequences
Flash Programming Sequence
EEPROM programming sequence
The EEPROM Page Buffer is automatically erased after:
For Flash and EEPROM page programming, filling the page buffers and writing the page buffer
into Flash or EEPROM is two separate operations. The sequence of this is the same for both
self-programming and external programming.
Before programming a Flash page with the data in the Flash page buffer, the Flash page must
be erased. Programming an un-erased flash Page will corrupt the content in the flash Page.
The flash page buffer can be filled either before the Erase Flash Page operation or between a
Erase Flash Page and a Write Flash Page operation:
Alternative 1, fill the buffer before a split Page Erase and Page Write:
Alternative 2, fill the page buffer before an atomic Page Erase and Write:
Alternative 3, fill the buffer after a Page Erase:
The NVM command set supports both atomic erase and write operations, and split page erase
and page write commands. This split commands enables shorter programming time for each
command and the erase operations can be done during non-time-critical programming execu-
tion. When using alternative 1 or 2 above for self-programming, the Boot Loader provides an
effective Read-Modify-Write feature, which allows the software to first read the page, do the nec-
essary changes, and then write back the modified data. If alternative 3 is used, it is not possible
to read the old data while loading, since the page is already erased. The page address must be
the same for both Page Erase and Page Write operations when using alternative 1 or 3.
Before programming an EEPROM page with the selected number of data bytes stored in the
EEPROM page buffer, the selected locations in the EEPROM page must be erased. Program-
ming an un-erased EEPROM page will corrupt the content in the EEPROM page. The EEPROM
page buffer must be loaded before any Page Erase or Page Write operations:
• A system reset.
• Executing the Write EEPROM Page command.
• Executing the Erase and Write EEPROM Page command.
• Executing the Write Lock Bit and Write Fuse commands
• Fill the Flash Page Buffer.
• Perform a Flash Page Erase.
• Perform a Flash Page Write.
• Fill the Flash Page Buffer.
• Perform a Page Erase and Write.
• Perform a Flash Page Erase.
• Fill the Flash Page Buffer.
• Perform a Flash Page Write.
XMEGA D
275