Rainbow-electronics AT89C5132 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Sensores Rainbow-electronics AT89C5132. Rainbow Electronics AT89C5132 User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 31
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 0
1 2 3 4 5 6 ... 30 31

Resumo do Conteúdo

Página 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

Página 2

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

Página 3

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

Página 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

Página 5

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 11

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

Página 12

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

Página 13

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

Página 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

Página 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

Página 16

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

Página 17

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

Página 18

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

Página 19

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

Página 20

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

Página 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

Página 22

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

Página 23

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

Página 24

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

Página 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

Página 26

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

Página 27

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

Página 28

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

Página 29

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

Página 30

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

Página 31 - Regional Headquarters

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

Comentários a estes Manuais

Sem comentários