Cypress Semiconductor CY3240-I2USB Manual

Cypress Semiconductor CY3240-I2USB Manual

I2c-usb bridge guide

Advertisement

Quick Links

CY3240-I2USB
I2C-USB Bridge Guide
Doc. # 001-66660 Rev.**
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com
Downloaded from
Elcodis.com
electronic components distributor
[+] Feedback

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CY3240-I2USB and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress Semiconductor CY3240-I2USB

  • Page 1 CY3240-I2USB I2C-USB Bridge Guide Doc. # 001-66660 Rev.** Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): 408.943.2600 http://www.cypress.com Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 2 Copyrights Copyrights © Cypress Semiconductor Corporation, 2011. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress.
  • Page 3: Table Of Contents

    Example Project 2: I2C-USB Bridge Board Project ...........34 5.2.1 Project Description ..................34 5.2.2 Hardware Connections...................35 5.2.3 I2C-USB Bridge Flowchart ................36 5.2.4 Verify Output ....................38 CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 4 I2C-USB Bridge Board Layout................... 43 A.2.1 Demo Target Board Layout................43 BOM .......................... 44 A.3.1 I2C-USB Bridge BOM Rev. E ................ 44 A.3.2 Demo-Target Board R..................45 CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 5: Introduction

    Introduction Thank you for your interest in the CY3240-I2USB Kit. The CY3240-I2USB can be used with the Bridge Control Panel that is installed with PSoC Programmer. The kit is designed to test, tune, and debug programs that have an I2C slave interface. This document describes the working of CY3240 and includes example projects, which will help you get started with the bridging tool.
  • Page 6: Additional Learning Resources

    Click the File icon and then click Open. Displays an equation: Times New Roman 2 + 2 = 4 Text in gray boxes Describes cautions or unique functionality of the product. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 7: Getting Started

    I2USB. Download the ISO file and create an installer CD or extract the ISO using WinRar and install the executables. 2. Click Install CY3240-I2USB Bridge Kit to start the installation, as shown in Figure 2-1. Figure 2-1. CY3240-I2USB Menu Note If auto-run does not execute, double-click cyautorun.exe file on the root directory of the...
  • Page 8 6. On the Product Installation Overview screen, select the installation type that best suits your requirement. The drop-down menu has three options: Typical, Complete, and Custom, as shown in Figure 2-4. 7. Click Next to start the installation. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 9 9. A green checkmark appears against every package that is downloaded and installed, as shown Figure 2-5. 10.Wait until all the packages are downloaded and installed successfully. Figure 2-5. Installation Page CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 10: Psoc Designer

    To open an existing project, click File > Open ■ To experiment with the example projects, go to Example Projects on page 31 ■ CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 11 Getting Started Figure 2-7. PSoC Designer Interconnect View Note For more details on PSoC Designer, see the PSoC Designer IDE Guide located at: <InstalledDirectory>:\Cypress\PSoC Designer\<version>\Documentation. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 12: Psoc Programmer

    1. Click Start > Programs > Cypress > Bridge Control Panel 1.2 > Bridge Control Panel 2. Select Power Supply, as highlighted in Figure 2-9. 3. Select the port connectivity. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 13: Install Hardware

      Note For more information, go to Bridge Control Panel > Help > Help Contents. Install Hardware No hardware installation is required for this kit. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 14 Getting Started CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 15: Kit Operation

    The maximum bandwidth of this configuration is 64 bytes. This is sufficient for most I2C-USB bridge applications (Figure 3-1). Figure 3-1. I2C-USB Bridge CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 16: Connect Bridge To Device

    The CY3240 I2C-USB Bridge can be programmed using a MiniProg at the programming header of the bridge. To use MiniProg, use the ISSP Programming Header (J2) on the board as highlighted in Figure 3-4. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor...
  • Page 17: Connect Demonstration Board To Bridge

    The demonstration board has built-in temperature sensor and photodiode. The measurement results of these are sent over I 1. Open the Variable Setting dialog box from the Chart menu. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com...
  • Page 18 Figure 3-7. The demo.ini file ini- tializes light and temperature variables and is available in the CY3240-I2USB kit CD or at the fol- lowing location: <Installed_directory>:\Cypress\CY3240-I2USB. 3. Load demo.iic file for iic commands that can be sent to demo target board; the demo.iic file is available in the CY3240-I2USB kit CD or at the following location: <Installed_directory>:\Cypress\CY3240-I2USB...
  • Page 19 This makes data collection easier. The data received from slave can be viewed either graphically or in a tabular form. 6. Click the Chart tab to view data graphically, as shown in Figure 3-9. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 20 7. Click the Stop button to stop scanning. 8. Click the Table tab to view data in a tabular form, as shown in Figure 3-10. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 21 Save Receive Data - To save received data shown on the status window of Bridge Control Panel. ■ Go to Bridge Control Panel Help from the Help menu for more information on the Bridge Control Panel and iic command format. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor...
  • Page 22 Kit Operation CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 23: Hardware

    Power Supply of Connector CY8C24894 3.3V/5V) GPIO Pins Demo target board consists of: CY8C21123 chip ■ ■ Photodiode ■ ■ ISSP programming header/data connector CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 24: Functional Description

    Figure 4-3. I2C-USB Bridge with Demo Target Board Internal Power Jumper Photo Diode Output LEDs PSoC CY8C24894 Chip ISSP Programming Header PSoC CY8C21123 Chip GPIO Pins CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 25: Psoc Cy8C24849 Chipset

    4.2.1 PSoC CY8C24849 Chipset The PSoC CY8C24894 on CY3240-I2USB Bridge board is pre-programmed to function as full fea- tured, full speed (12 Mbps) USB. This device enables creating customized peripheral (I/O) configu- rations that match the requirements of each individual application.
  • Page 26: Issp Programming Header

    Pin No Connection Description +V Device To supply voltage to the bridge Ground pin of the bridge Interrupt pin Serial data line Serial clock line CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 27: Gpio Pins

    Analog column mux input and column output P0[3] Analog column mux input and column output P0[1] Analog column mux input P2[7] GPIO P2[5] GPIO TP13 P2[2] GPIO CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 28: I2C Slave Interface Connector

    (if source current is 0.02 mA) and V (Low) is 0.4 V SN721 An array of SCR/diode bipolar structure for ESD and over-voltage protection ■ CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 29: Demo Target Board

    Table 4-3. CY8C21123 Pin Connectivity Pin No. Port No Description P0[4] LED1 P0[2] LED2 P0[5] Photo-diode P1[0] Voltage supply P1[1] Ground P0[3] Interrupt Serial clock Serial data CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 30 Hardware Figure 4-9. Demo Board Chip Schematic CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 31: Example Projects

    Example Projects All example projects are available in the CY3240-I2USB kit CD or at the following location: <Installed_directory>:\Cypress\CY3240-I2USB\Firmware Example Project 1: I2C-USB Demo Target Board Project 5.1.1 Project Description This example project demonstrates the data transfer between target board and host. The target board has a photodiode to measure light intensity and temperature values, which are acquired by the PSOC device (CY8C21123) to transmit to host.
  • Page 32: Hardware Connections

    Example Projects 5.1.2 Hardware Connections Figure 5-1. Functional Blocks CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 33: I2C-Usb Demo Target Board Flowchart

    Example Projects 5.1.3 I2C-USB Demo Target Board Flowchart CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 34: Verify Output

    CMPRG: Used to compare the data programmable reference threshold. PWRFB: Used to set the power level for this application. TIMER8: Used to wake up the application from sleep mode. CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com...
  • Page 35: Hardware Connections

    Example Projects 5.2.2 Hardware Connections Figure 5-3. Functional Bocks CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 36: I2C-Usb Bridge Flowchart

    Example Projects 5.2.3 I2C-USB Bridge Flowchart CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 37 Example Projects CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 38: Verify Output

    Verify Output When connected to the demonstration board, LED (green) blinks on the bridge indicating transfer operation between the bridge and PC. Figure 5-4. Verify Output CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor...
  • Page 39: Appendix

    Appendix Schematic A.1.1 I2C-USB Bridge Schematic Figure A-1. Reverse Current Protection Schematic CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 40 Figure A-2. USB Connection with Voltage Suppressor Schematic Figure A-3. Diode Schematic CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 41 Figure A-4. Voltage Regulator Schematic CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 42: Demo Target Board Schematic

    Figure A-5. PSoC CY8C24894 Schematic A.1.2 Demo Target Board Schematic Figure A-6. Demo Board Schematic CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 43: I2C-Usb Bridge Board Layout

    I2C-USB Bridge Board Layout Figure A-7. Top View Figure A-8. Bottom View A.2.1 Demo Target Board Layout Figure A-9. Top View   CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 44: Bom

    RES 0.0 OHM 1/8W 5% 0805 SMD Rohm MCR10EZHJ000 * 000 RES 0.0 OHM 1/8W 5% 0603 SMD Rohm MCR03EZPJ000 J1 * Shunt 929950-00 CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 45: Demo-Target Board R

    LED RED CLEAR 0805 SMD LITE-ON INC LTST-C170CKT 160-1176-2-ND IC PSoC 21x23 8SOIC Cypress Semiconductor CY8C21123-24SXI CONN HEADER .100 SNGL STR 5POS Samtec TSW-105-07-T-S SAM1035-05-ND CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...
  • Page 46 CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.** Downloaded from Elcodis.com electronic components distributor [+] Feedback...

Table of Contents