AT89C5131A-L Atmel Corporation, AT89C5131A-L Datasheet - Page 23

no-image

AT89C5131A-L

Manufacturer Part Number
AT89C5131A-L
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C5131A-L

Flash (kbytes)
32 Kbytes
Max. Operating Frequency
48 MHz
Cpu
8051-12C
Max I/o Pins
34
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
1
Twi (i2c)
1
Uart
1
Sram (kbytes)
1.25
Eeprom (bytes)
1024
Self Program Memory
API
Operating Voltage (vcc)
3.0 to 3.6
Timers
4
Isp
UART/USB
Watchdog
Yes
Answers from
Bootloader
Erasing the Flash
Request from Host
4287E–USB–04/08
The device has two possible answers to a DFU_GETSTATUS request:
The flow described below allows the user to erase the Flash memory.
Two modes of Flash erasing are possible:
The Full Chip erase command erases the whole Flash (32 Kbytes) and sets some Configuration
Bytes at their default values:
The Block erase command erases only a part of the Flash.
Three Blocks are defined in the AT89C5131A:
To start the erasing operation, the Host sends a DFU_DNLOAD request with a Write Command
in the data field (2 bytes).
If the chip is protected from program access, an “err_VENDOR” status is returned to the
Host.
Otherwise, the device status is “OK“. The Host can send a DFU_UPLOAD request to the
device in order the value of the requested field.
Full Chip erase
Block erase
BSB = FFh
SBV = FFh
SSB = FFh (NO_SECURITY)
block0 (From 0000h to 1FFFh)
block1 (From 2000h to 3FFFh)
block2 (From 4000h to 7FFFh)
Id_write_command
Command
Identifier
04h
SETUP
IN
OUT
data[0]
00h
data[1]
AT89C5131A USB Bootloader
FFh
00h
20h
40h
Byte value (1 byte)
DFU_UPLOAD
ZLP
data[2]
data[3]
data[4]
Erase block0 (0K to 8K)
Erase block1 (8K to 16K)
Erase block2 (16K to 32K)
Full chip Erase (bits at
FFh)
Description
23

Related parts for AT89C5131A-L