1Rev. 4256A–USB–06/03Features• Protocol– USB Used as a Physical Layer– Device Firmware Upgrade Class Compliant– Auto-Frequency Detection• In-System Pr
10AT89C51324256A–USB–06/03ProtocolDevice Firmware Upgrade IntroductionDevice Firmware Upgrade is the mechanism for accomplishing the task of upgrading
11AT89C51324256A–USB–06/03Table 6. DFU Mode Device DescriptorDFU Configuration Descriptor This descriptor is identical to the standard configuration
12AT89C51324256A–USB–06/03Note: 1. Alternate settings can be used by an application to access additional memory seg-ments. In this case, it is suggest
13AT89C51324256A–USB–06/03Device StatusGet Status The Host employs the DFU_GETSTATUS request to facilitate synchronization with thedevice. This status
14AT89C51324256A–USB–06/03Clear Status Any time the device detects an error and reports an error indication status to the host inthe response to a DFU
15AT89C51324256A–USB–06/03DFU_ABORT Request The DFU_ABORT request enables the device to exit from certain states and return tothe DFU_IDLE state. The
16AT89C51324256A–USB–06/03Request from HostWrite CommandThe write command is 6 bytes long. In order to reach the USB specification of the Con-trol typ
17AT89C51324256A–USB–06/03Answers from Bootloader After each program request, the Host can request the device state and status by send-ing a DFU_GETST
18AT89C51324256A–USB–06/03Answers from the Device to a Blank Check CommandThe Host controller send a GET_STATUS request to the device. Once internal b
19AT89C51324256A–USB–06/03Programming Configuration InformationThe flow described below allows the user to program Configuration Information regard-in
2AT89C51324256A–USB–06/03Functional DescriptionThe AT89C5132 USB Bootloader facilitates In-System Programming (ISP) and In-Appli-cation Programming (I
20AT89C51324256A–USB–06/03Reading Configuration Information or Manufacturer InformationThe flow described below allows the user to read the configurat
21AT89C51324256A–USB–06/03Answers from Bootloader The device has two possible answers to a DFU_GETSTATUS request:• If the chip is protected from progr
22AT89C51324256A–USB–06/03Erasing the Flash The flow described below allows the user to erase the Flash memory. Two modes of Flash erasing are possibl
23AT89C51324256A–USB–06/03Starting the Application The flow described below allows to start the application directly from the bootloaderupon a specifi
24AT89C51324256A–USB–06/03In-Application Programming/Self- ProgrammingThe IAP allows to reprogram the microcontroller on-chip Flash memory without rem
25AT89C51324256A–USB–06/03API Commands Several types of APIs are available:• Read/Program Flash memory• Read Configuration and Manufacturer Informatio
26AT89C51324256A–USB–06/03Read Configuration and Manufacturer Information• Parameter settings• Instruction: LCALL FFF0h.• At the complete API executio
27AT89C51324256A–USB–06/03Program Configuration Information• Parameter settings• instruction: LCALL FFF0h.Notes: 1. Refer to the AT89C5132 datasheet f
28AT89C51324256A–USB–06/03Appendix-A Table 13. Summary of Frames from HostCommand Identifier data[0] data[1] data[2] data[3] data[4] DescriptionId_pr
29AT89C51324256A–USB–06/03Table 15. USB ParametersTable 16. Hardware Security Byte (HSB)Table 14. DFU Class-specific RequestsbmRequestType bRequest
3AT89C51324256A–USB–06/03ISP Communication ManagementThe purpose of this process is to manage the communication and its protocol betweenthe on-chip bo
30AT89C51324256A–USB–06/03Appendix-BTable 17. API SummaryFunction NameBootloader Execution api_command api_dph api_dpl api_value__api_rd_code_byte no
Printed on recycled paper.Disclaimer: Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Co
4AT89C51324256A–USB–06/03Security The bootloader has Software Security Byte (SSB) to protect itself from user access orISP access.The Software Securit
5AT89C51324256A–USB–06/03Software Boot Vector The Software Boot Vector (SBV) forces the execution of a user bootloader starting ataddress [SBV]00h in
6AT89C51324256A–USB–06/03In-System ProgrammingThe ISP allows the user to program or reprogram the microcontroller’s on-chip Flashmemory through the se
7AT89C51324256A–USB–06/03Figure 2. Boot Process AlgorithmHardwareSoftwareHard Cond?ISP# = L?RESETHard Cond InitENBOOT = 1PC = F000hFCON = 00hProg Con
8AT89C51324256A–USB–06/03Physical Layer The USB norm specifies all the transfers over the USB line. The USB specification alsoincludes several CLASS a
9AT89C51324256A–USB–06/03Figure 4. 48 MHz Frequency Auto-generationMAINUSB Connected?Suspend/ResumeConfigure PLL for Frequency XConfigure Timer 0SOF
Comentarios a estos manuales