Programming configuration information, Request from host, Answers from bootloader – Rainbow Electronics AT89C5132 User Manual
Page 19

19
AT89C5132
4256A–USB–06/03
Programming
Configuration
Information
The flow described below allows the user to program Configuration Information regard-
ing the bootloader functionality.
•
Boot Process Configuration:
–
BSB
–
SBV
–
Fuse bits (BLJB, X2) (see Section “Mapping and Default Value of Hardware
Security Byte”, page 3)
Ensure that the Program Fuse bit command programs the 4 Fuse bits at the same time.
Request from Host
To start the programming operation, the Host sends DFU_DNLOAD request with the
Write command in the data field (6 bytes).
Answers from Bootloader
The device has two possible answers to a DFU_GETSTATUS request:
•
If the chip is protected from program access, a “err_WRITE” status is returned to the
Host.
•
Otherwise, the device status is “OK“.
Command
Identifier
data[0]
data[1]
data[2]
data[3]
data[4]
Description
Id_write_command
04h
01h
00h
Value
Write value in BSB
01h
Write value in SBV
05h
Write value in SSB
06h
Write value in EB
02h
00h
Value
Write value in Fuse (HSB)
OUT
Write_command (6 bytes)
SETUP
DFU_DNLOAD
IN
ZLP