at89c5131a ATMEL Corporation, at89c5131a Datasheet - Page 22

no-image

at89c5131a

Manufacturer Part Number
at89c5131a
Description
Usb Microcontrollers
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at89c5131a-PUTUM
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
at89c5131a-RDTIL
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at89c5131a-RDTUL
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at89c5131a-RDTUM
Manufacturer:
ATMEL
Quantity:
5 000
Part Number:
at89c5131a-RDTUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at89c5131a-S3SIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at89c5131a-S3SUL
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at89c5131a-S3SUM
Manufacturer:
ATMEL
Quantity:
46
Part Number:
at89c5131a-UL
Manufacturer:
TI
Quantity:
12 500
Part Number:
at89c5131a-UL
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
at89c5131a-UM
Manufacturer:
TOSHIBA
Quantity:
1 200
Part Number:
at89c5131a-UM
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
at89c5131a-UM
Quantity:
300
Answers from Bootloader
Erasing the Flash
Request from Host
22
AT89C5131A USB Bootloader
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 Con-
figuration 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).
Id_write_command
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)
Command
Identifier
04h
SETUP
IN
OUT
data[0]
00h
data[1]
FFh
00h
20h
40h
data[2]
Byte value (1 byte)
DFU_UPLOAD
ZLP
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
4287C–USB–11/04

Related parts for at89c5131a