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

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
Request From Host
Write Command
Firmware
DFU Suffix
18
AT89C5131A USB Bootloader
The write command is 6 bytes long. In order to reach the USB specification of the Control type
transfers, the write command is completed with 26 (= 32 - 6) non-significant bytes. The total
length of the command is then 32 bytes, which is the length of the Default Control Endpoint.
The firmware can now be downloaded to the device. In order to be in accordance with the Flash
page size (128 bytes), X non-significant bytes are added before the first byte to program. The X
number is calculated to align the beginning of the firmware with the Flash page. X =
start_address [32]. For example, if the start address is 00AFh (175d), X = 175 [32] = 15.
The DFU suffix of 16 bytes are added just after the last byte to program. This suffix is reserved
for future use.
Offset
bmRequestType
-12
-14
Id_prog_start
Command
Identifier
0010 0001b
01h
Field
idProduct
bcdDevice
data[0]
00h
01h
DFU_DNLOAD (1)
bRequest
Size
data[1]
2
2
start_address
Value
BCD
data[2]
ID
wValue
wBlock
Description
The product ID associated with this file. Either FFFFf
or must match the device’s product ID
The release number of the device associated with
this file. Either FFFFh or a BCD firmware release or
version number
data[3]
end_address
Interface (4)
wIndex
data[4]
wLength
Init FLASH programming
Length
Description
Init EEPROM
programming
4287E–USB–04/08
Firmware
Data

Related parts for AT89C5131A-L