Cypress Semiconductor Perform CY20x34 Fiche technique Page 1

Naviguer en ligne ou télécharger Fiche technique pour Chargeurs de batterie Cypress Semiconductor Perform CY20x34. Cypress Semiconductor Perform CY20x34 Datasheet Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 39
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600
Document Number: 001-13258 Rev. *J Revised September 28, 2012
I
2
C Bootloader Datasheet BootLdrI2C V 2.40
001-13258 Rev. *J
I2C Bootloader
Copyright © 2007-2012 Cypress Semiconductor Corporation. All Rights Reserved.
Features and Overview
Industry standard Philips I
2
C-bus compatible interface
Enables you to reprogram a PSoC device using the I
2
C system bus instead of in-system programming
pins
The BootLdrI2C User Module implements a bootloader that can reprogram the PSoC device over the I
2
C
interface. The PSoC device already gives an in-system serial programming interface (ISSP) that allows
downloading new code into the device. However, the bootloader allows a code update to occur through an
industry standard communication interface, such as I
2
C. This user module can be useful for any device
that has to be reprogrammed in the field. The bootloading information can be sent through an I
2
C master
device, such as a CY3240 (USB to I
2
C bridge) or an in-system host processor.
The I
2
C bootloader requires the I
2
C Hardware User Module. It does not preclude the use of the I
2
C bus for
other functions within the PSoC device. The I
2
C bootloader uses a separate I
2
C address for its associated
functions. All of the code for the I
2
C bootloader is programmed in a protected area of EEPROM and
cannot be accidentally overwritten.
Resources
PSoC
®
Blocks API Memory (Bytes)
Pins (per
External I/O)
Digital Analog CT Analog SC Flash RAM
CY7C603xx, CY7C64215, CY8C21x12, CY8C21x45, CY8C22x45, CY8C23x33, CY8C24x9x, CY8C28x43,
CY8C28x52, CY8C29/27/24/21x3x, CY8CPLC20, CY8CLED04/08/16, CY8CLED0xD, CY8CLED0xG,
CY8CLED16P01, CY8CTST110, CY8CTMG110, CY8CTST120, CY8CTMG120, CY8CTMA120, CY8C20x24,
CY8C20x34
Slave (full API support) 0 0 0 2560 6-128 2
Slave (no API support) 0 0 0 2144 6-128 2
Vue de la page 0
1 2 3 4 5 6 ... 38 39

Résumé du contenu

Page 1 - Features and Overview

Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600Document Number: 001-13258 Rev. *J Revised September 2

Page 2 - Quick Start

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 10 of 39Parameters and Resources Default parameters are for informational purposes only. Default

Page 3 - Functional Description

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 11 of 39from 0x00-0x7F. Because this is the upper 7 bits of the address, the actual address appe

Page 4 - Overview

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 12 of 39Specifies the range of CPU clock speeds under which a CY8C27xxx silicon revision A devic

Page 5

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 13 of 39at colder temperatures. Bootloading at significantly lower temperatures than the paramet

Page 6 - Bootloader Tools

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 14 of 39Common ProblemsUpdating Bootloader Projects, Service Pack Upgrades, and CompilersAvoid c

Page 7

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 15 of 39For development and debugging purposes, a flash security of 'U' (unprotected)

Page 8

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 16 of 39from a watch dog timer reset condition, it is possible to monitor a status bit associate

Page 9 - Placement

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 17 of 39ENTER_BOOTLOADERDescription:Routine to completely setup the bootloader and prepare to do

Page 10 - Parameters and Resources

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 18 of 39C Prototype:void BL_SetTemp (CHAR cTemp);Assembler:mov A, cTemplcall BL_SetTempExample C

Page 11 -  100K Standard

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 19 of 39BootLdrI2C_DisableIntDescription:Disables the I2C slave by disabling the SDA interrupt.

Page 12 - I2C Bootloader

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 2 of 39Figure 1. I2C Block DiagramQuick Start1. Review this user module datasheet. A successful

Page 13 - C Topology Selection Options

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 20 of 39BootLdrI2C_Poll() and BootLdrI2C_BootLdr_Poll()Description:Used when the Communication_

Page 14 - Common Problems

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 21 of 39BootLdrI2C_StopDescription:Disables the I2CHW by disabling the I2C interrupt.C Prototype

Page 15

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 22 of 39BootLdrI2C_DisableSlaveDescription:Disables the I2C Slave function by clearing the Enabl

Page 16

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 23 of 39BootLdrI2C_InitRamReadDescription:The BootLdrI2C_InitRamRead routine initializes a data

Page 17 - BL_SetTemp

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 24 of 39Return Value: NoneSide Effects:The A and X registers may be modified by this or future i

Page 18 - BootLdrI2C_Start

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 25 of 39BootLdrI2C_ClrRdStatusDescription:Clears the status bits in the Control/Status register,

Page 19 - BootLdrI2C_EnableInt

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 26 of 39Sample Firmware Source Code Configure the user module parameters as shown in Figure 5, f

Page 20

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 27 of 39Here is an implementation of an BootLdrI2C User Module written in C: //----------------

Page 21 - BootLdrI2C_EnableSlave

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 28 of 39 asm("nop");} }Here is an implementation of the BootLdrI2C User Module wr

Page 22 - BootLdrI2C_InitWrite

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 29 of 39Configuration Registers This section describes the PSoC Resource Registers used or modif

Page 23 - BootLdrI2C_InitFlashRead

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 3 of 39Functional Description The bootloader is located in a section of Flash memory defined by

Page 24 - BootLdrI2C_bReadI2CStatus

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 30 of 39Received or Transmitted data. To transmit data, this register must be loaded before a wr

Page 25 - BootLdrI2C_ClrWrStatus

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 31 of 394. Connect the CY3240 USBtoIIC bridge to the target system. Use the GUI to set the power

Page 26 - Sample Firmware Source Code

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 32 of 39Bootloader I2C Download (.dld file) FormatThis section briefly discusses the format of t

Page 27

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 33 of 39Table 5. Slave Address Read ResponsesFor details, see the BootLoader operation flowchart

Page 28

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 34 of 39The next three lines contain only the control byte, the I2C prefix, and 16 bytes of data

Page 29 - Configuration Registers

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 35 of 39Figure 10 shows the last download record:Figure 10. Last Download RecordThe last line is

Page 30 - Appendix

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 36 of 39Code Area (see Bootloader Memory Organization for information). This ensures that the E2

Page 31

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 37 of 39Figure 11. BootloaderI2C User Module Operation Flowchart

Page 32 - C Download (.dld file) Format

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 38 of 39Version HistoryVersion Originator Description1.2 DHA Added Version History2.00 DHA 1. Re

Page 33

I2C BootloaderDocument Number: 001-13258 Rev. *J Revised September 28, 2012 Page 39 of 39Copyright © 2007-2012 Cypress Semiconductor Corporation. The

Page 34 - Figure 9. Third (Checksum)

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 4 of 39Theory of OperationCreating a project with a bootloader requires several nonstandard modi

Page 35

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 5 of 39 The first is blocks 0 and 1 of ROM. These blocks contain critical interrupt vectors and

Page 36

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 6 of 39(which is created with the application). If the two checksums are equal, the bootloader u

Page 37

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 7 of 39Generate Checksum – After your project builds correctly, you can use the bootloader tools

Page 38 - Version History

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 8 of 39allows the linker to place code automatically and can be helpful in determining applicati

Page 39

I2C BootloaderDocument Number: 001-13258 Rev. *J Page 9 of 39To translate from Blocks to absolute addresses, multiply: Abs_addr = block_number X Block

Commentaires sur ces manuels

Pas de commentaire