Cypress CY8CKIT-001 Development Kit Manual

Cypress CY8CKIT-001 Development Kit Manual

Psoc development kit
Hide thumbs Also See for CY8CKIT-001:
Table of Contents

Advertisement

Quick Links

PSoC3 DVK
CY8CKIT-001
PSoC
Development Kit Guide
®
Doc. # 001-48651 Rev. **
June 16, 2009
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com
[+] Feedback

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CY8CKIT-001 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress CY8CKIT-001

  • Page 1 PSoC3 DVK CY8CKIT-001 PSoC Development Kit Guide ® Doc. # 001-48651 Rev. ** June 16, 2009 Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): 408.943.2600 http://www.cypress.com [+] Feedback...
  • Page 2 Cypress Source Code and derivative works for the sole purpose of creating custom soft- ware and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as speci- fied in the applicable agreement.
  • Page 3: Table Of Contents

    CY8C38 Family Processor Module Example Projects..........48 3.2.1 My First PSoC Project..................48 3.2.1.1 Creating My First PSoC Project ............48 3.2.1.2 Placing and Configuring the PWM ...........49 3.2.1.3 Placing and Configuring the Digital Port Hardware......50 CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 4 A.1.1 Factory Default Configuration ................ 99 A.1.1.1 Power Supply ................. 99 A.1.2 Power Supply Configuration Examples............100 A.1.2.1 Setting a 5V Supply from VREG ..........100 A.1.2.2 Setting a 3.3V Supply from VREG ..........100 CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 5 Expansion Ports ..................108 A.1.7.1 Expansion Ports A and A' .............109 A.1.7.2 Expansion Port B................109 A.1.7.3 Expansion Port C................109 Appendix B. MiniProg3 MiniProg3 LEDs.......................111 Programming in Powercycle Mode ................111 CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 6 Contents CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 7: Introduction

    PSoC Programmer™ software ❐ CY8C29 and CY8C38 data sheets ❐ Architecture technical reference manuals ❐ Kit release notes ❐ Software release notes ❐ Example project files, firmware, and documentation ❐ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 8: Installation

    1.3.1 Before You Begin All Cypress software installations require administrator privileges but is not required to run the installed software. Shut down any currently running Cypress software. Disconnect any ICE Cube or MiniProg devices from your computer.
  • Page 9 Note The Keil compiler is distributed with a free license. You must activate this license within 30 days of installation. Once the Cypress software installation is complete, and you run PSoC Creator, activate the compiler license from the Keil Registration option under the Tools menu.
  • Page 10: Psoc Development Board

    1.4.1 Default Switch and Jumper Settings Jumpers on the CY8CKIT-001 PSoC Development Main Board have a default setting for 3.3V oper- ation. For Default configuration, each of the jumpers must be set according to these instructions. Note: All CY8C29x66 family processor module example projects are configured for 5V. Do configure the board to 5V, before creating the example projects.
  • Page 11 J2-J5 - VDDIO Power Select. Default Position: VDD (upper left two pins) J10 - RS232 Power (Serial Communications). Default Position: Installed J14 - Radio Power. Default Position: Installed J11 - Variable Resistor Power. Default Position: Installed CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 12: Conventions

    Displays cautions that are important to the subject. Document Revision History Document Title: CY8CKIT-001 PSoC Development Kit Guide Document Number: 001-48651 Origin of Revision Issue Date Description of Change Change 6/16/09 AESA New Guide CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 13: Loading My First Psoc Project

    Loading My First PSoC Project The CY8CKIT-001 PSoC Development Kit supports projects across the PSoC, PSoC3, and PSoC5 architectures. This section walks you through the high level design process for opening, building, programming, and running your first PSoC projects using this kit.
  • Page 14: My First Psoc Project

    4. Open the folder Example_My_First_PSoC_Project. 5. Double click Example_My_First_PSoC_Project.app. 6. The project opens in the Chip Editor view. All the project files are in the Workspace Explorer. Figure 2-1. Chip Editor View CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 15: Building My First Psoc Project

    1. Open PSoC Programmer from within PSoC Designer by selecting Program → PSoC Programmer. 2. In PSoC Programmer, make sure that MiniProg3 is selected in the Port Selection box. 3. In PSoC Programmer, set Programming Mode to Reset. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 16: Running My First Psoc Project

    Loading My First PSoC3 Project 1. Open PSoC Creator. 2. In the Start Page, under Start Page Topics expand Kits and Solutions. 3. Under Kits and Solutions, expand PSoC Development Kit. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 17 4. Click Ex1_LED_with_PWM.cywrk to open the project. 5. Select the directory in which to store the project. 6. After the project opens, you can see the project files in Workspace Explorer. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 18: Building My First Psoc3 Project

    2. PSoC Creator builds the project and displays the comments in the Output window. When you see the message “Build Succeeded” you are ready to program the device. Figure 2-5. Output Window CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 19: Programming A Device

    LED2 blinks about three times a second. 3. For more details regarding this project, review the detailed step-by-step project instructions in First PSoC Project on page CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 20 Loading My First PSoC Project CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 21: Sample Projects

    3. In the New Project window, select the Chip-Level Project. Name the project Example_My_First_PSoC_Project. 4. In Location, click Browse and navigate to the appropriate directory. Figure 3-1. New Project Window CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 22 7. The Device Catalog window opens. Click on the PSoC tab, and scroll down to the CY8C29466, CY8C29566,… section. 8. For this project click any device in this section and then click Select. Figure 3-3. Device Catalog Window CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 23 Figure 3-5. User Modules Window 12.In this folder right click on a PWM8 and select place. The User Module (UM) is placed in the first available digital block. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 24 Configure the PWM with the settings as in the following figure. If the Properties window does not appear, click View → Properties Window. Figure 3-7. Properties Window CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 25 Table (LUT) on Row_0_Output3. 15.Double click the LUT, the Digital Interconnect window opens. 16.In this window enable Row_0_Output_3_Drive_1 to connect to GlobalOutEven_7. Figure 3-8. Digital Interconnect Window 17.Click Close. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 26 Loadable Configurations → example_my_first_psoc_project - 2 User Modules. Figure 3-9. Workspace Explorer 21.Double click the LED_1 UM and navigate to the Properties window. Configure the LED for P_1_7. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 27 22.Configure the Global Resources window to match the following figure. 23.Open your main.c file and copy the example code located in section 3.1.1.2 on page to the existing main.c. main.c is in the Workspace Explorer. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 28 30.Use PSoC Designer as described in Programming My First PSoC Project on page 11 to program the device. 31.Reset the DVK, and observe the blinking LEDs. 32.Save and close the project. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 29: Main.c

    //Delay is compiler and CPU dependant LED_1_Invert();//Switch the state of Software LED, //if on turn it off, //if off turn it on } //End of while(1) }//End of main CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 30: Adc To Lcd Project

    In this case the DS1128 configuration is used. Scroll down in the window to verify that this is the case. Figure 3-12. Select Multi User Module Window 3. Click OK. 4. Verify that the DelSig_1 UM is placed in ASC10. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 31 Ensure that the PGA is placed in ACB00. 6. In the User Modules window expand Misc Digital, Right click LCD and click place. 7. Double click PGA_1 and configure the properties to match this figure. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 32 Sample Projects 8. Double click DelSig_1 and configure the properties to match this figure. 9. Double click LCD_1 and configure the properties to match this figure. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 33 10.Configure the Global Resources to match the following figure. 11. Ensure that AnalogColumn_InputMUX_0 is connected to Port_0_1. If it is not configured for this port, double click the MUX and choose Port_0_1. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 34 21.After programming the device, press the reset button and vary the pot to see the results on the LCD. 22.Save and close the project. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 35: Main.c

    // Holds the integer ADC result void main() PGA_1_Start(PGA_1_HIGHPOWER);//Initialize the PGA, PGA used to buffer //input from the VR on P0.1 to the ADC DelSig_1_Start(DelSig_1_HIGHPOWER); //Initialize the ADC LCD_1_Start(); //Initialize the LCD CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 36 //Wait for ADC data to be ready wADCResult=DelSig_1_wGetDataClearFlag();//Store result from ADC LCD_1_Position(0,9); //Set LCD to (Row=0,Column=9) LCD_1_PrHexInt(wADCResult); //Print ADC result on LCD }//End of while(1) }//End of main CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 37: Adc To Lcd With Dac And Uart

    DS232 and choose place. A window appears with multiple options for the DelSig UM. In this case the DS232 configuration is used. Scroll down in the window for verification. Figure 3-13. Select Multi User Module Window 3. Click OK. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 38 8. In the User Modules window expand Digital Comm, right click TX8, and click place. 9. In the User Modules window expand DACs, right click DAC6, and click place. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 39 Sample Projects 10.Move the UMs so that they match the configuration shown in this figure. Counter8_1 Counter8_2 TX8_1 PGA_1 DelSig_1 DAC6_1 CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 40 11. Double click on DelSig_1 and configure it to match this figure. 12.Double click PGA_1 and configure it to match this figure. 13.Double click DAC6_1 and configure it to match this figure. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 41 14.Double click LCD_1 and configure it to match this figure. 15.Double click on Counter8_1 and configure it to match this following figure. 16.Double click Counter8_2 and configure it to match this figure. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 42 Sample Projects 17.Double click TX8_1 and configure it to match this figure. 18.Double click RO2[0] LUT, enable Row_2_Output_0_Drive_1 to connect GlobalOutEven_4. Figure 3-14. Digital Interconnect Window CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 43 Sample Projects 19.Double click GlobalOutEven_4. A window appears; in this window configure PIN for Port_0_4. 20.Click OK to continue. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 44 21.Click AnalogOutBuf_1 and configure it for Port_0_5. 22.Verify that AnalogColumn_InputMUX_0 is connected to Port_0_1. If it is not configured for this port, double click the MUX and choose Port_0_1. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 45 Sample Projects 23.Verify that AnalogColumn_Clock_0, is connected to VC2. If it is not, double click the MUX and chose VC2. 24.Configure Global Resources to match the following figure. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 46 37.After programming the device, press Reset and vary the pot to see the result on the LCD as well as in the terminal application. View the DAC output on a scope or with an LED. 38.Save and close the project. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 47: Main.c

    977Hz (Period Value = 255) Clock = VC2 // VC2 = 24MHz/16/16 = 250kHz ClockSync = Sync to SysClk Enable = High CompareOut = None TerminalCountOut = None CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 48 AnalogBus = AnalogOutBus_1 ClockPhase = Normal DataFormat = OffsetBinary *******************************************************************************/ #include <m8c.h> // part specific constants and macros #include “PSoCAPI.h” // PSoC API definitions for all User Modules CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 49 LCD_1_Position(0,0);//Move LCD (row=0,column=0) LCD_1_PrHexByte(bADCvalue); //Print ADC result to LCD TX8_1_PutSHexByte(bADCvalue); //Write LCD result out TX8 to PC TX8_1_PutCRLF(); //Send a return character } //end of while(1) //End of Main CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 50: Counter8_1Int.asm

    ; Variable Allocation ;------------------------ area bss(RAM) bTablePos:blk 1 _bTablePos: ;--------------------------------------------------- ; Insert your custom declarations above this banner ;--------------------------------------------------- ;@PSoC_UserCode_END@ (Do not change this line.) AREA UserModules (ROM, REL) CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 51 DAC6_1_WriteBlind;Write value from SINtable (stored in A) to the DAC pop X pop A ;--------------------------------------------------- ; Insert your custom code above this banner ;--------------------------------------------------- ;@PSoC_UserCode_END@ (Do not change this line.) reti ; end of file Counter8_1INT.asm CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 52: Cy8C38 Family Processor Module Example Projects

    Figure 3-15. New Project Window 5. By default, the design window opens TopDesign.cysch. This is the project's schematic entry file within PSoC Creator. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 53: Placing And Configuring The Pwm

    Resolution: 8-Bit ❐ PWM Mode: One Output ❐ Period: 100 ❐ CMP Value 1: 50 ❐ CMP Value Type 1: Less or Equal ❐ Figure 3-17. PWM Component Configuration CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 54: Placing And Configuring The Digital Port Hardware

    AccessMode: PortAccessMode_HW ❐ Direction: PortDirection_Output ❐ Width: 1 ❐ Figure 3-18. PWM_OUT Component Configuration Pins Tab Pin Mode: CMOS_Out ❐ Leave remaining parameters set to their default values ❐ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 55: Double Click The Dport_1 Component In The Schematic To Open The Configuration Window

    2. Double click the dPort_1 component in the schematic to open the configuration window. 3. Configure the digital port: Basic Tab Name: LED ❐ AccessMode: PortAccessMode_SW ❐ Direction: PortDirection_Output ❐ Width: 1 ❐ Figure 3-20. LED Component Configuration CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 56: Connecting The Components Together

    7. Configure the clock: Configure Clock Tab Name: PWMclock ❐ Source: ILO (1.000 kHz) ❐ Select Divider and set the value as 10 ❐ Leave remaining parameters to default ❐ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 57: Configuring The Pins

    1. From the Workspace Explorer, double click the Ex1_LED_with_PWM.cydwr file (see Figure 3-24 on page 54). 2. Click the Pins tab. 3. Select pin P1[6] for PWM_OUT. 4. Select pin P1[7] for LED. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 58: Creating The Main.c File

    PWMclock_Enable(); /* Start the clock */ PWM_Start(); /* Enable PWM /* Following loop does software blinking of LED connected to P0.1 */ while (1) CyDelay(MS_DELAY); /* Have software loop blink control CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 59: Configuring And Programming The Psoc Development Board

    3. In the New Project window, select the Empty PSoC3 Design template and Name the project Ex2_ADC_to_LCD. 4. In Location, type the path where you want to save the project, or click and navigate to the appropriate directory. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 60: Placing And Configuring Delta Sigma Adc

    Start of Conversion: Software ❐ For more information about what the parameters mean, click the Data Sheet button in the config- uration window. Figure 3-25. ADC Component Configuration CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 61: Name: Pwm_Out

    ❐ Include ASCII to Number Conversion Routines: Check box ❐ For more information about what the parameters mean, click the Data Sheet button in the config- uration window. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 62: Connecting The Components Together

    Configuring the Pins 1. From the Workspace Explorer, double click the Ex2_ADC_to_LCD.cydwr file. 2. Click the Pins tab. 3. Select pins P2[6:0] for CharLCD. 4. Select pin P0[7] for POT. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 63: Creating The Main.c File

    0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 64 */ /* Allocate a Transaction Descriptor (TD) from the free list */ myTd = CyDmaTdAllocate(); CharLCD_Position(0,0); /* Move the LCD cursor to Row 0, Column 0 */ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 65 * Summary: Print voltage raw count result to the LCD. Clears some characters if necessary. The voltageRawCount parameter is also updated for use in other functions. * Parameters: CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 66: Configuring And Programming The Psoc Development Board

    Output dialog box. When you see the message “Build Succeeded” the build is complete. 3.2.2.8 Configuring and Programming the PSoC Development Board 1. Disconnect power to the board. 2. Configure the DVK bread board SW3 to 3.3V. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 67: Adc To Uart With Dac

    4. In Location, type the path where you want to save the project, or click and navigate to the appropriate directory. 5. By default, the design window opens TopDesign.cysch. This is the project's schematic entry file within PSoC Creator. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 68: Placing And Configuring Delta Sigma Adc

    Start of Conversion: Software ❐ For more information about what the parameters mean, click the Data Sheet button in the config- uration window. Figure 3-30. Delta Sigma ADC Component Configuration CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 69: Placing And Configuring Analog Port

    ❐ Include ASCII to Number Conversion Routines: Check box ❐ For more information about what the parameters mean, click the Data Sheet button in the config- uration window. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 70: Placing And Configuring Voltage Dac

    ❐ Strobe_Mode: Register_Write ❐ VDAC_Range: Range_4_Volt ❐ VDAC_Speed: LowSpeed ❐ For more information about what the parameters mean, click the Data Sheet button in the config- uration window. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 71: Placing And Configuring Opamp

    ❐ Power: High Power ❐ For more information about what the parameters mean, click the Data Sheet button in the config- uration window. Figure 3-34. Opamp Component Configuration CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 72: Placing And Configuring Analog Port

    Bits per second: 9600 ❐ Leave the remaining parameters to default ❐ For more information about what the parameters mean, click the Data Sheet button in the config- uration window. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 73: Placing And Configuring Digital Port

    3. Configure the digital port: Basic Tab Name: TX_OUT ❐ AccessMode: PortAccessMode_HW ❐ Direction: PortDirection:_Output ❐ Width: 1 ❐ Figure 3-37. TX_OUT Component Configuration Pins Tab Pin Mode: CMOS_Out ❐ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 74: Placing And Configuring Dma

    Leave the remaining parameters to default ❐ For more information about what the parameters mean, click the Data Sheet button in the config- uration window. Figure 3-39. DMA Component Configuration CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 75: Connecting The Components Together

    7. Right click the LED analog port, select the Shape menu option and then Flip Horizontal. This allows the LED pin to line up with the analog buffer. 8. When complete the schematic looks like Figure 3-41. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 76: Configuring The Pins

    3. Select pins P2[6:0] for CharLCD 4. Select pin P0[7] for POT 5. Select pin P1[6] for LED 6. Select pin P1[2] for TX_OUT Figure 3-42. Pin Assignments CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 77: Creating The Main.c File

    In the main loop, it starts and waits for an ADC conversion, then it displays the ADC raw count to the LCD, transmits the raw count serially, and sets the DMA clock divider proportional to the raw count. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 78 ADC_StartConvert(); /* Force ADC to initiate a conversion */ while(1) ADC_IsEndConversion(ADC_WAIT_FOR_RESULT); /* Wait for end of conversion */ voltageRawCount = ADC_GetResult16(); /* Get conversion result */ /* ADC count errata workaround */ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 79 (voltageRawCount[0] < 100) CharLCD_Position(0,11); /* Move the cursor to Row 0, Column 11 */ CharLCD_PrintString(" "); /* Clear last characters */ /******************************************************************************* * Function Name: TxHex ******************************************************************************** CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 80: Configuring And Programming The Psoc Development Board

    8. Install a terminal application such as TeraTerm or HyperTerminal with these setup parameters: Baud Rate: 9600 ❐ Data: 8-bit ❐ Parity: none ❐ Stop: 1-bit ❐ Flow Control: none ❐ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 81: Usb Hid

    1. Drag-and-drop a USBFS component from the Components Catalog to the workspace. 2. Double click the USBFS_1 component. 3. Name the component USBFS. 4. Select the HID Descriptor tab. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 82 5. Click to import a report. 6. Browse the Kit CD and open the XML descriptor file, USB_HID_Example.xml. Figure 3-45. HID Descriptor Configuration 7. Select the String Descriptor tab. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 83 16.Select Device Descriptor 17.Set the Product ID to F11E. 18.Set the Manufacturing String to Cypress Semiconductor. 19.Set the Product String to PSoC Development Kit. Figure 3-47. Device Descriptor Configuration CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 84 Figure 3-49. Interface Descriptor Configuration 24.Select HID Class Descriptor. 25.Set HID Report to Keyboard w/LED Feature Report. 26.Select Endpoint Descriptor. 27.Set Direction to IN and Transfer Type to INT. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 85: Placing And Configuring Software Digital Port

    Name: SW ❐ Width: 1 ❐ Figure 3-50. SW Digital Port Configuration Pins Tab Pin Mode: ResPull_Up. ❐ Figure 3-51. Pins - SW Digital Port Configuration 3. Click OK. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 86: Direction: Portdirection_Output

    Figure 3-52. LED Component Configuration Pins Tab Pin Mode: CMOS_Out ❐ Figure 3-53. Pins - LED Component Configuration 3. From the Workspace Explorer, open the Ex4_USB_HID.cydwr window and select the Clocks tab. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 87: Configuring The Pins

    1. Click the Pins tab. Assign USBFS_dp to P15[6] ❐ Assign USBFS_dm to P15[7] ❐ Assign LED to P1[6] ❐ Assign SW to P1[5] ❐ Figure 3-55. Pin Assignments CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 88: Creating The Main.c File

    /* Data array for the keyboard device endpoint */ uint8 keyboardData[] = {0,0,0,0,0,0,0,0}; /* Keyboard scan codes for the cypress website (“www.cypress.com<cr>”) */ uint8 cypressWebsiteCharSequence[] = { 0x1A, 0x1A, 0x1A, 0x37, 0x06, 0x1C, CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 89 * Return: TRUE: button pressed FALSE: button not pressed *******************************************************************************/ static uint8 ButtonPressed(void) if(!SW_Read()) /* wait for the button to be released */ while(!SW_Read()); return TRUE; return FALSE; CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 90 = LETTER_R; GetAckLoadEp(keyboardData); /* Send USB keyboard data */ /* Send up keys for both Windows modifier key and r key */ keyboardData[KEY_DATA_INDEX] = KEY_RELEASE; /* r break */ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 91: Configuring And Programming The Psoc Development Board

    7. After programing the device, press Reset. 8. When button SW1 is pressed, the Windows Run window opens and the keyboard key sequence for the Cypress website is sent to open the Cypress website. 9. Save and close the project.
  • Page 92: Capsense

    2. Double click the CapSense_1 component 3. Configure it in this manner. Figure 3-56. CapSense Component Configuration 4. Name the component CapSense. 5. Select IDAC sinking. 6. Select the Buttons tab. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 93 Figure 3-58. B1 Button Configuration 8. Select the Sliders tab. 9. Enter Position for the Slider Name. 10.Select Linear for Type. 11. Enter 5 for Number of Elements. 12.Enter 80 for Resolution. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 94 14.Select UDB from the Prescaler drop down list. This enables the Prescaler Period in Scan Slots tab. Figure 3-60. Clock Source Tab 15.Select the Scan Slots tab using the right arrow. Figure 3-61. Click Right Arrow CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 95 Select Custom ❐ Prescaler Period: 12 ❐ Resolution: 10 bits ❐ IDAC Range: 3 ❐ Connect Inactive Sensors: Ground ❐ Scan Speed: Normal ❐ IDAC Setting: 60 ❐ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 96: Placing And Configuring Character Lcd

    1. Drag-and-drop a Character LCD component from the Component Catalog to the workspace. 2. Double click the LCD_Char_1 component. 3. Set the parameter LCD Custom Character Set to Horizontal Bargraph. Figure 3-64. Horizontal Bargraph Configuration CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 97: Placing And Configuring Digital Port

    Contiguous: true ❐ Direction: PortDirection_Output ❐ PowerOnResetState: PortPORState_InDisabledOutHiZ ❐ StandardLogic: PortStandardLogic_CMOS ❐ UseInterrupt: false ❐ Width: 1 ❐ Figure 3-65. LED Configuration Pins Tab ❐ Pin Mode: CMOS_Out ❐ CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 98: Configuring The Pins

    LED1 to P1[6] ❐ LED2 to P1[7] ❐ CharLCD to P2[0] to P2[6] (Drag it to P2[0] and PSoC Creator assigns the pin correctly.) ❐ Figure 3-67. Pin Assignment CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 99: Creating The Main.c File

    CapSense slots (slider slots and buttons), gets the state of the buttons and slider and updates the LCD with the current state. * Parameters: void * Return: void *******************************************************************************/ void main() CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 100 /* Check the state of the buttons and update the LCD and LEDs*/ if (slot_1 && slot_2) CharLCD_PrintString(BUTTON_1_2_STR); LED1_Write(LED_ON); /* Set the LED */ LED2_Write(LED_ON); /* Set the LED */ else if (slot_1 || slot_2) if (slot_1) CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 101 3. From the Build menu, select Build CapSense. PSoC Creator builds the project and displays the comments in the Output dialog box. When you see the message “Build Succeeded” the build is complete. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 102: Configuring And Programming The Psoc Development Board

    Button2 in the top row of the LCD display. The bottom row of the LCD displays the Slider position with a Horizontal Bar graph. 7. Save and close the project. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 103: Appendix A. Board Specifications And Layout

    There are four sections of GPIO, which can be powered to 5V, 3.3V, or VADJ using four headers. It enables the user to power the PSoC GPIOs at different voltages. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 104: A.1.2 Power Supply Configuration Examples

    Figure A-2. Setting a 3.3V Supply from VREG MOVE VDD SELECT SWITCH TO 3.3V SELECT VDD AS SOURCE FOR VDD ANLG SELECT VDD AS SOURCE FOR VDD DIG SELECT VREG AS SOURCE CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 105 SELECT VDD AS SOURCE FOR VDD ANLG SELECT VADJ AS SOURCE FOR VDD DIG SELECT VREG AS SOURCE This helps to separate the digital supply from the analog supply and VDD. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 106: A.1.2.5 Setting A 5V Supply From Vbus

    SELECT VBUS AS SOURCE You can measure current from VREG, VBUS, VDD ANLG, VDD DIG and VDDIOs by removing the jumpers and connecting the meter across the respective header. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 107: A.1.2.7 J1 - Dc Power Jack

    VADJ voltage between 1.25V and 2.3V when the VDD select switch is in the 3.3V position. When the VDD select switch is in the 5V position, turning this variable resistor swings the VADJ voltage between 1.25V and 3.9V. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 108: A.1.3 Prototyping Components

    Header J10 must be jumpered in order to use the serial communications port. Placing a jumper on J10 provides VDD power to the RS232 transceiver. This power can be either 3.3V or 5V, depending on which the position of the VDD select switch. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 109: A.1.3.4 J9 - Full Speed Usb Port

    LCD. The header J12 must be jumpered for the LCD Module to be powered. If J12 is not jum- pered, it removes power from level translator. If the LCD module is removed, the receptacle pins of P18 can be used as port 2. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 110: A.1.4.1 R31 - Lcd Contrast Adjustment

    One side of the switch is tied to the XRES pin of the processor module socket. The other end of the switch is tied to the HW_RESET pin of the processor module socket. Doing this allows the module CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 111: A.1.6.3 U8 - External Mhz Oscillator

    The full speed USB D+ and D- signals are also connected to one of the sockets. Processor reset is connected to P1. Any “no connect” pins are brought out to surface mount test pads. Figure A-8. Mechanical Layout Details for Processor Module Connector CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 112: A.1.7 Expansion Ports

    The fourth is simply I/O and ground exclusively. These sockets can be used to join the processor module I/Os with external I/Os through the use of daughter boards. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 113: A.1.7.1 Expansion Ports A And A

    I/Os as well as ground and voltage pins. It can be used to join processor module I/Os port7, port8, and port9 with external I/Os through the use of daughter boards. It is used for devices with a high I/O count. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 114 Board Specifications and Layout CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 115: Appendix B. Miniprog3

    VTARG of the MiniProg3 is wired exclusively to VDDIO1 of the chip on the module. In order for powercycle programming to work, VTARG would need to be wired to VDDD. CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...
  • Page 116 MiniProg3 CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. ** [+] Feedback...

Table of Contents