AT89C5131A-L

Manufacturer Part NumberAT89C5131A-L
ManufacturerAtmel Corporation
AT89C5131A-L datasheets
 


Specifications of AT89C5131A-L

Flash (kbytes)32 KbytesMax. Operating Frequency48 MHz
Cpu8051-12CMax I/o Pins34
Usb Transceiver1Usb SpeedFull Speed
Usb InterfaceDeviceSpi1
Twi (i2c)1Uart1
Sram (kbytes)1.25Eeprom (bytes)1024
Self Program MemoryAPIOperating Voltage (vcc)3.0 to 3.6
Timers4IspUART/USB
WatchdogYes  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Page 21
22
Page 22
23
Page 23
24
Page 24
25
Page 25
26
Page 26
27
Page 27
28
Page 28
29
Page 29
30
Page 30
31
32
33
34
Page 23/34

Download datasheet (326Kb)Embed
PrevNext
Answers from
The device has two possible answers to a DFU_GETSTATUS request:
Bootloader
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.
Erasing the Flash
The flow described below allows the user to erase the Flash memory.
Two modes of Flash erasing are possible:
Full Chip erase
Block erase
The Full Chip erase command erases the whole Flash (32 Kbytes) and sets some Configuration
Bytes at their default values:
BSB = FFh
SBV = FFh
SSB = FFh (NO_SECURITY)
The Block erase command erases only a part of the Flash.
Three Blocks are defined in the AT89C5131A:
block0 (From 0000h to 1FFFh)
block1 (From 2000h to 3FFFh)
block2 (From 4000h to 7FFFh)
Request from Host
To start the erasing operation, the Host sends a DFU_DNLOAD request with a Write Command
in the data field (2 bytes).
4287E–USB–04/08
AT89C5131A USB Bootloader
SETUP
IN
OUT
Command
Identifier
data[0]
data[1]
00h
20h
Id_write_command
00h
40h
04h
FFh
DFU_UPLOAD
Byte value (1 byte)
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