GPIF II Designer - Quick Start Guide

Similar documents
GPIF II Designer 1.0. Doc. No Rev. **

Use the Status Register when the firmware needs to query the state of internal digital signals.

HX2VL Development Kit Guide. Doc. # Rev. **

HX2VL Development Kit Guide. Doc. # Rev. *A

Use the Status Register when the firmware needs to query the state of internal digital signals.

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Cypress HX2VL Configuration Utility Blaster User Guide

Cypress HX2VL Configuration Utility Blaster User Guide

THIS SPEC IS OBSOLETE

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Voltage Reference (Vref) Features. General Description. Input/Output Connections. When to Use a Vref Voltage references and supplies

CY3660-enCoRe V and encore V LV DVK Kit Guide

CYClockMaker Programming Kit Guide CY3675. Doc. # Rev. **

Writing to Internal Flash in PSoC 3 and PSoC 5

Filter_ADC_VDAC_poll Example Project Features. General Description. Development Kit Configuration

PSoC 1 I 2 C Bootloader

THIS SPEC IS OBSOLETE

8 to 1 Analog Multiplexer Datasheet AMux8 V 1.1. Features and Overview

FTG Programming Kit CY3670. Spec. # Rev. *C

4 to 1 Analog Multiplexer Data Sheet

CYClockMaker Programming Kit Guide CY3675. Doc. # Rev. *C

Clock Programming Kit

Next-Generation Hot-Swap Controllers

FM3 MB9B100A/300A/400A/500A Series Inverter Solution GUI User Guide

For one or more fully configured, functional example projects that use this user module go to

Reviving Bit-slice Technology in a Programmable Fashion

CY7C603xx CYWUSB

AN EZ-USB FX3 I 2 C Boot Option. Application Note Abstract. Introduction. FX3 Boot Options

EZ-USB FX3 Development Kit Guide

Use the IDAC8 when a fixed or programmable current source is required in an application.

LPF (Optional) CY8C24x93. Without LPF and ISR to 3* With LPF only** to 3* With ISR only to 3*

PSoC Creator Quick Start Guide

PSoC Creator Component Datasheet

CE PSoC 4: Time-Stamped ADC Data Transfer Using DMA

Preliminary. Gas Sensor Analog Front End Datasheet GasSensorAFE V Features and Overview. This datasheet contains Preliminary information.

CE56273 Associated Part Families: CY8C38xx/CY8C55xx Software: PSoC Creator Related Hardware: CY8CKIT-001 Author: Anu M D

Shadow Registers Datasheet ShadowRegs V 1.1. Features and Overview

Programmer User Guide

Supported Devices: CY8C28x13, CY8C28x33, CY8C28x43, CY8C28x45, CY8C28x52, CY8C21x45, CY8C22x45, CY8C24x93. CY8C24x

PSoC Designer Release Notes

AN SIO Tips and Tricks in PSoC 3 / PSoC 5. Application Note Abstract. Introduction

PSoC 4 Low Power Comparator (LPComp) Features. General Description. When to Use a LPComp 2.0. Low input offset. User controlled offset calibration

THIS SPEC IS OBSOLETE

Comparator (Comp) Features. General Description. When to use a Comparator 1.60

PSoC Programmer 3.12 Release Notes

Programmable Threshold Comparator Data Sheet

144-Mbit QDR -II SRAM 2-Word Burst Architecture

16-Bit Hardware Density Modulated PWM Data Sheet

EZ-PD Analyzer Utility User Guide

The color of the Clock component waveform symbol will change based on the clock's domain (as shown in the DWR Clock Editor), as follows:

Programmable Gain Amplifier Datasheet PGA V 3.2. Features and Overview

DMX512 Receiver Datasheet DMX512Rx V 1.0. Features and Overview

H O S T. FX2 SX2 Back - to - Back Setup. Project Objective. Overview

ModusToolbox USB Configurator Guide

Digital Multiplexer and Demultiplexer. Features. General Description. Input/Output Connections. When to Use a Multiplexer. Multiplexer 1.

This Application Note demonstrates an SPI-LIN slave bridge using a PSoC device. Demonstration projects are included.

24-Bit Pseudo Random Sequence Generator Data Sheet

The following table lists user modules used in this code example and the hardware resources occupied by each user module.

This section describes the various input and output connections for the SysInt Component.

Libraries Guide. Arithmetic Libraries User Guide. Document #: Rev. *A

Digital Logic Gates. Features. General Description. Input/Output Connections. When to Use a Logic Gate. Input 1. Input 2. Inputs 3-8 * 1.

Incremental ADC Data Sheet

Use the Status Register when the firmware needs to query the state of internal digital signals.

PSoC Programmer Release Notes

Setting Oscillation Stabilization Wait Time of the main clock (CLKMO) and sub clock (CLKSO)

One 32-bit counter that can be free running or generate periodic interrupts

PSoC Programmer Release Notes

This input determines the next value of the output. The output does not change until the next rising edge of the clock.

Bootloader project - project with Bootloader and Communication components

Capable of adjusting detection timings for start bit and data bit

Base Timer Channel (BT) Features. General Description. When to Use a PDL_BT Component 1.0

CapSense I 2 C/SPI Timer Flash RAM

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

12-Mbit (512 K 24) Static RAM

AN1090. NoBL : The Fast SRAM Architecture. Introduction. NoBL SRAM Description. Abstract. NoBL SRAM Operation

CE58957 demonstrates how to implement the fade and toggle feature to the backlight LEDs of CapSense buttons.

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

User Guide. EZ-Click 2.0. Document # Rev *C

Release Notes SRN065 PSoC Programmer Version Release Date: November 9, 2009

PSoC 6 Current Digital to Analog Converter (IDAC7)

Use the Status Register when the firmware needs to query the state of internal digital signals.

EZ I 2 C Slave. Features. General Description. When to use a EZ I 2 C Slave 1.50

This section describes the various input and output connections for the Voltage Fault Detector.

The AMuxSeq is capable of having between 2 and 32 analog inputs. The paired inputs are present when the MuxType parameter is set to "Differential.

Version 3.3. If you have technical questions, visit or call and select 8.

THIS SPEC IS OBSOLETE

Cypress BLE-Beacon ios App User Guide

Automatic reload of the period to the count register on terminal count

PTG Programming Kit CY3672. Features. Functional Description. CY3672-PRG Kit Contents. Set Up

Use a DieTemp component when you want to measure the die temperature of a device.

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

PSoC Programmer User Guide. Doc. No Rev. *H

PSoC Blocks. CY8C20xx6/6A/6AS/6H/6L, CY8C20xx7/7S, CY7C643xx, CY7C604xx, CYONS2xxx, CYONSxNxxxx, CYRF89x35, CY8C20065, CY8C24x93, CY7C69xxx

This section describes the various input and output connections for the Voltage Fault Detector.

PSoC 4 Current Digital to Analog Converter (IDAC)

4K x 8 Dual-Port Static RAM and 4K x 8 Dual-Port SRAM with Semaphores

1-Mbit (64K x 16) Static RAM

THIS SPEC IS OBSOLETE

Old Company Name in Catalogs and Other Documents

Controller Continuum. for Microcontrollers V6.3. Quick Start

Transcription:

GPIF II Designer - Quick Start Guide 1. Introduction Welcome to GPIF II Designer - a software tool to configure the processor port of EZ-USB FX3 to connect to any external device. This application generates programmable register values in the form of a C program header file that can be readily integrated with the firmware application code using the FX3 firmware API framework. GPIF II Designer also provides a set of readily usable designs of standard and popular interfaces. The user can modify few parameters of such designs to customize the predefined design to suit to the users target environment. A state machine simulator displays the timing of the implemented interface. GPIF II Designer is part of the FX3 Software Development Kit. This document provides a quick start guide for using GPIF II Designer. 2. Installation GPIF II Designer is delivered as part of FX3 Software Development Kit. Download FX3SDKSetup.exe (Please contact your Cypress Marketing representative to get the latest version). To install: 1. Run FX3SDKSetup.exe. Specify the Destination Path and click [Next]. 2. Follow instructions and click [Next] till the last window with [Finish]. The user can select the type of installation. Typical installation installs FX3 firmware framework with documentation, Eclipse, GPIF II Designer, and USB Suite for 32 bit. The user can select the required software using the Custom type of Installation. 3. Default path of installation for GPIF II Designer executable is at C:\Program Files\Cypress\EZ-USB FX3 SDK\1.0\bin. 3. Starting the Application After the Installation, GPIF II designer application can be started from the Cypress folder on the Programs menu, that is, Click Start > All Programs > Cypress > GPIF II Designer > GPIF II Designer. This brings up the Welcome (start) page of GPIF II Designer as shown in Figure 1. Document Number: 001-74526 Rev. *B Page 1 of 8

Figure 1. GPIF II Designer Start Page 4. Using a Cypress Supplied Interface GPIF II Designer provides a library of standard and popular Interfaces that can be readily used. These specially parameterized and predefined Interfaces are known as Cypress supplied Interfaces. One of the Cypress supplied Interface listed on the start page can be selected if it matches the target interface requirements. Document Number: 001-74526 Rev. *B Page 2 of 8

Figure 2. Start Page Showing Cypress Supplied Interfaces The start page provides links to open Cypress supplied Interfaces. The user can click on the Interface to create a copy of the interface project for use. A graphical interface will prompt the user to enter a folder location of choice to copy the project as shown in Figure 2. Enter a name for the project and the location on disk. Once the project is created, the Interface customization window is displayed. This window provides a graphical view of the P-port external interface. The left pane shows the available customizations for the Interface opened as shown Figure 3. Document Number: 001-74526 Rev. *B Page 3 of 8

Figure 3. Interface Customization Page User can modify the parameters listed on left pane. Also for some of the signals the GPIO assignment can be modified by clicking on the GPIO label on the FX3. 5. Designing a GPIF II Interface The user can define the required interface on the processor port of FX3 by entering a state machine. One can start a new project or use one of the example projects and modify. To create a new project, use the New Project command from the File menu. Enter a name for the project and select the location of the project to be saved on disk. Figure 4. New Project Dialog Box Document Number: 001-74526 Rev. *B Page 4 of 8

Once the project is created the Interface Definition Window is displayed. Enter the Interface Settings using the left pane menus. Use function key - F1 to popup detailed help. Figure 5. Interface Definition Window The Interface Definition Window allows users to define the I/O level external interface. The central pane of this window displays the graphical view of the FX3 P-port interface. All settings related to Interface are arranged with selectable options on the left pane. It is recommended to complete the Interface definition settings before drawing the state machine diagram. The graphical view of FX3 external interface displays the input and output signals along with the address data bus based on the selections made by the user on the left pane. The user can double click on the signal line to bring a dialog box to configure the signal settings. Each signal can be assigned with a user defined alpha numeric name string. The tool automatically assigns an available GPIO to each signal. This assignment of a GPIO to a signal can also be modified by double clicking on the signal. The pin (GPIO) assignment to each signal also can be modified by clicking on each the GPIO label provided along with the signal. Note that signals with special functions can be modified. After defining the Interface move to the state machine canvas using the tab on top left part of the centre pane. Add states from Add State command from the menu displayed with the right click of mouse. Populate each state with required actions from the menu on the right pane. Draw transitions between states and define the transition equation by double clicking on the transition line. Document Number: 001-74526 Rev. *B Page 5 of 8

Figure 6. State Machine Canvas After defining the interface using the state machine use the "Build Project" command to generate the code that can be integrated to the FX3 firmware application. Code is generated a "C" header file under the project folder. The header file by default is named cyfxgpif2config.h, which can be modified using the "Build Settings" command on the "Build" menu. 6. State Machine Simulation to View Timing Diagram GPIF II Designer converts the state machine diagram (along with the interface settings) entered by the user to an Interface implementation of the processor port of FX3. The state machine thus corresponds to a digital signal interface. The relative timing of the signals will be definite and can be represented as a timing diagram. The relative timing of the input and output signals of a state machine implementation can be simulated in the form a timing diagram using the Timing Window. Follow these steps to perform timing analysis: 1. Complete the Interface settings and state machine diagram. The project should be buildable without errors. 2. Select the state machine path to simulate timing and save it as Timing Scenario. The toolbar icon to create Timing Scenario is provided on the top strip of the Timing Window. The user can enter a unique name to identify the scenario. A path of the state machine can be traversed by selecting the state names appearing on the menu provided. 3. Load a timing scenario from the list. The list of saved timing scenarios is available for load on the top pane of the Timing window. The input and output signals are displayed with the minimum setup and hold time requirements as per the state machine implementation. Document Number: 001-74526 Rev. *B Page 6 of 8

Figure 7. Timing Display Using State Machine Simulator 7. Integrating the Generated Header File The generated header file contains data structures that are compliant with the EZ-USB FX3 firmware framework API. The user needs to copy the generated header file into the firmware application folder and include it in the source file. The firmware application needs to call appropriate GPIF II APIs to load and start the state machine. A sample code snippet that configures the GPIF II interface is shown as follows. /* Load the configuration into the GPIF registers. CyFxGpifConfig is defined in the GPIF II designer generated header file. GpifProjName will be replaced by the name of the users GPIF II Project name */ status = CyU3PGpifLoad (&GpifProjName_CyFxGpifConfig); if (status!= CY_U3P_SUCCESS) return status; /* Start the operation of the GPIF II state machine. Both GPIFPROJNAME_START and GPIFPROJNAME_ALPHA_START are defined in the header file. */ status = CyU3PGpifSMStart (GPIFPROJNAME_START, GPIFPROJNAME_ALPHA_START); if (status!= CY_U3P_SUCCESS) return status; Document Number: 001-74526 Rev. *B Page 7 of 8

8. Getting Help A comprehensive user manual explaining the usage of the tool is available on..\gpifii Designer\documentation folder under the installation folder (by default the installation folder is C:\Program Files\Cypress\). A context sensitive help is available from the tool. The context sensitive help provides information on tool usage as well as on interfacing with the FX3 firmware. A help topic corresponding to the window on focus can be launched by pressing the function key [F1]. The help pages launched can be navigated as follows: Use the Contents tab to view all of the help topics in a structured table of contents Select Topics from the Help menu to open this help system Use the Index tab to find and view key topics alphabetically Use the Search tab to find specific topics by keywords Cypress Semiconductor Corporation, 2012. 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. Furthermore, Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. GPIF and EZ-USB are trademarks or registered trademarks of Cypress Semiconductor Corporation. All other trademarks or registered trademarks referenced herein are property of the respective corporations. Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as specified above is prohibited without the express written permission of Cypress. Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress product in a life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. Use may be limited by and subject to the applicable Cypress software license agreement. Document Number: 001-74526 Rev. *B Page 8 of 8