Rainbow-electronics AT89C5132 Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Czujniki Rainbow-electronics AT89C5132. Rainbow Electronics AT89C5132 User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 31
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
1
Rev. 4256A–USB–06/03
Features
Protocol
USB Used as a Physical Layer
Device Firmware Upgrade Class Compliant
Auto-Frequency Detection
In-System Programming
Read/Write Flash Memory
Read Device ID
Full-chip Erase
Read/Write Configuration Bytes
Security Setting from ISP Command
Remote Application Start Command
In-Application Programming/Self-Programming
Read/Write Flash Memory
Read Device ID
Block Erase
Read/Write Configuration Bytes
Bootloader Start
Description
This document describes the USB bootloader functionality as well as the USB proto-
col to efficiently perform operations on the on-chip Flash memory. Additional
information on the AT89C5132 product can be found in the AT89C5132 datasheet and
the AT89C5132 errata sheet available on the Atmel web site, www.atmel.com.
The bootloader software (binary file) currently used for production is available from the
Atmel web site.
Bootloader Revision Purpose of Modifications Date
Revisions 1.6.2 and higher First release 3/25/2003
USB
Microcontrollers
AT89C5132
USB Bootloader
Przeglądanie stron 0
1 2 3 4 5 6 ... 30 31

Podsumowanie treści

Strona 1 - USB Bootloader

1Rev. 4256A–USB–06/03Features• Protocol– USB Used as a Physical Layer– Device Firmware Upgrade Class Compliant– Auto-Frequency Detection• In-System Pr

Strona 2

10AT89C51324256A–USB–06/03ProtocolDevice Firmware Upgrade IntroductionDevice Firmware Upgrade is the mechanism for accomplishing the task of upgrading

Strona 3

11AT89C51324256A–USB–06/03Table 6. DFU Mode Device DescriptorDFU Configuration Descriptor This descriptor is identical to the standard configuration

Strona 4

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

Strona 5

13AT89C51324256A–USB–06/03Device StatusGet Status The Host employs the DFU_GETSTATUS request to facilitate synchronization with thedevice. This status

Strona 6

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

Strona 7

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

Strona 8

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

Strona 9

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

Strona 10

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

Strona 11

19AT89C51324256A–USB–06/03Programming Configuration InformationThe flow described below allows the user to program Configuration Information regard-in

Strona 12

2AT89C51324256A–USB–06/03Functional DescriptionThe AT89C5132 USB Bootloader facilitates In-System Programming (ISP) and In-Appli-cation Programming (I

Strona 13

20AT89C51324256A–USB–06/03Reading Configuration Information or Manufacturer InformationThe flow described below allows the user to read the configurat

Strona 14

21AT89C51324256A–USB–06/03Answers from Bootloader The device has two possible answers to a DFU_GETSTATUS request:• If the chip is protected from progr

Strona 15

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

Strona 16

23AT89C51324256A–USB–06/03Starting the Application The flow described below allows to start the application directly from the bootloaderupon a specifi

Strona 17

24AT89C51324256A–USB–06/03In-Application Programming/Self- ProgrammingThe IAP allows to reprogram the microcontroller on-chip Flash memory without rem

Strona 18

25AT89C51324256A–USB–06/03API Commands Several types of APIs are available:• Read/Program Flash memory• Read Configuration and Manufacturer Informatio

Strona 19

26AT89C51324256A–USB–06/03Read Configuration and Manufacturer Information• Parameter settings• Instruction: LCALL FFF0h.• At the complete API executio

Strona 20

27AT89C51324256A–USB–06/03Program Configuration Information• Parameter settings• instruction: LCALL FFF0h.Notes: 1. Refer to the AT89C5132 datasheet f

Strona 21

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

Strona 22

29AT89C51324256A–USB–06/03Table 15. USB ParametersTable 16. Hardware Security Byte (HSB)Table 14. DFU Class-specific RequestsbmRequestType bRequest

Strona 23

3AT89C51324256A–USB–06/03ISP Communication ManagementThe purpose of this process is to manage the communication and its protocol betweenthe on-chip bo

Strona 24

30AT89C51324256A–USB–06/03Appendix-BTable 17. API SummaryFunction NameBootloader Execution api_command api_dph api_dpl api_value__api_rd_code_byte no

Strona 25

Printed on recycled paper.Disclaimer: Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Co

Strona 26

4AT89C51324256A–USB–06/03Security The bootloader has Software Security Byte (SSB) to protect itself from user access orISP access.The Software Securit

Strona 27

5AT89C51324256A–USB–06/03Software Boot Vector The Software Boot Vector (SBV) forces the execution of a user bootloader starting ataddress [SBV]00h in

Strona 28

6AT89C51324256A–USB–06/03In-System ProgrammingThe ISP allows the user to program or reprogram the microcontroller’s on-chip Flashmemory through the se

Strona 29

7AT89C51324256A–USB–06/03Figure 2. Boot Process AlgorithmHardwareSoftwareHard Cond?ISP# = L?RESETHard Cond InitENBOOT = 1PC = F000hFCON = 00hProg Con

Strona 30

8AT89C51324256A–USB–06/03Physical Layer The USB norm specifies all the transfers over the USB line. The USB specification alsoincludes several CLASS a

Strona 31 - Regional Headquarters

9AT89C51324256A–USB–06/03Figure 4. 48 MHz Frequency Auto-generationMAINUSB Connected?Suspend/ResumeConfigure PLL for Frequency XConfigure Timer 0SOF

Komentarze do niniejszej Instrukcji

Brak uwag