Page 4
Use of Zero-ohm Resistors and No Load ..............124 Error in Firmware/Status Indication in Status LED ..........124 Bill of Materials (BOM) .....................125 Regulatory Compliance Information ................127 Migrating projects across different Pioneer series kits ..........128 Revision History CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
If such interference is detected, suitable mitigating measures should be taken. The CY8CKIT-042 as shipped from the factory has been verified to meet with requirements of CE as a Class A product.
Page 6
Handling Boards CY8CKIT-042 boards are sensitive to ESD. Hold the board only by its edges. After removing the board from its box, place it on a grounded, static free surface. Use a conductive foam pad if available.
Kit Contents The PSoC 4 Pioneer kit contains: PSoC 4 Pioneer board ■ Quick Start Guide ■ USB Standard-A to Mini-B cable ■ Six jumper wires ■ CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 8
Introduction Figure 1-1. Kit Contents Inspect the contents of the kit; if you find any part missing, contact your nearest Cypress sales office for help: www.cypress.com/support. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
PSoC 5LP, USB-UART functionality, and USB-I2C functionality of PSoC 5LP. Appendix on page 116 provides the schematics, pin assignment, use of zero-ohm resistors, ■ troubleshooting, and the bill of materials (BOM). CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
(KBA): Provide design and application tips from experts on the ■ devices/kits. For instance, KBA93541, explains how to use CY8CKIT-049 to program another PSoC 4. For a list of trainings on PSoC Creator, visit www.cypress.com/training. ■ CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
4. Explore the library of 100+ Components 5. Access Component datasheets Figure 1-2. PSoC Creator Features Visit PSoC Creator training page for video tutorials on learning and using PSoC Creator. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
PSoC Creator. Component Datasheets: Right-click a Component and select Open Datasheet. Visit the ■ PSoC 4 Component Datasheets page for a list of all PSoC 4 Component datasheets. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
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. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
5) are installed on your computer. c. CY8CKIT-042 DVD ISO: This file is a complete package, stored in a DVD-ROM image format, which you can use to create a DVD or extract using an ISO extraction program such as ®...
Page 15
2-1. Figure 2-1. Kit Installer Screen 4. Select the directory in which you want to install the files related to the CY8CKIT-042 PSoC 4 Pioneer Kit. Choose the directory and click Next. 5. The CY8CKIT-042 PSoC 4 Pioneer Kit installer automatically installs the required software, if it is not present on your computer.
2. Go to Start > Control Panel > Programs and Features for Windows 7 or Add/Remove Programs for Windows XP and select the Uninstall button. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 20
USB (VBUS) or by an external source such as an Arduino shield. If the board is already powered from another source, plugging in the USB programmer does not damage the board. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Note: The CY8CKIT-002 MiniProg3 is not part of the PSoC 4 Pioneer Kit contents. It can be purchased from the Cypress Online Store. Figure 3-7. PSoC 4 Programming/Debugging Using MiniProg3 CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
PSoC 5LP and PSoC 4. In this example, the PSoC 4 UART has been routed to the J4 header; the user must connect the wires between the PSoC 5LP RX and TX lines available on header J8. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 23
1200, 2400, 4800, 9600, 19200, 38400, 57600, and 115200 Data Bits Parity None Stop Bits Flow Control None File transfer protocols Xmodem, 1K Xmodem, Ymodem, Kermit, and Zmodem (only speeds greater supported than 2400 baud). CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
SPI/RX8 Ports in the BCP. Figure 3-10. Bridge Control Panel To use the USB_I2C functionality, select the KitProg/<serial_number> in the BCP. On successful connection, the Connected and Powered tabs turn green. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Open PSoC Programmer from Start > All Programs > Cypress > PSoC Programmer<version>. When PSoC Programmer opens, a WARNING! window pops up saying that the programmer is currently out of date. Figure 3-12. Firmware Update Warning CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 26
Click the Utilities tab and click the Upgrade Firmware button. On successful upgrade, the Action and Results window displays the firmware update message with the KitProg version. Figure 3-14. Firmware Updated in PSoC Programmer CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
The input voltage is regulated by a low drop-out (LDO) regulator to 3.3 V. You can select between VBUS (5 V) and 3.3 V by suitably plugging the jumper onto the voltage selection header VDD. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Note: The 5-V domain is directly powered by the USB (VBUS). For this reason, this domain is unregulated. Figure 4-4. Power Supply Block Diagram with Protection Circuits I/O Header 3.3V MOSFET based Protection Ckt PSoC 4 PSoC 5LP P4 10pin P5LP 10pin P5LP I/O Protection Debug Debug Header CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 34
Remove jumper J13. Connect the positive terminal of voltage supply to the positive terminal of ❐ the ammeter and the negative terminal of the ammeter to the lower pin of J13. Figure 4-6 shows the required connections. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
The kit allows programming and debugging of the PSoC 4 in two modes: Using the Onboard PSoC 5LP Programmer and Debugger ■ Using CY8CKIT-002 MiniProg3 Programmer and Debugger ■ CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Similarly, the PSoC 4 pin P1[0] is connected to both pin 17 of the J2 header and pin 7 of the J4 header. Therefore, when using P0[0] or P1[0] from either the J2 or J4 header, there should not be any external signal connected to the other header. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 37
PSoC 4 are brought to this header. The port 1 pins additionally connect to the onboard CapSense slider through 560- resistors. When the CapSense feature is not used, remove these resistors to ensure a better performance with these pins. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Pmod daughter cards. Refer to the “No Load Components” section of A.6 Bill of Materials (BOM) on page 125 for the header part number. Figure 4-10. Pmod Connection CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Figure 4-16. Status LED and Power LED P5LP_VDD R3 560 ohm P5LP3_1 0805 0805 330 ohm Status LED Green Power LED Figure 4-17. RGB LED 2.2K 1.5K P1_6 P0_2 P4_VDD 1.5K P0_3 RGB LED CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Note: The PSoC 4 Reset pin (XRES) has an internal pull-up resistor. However, an external pull-up resistor R10 is connected to the PSoC 4 Reset pin on the kit, which is optional and required only in a noisy system. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Follow these steps to open and program code examples: 1. Launch PSoC Creator from Start > All Programs > Cypress > PSoC Creator<version> > PSoC Creator <version>. 2. On the Start page, click CY8CKIT-042 under Start > Kits. A list of code examples appears, as shown in Figure 5-1.
Page 44
6. If the device is yet to be acquired, the Select Debug Target window will appear. Select KitProg/ <serial_number> and click Port Acquire, as shown in Figure 5-4. Figure 5-4. Acquire Device from PSoC Creator CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 45
Now, click the Connect button. Figure 5-5. Connect Device from PSoC Creator 8. Click OK to exit the window and start programming. Figure 5-6. Program Device from PSoC Creator CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
µC/Probe, you can test your embedded design effortlessly, with a few mouse clicks. Cypress provides pre-designed µC/Probe project (workspace) files for CapSense and PWM code examples associated with the CY8CKIT-042 kit. These projects can be found in the kit installation directory in the following folder: <Install_Directory>\Cypress\CY8CKIT-042 PSoC 4 Pioneer Kit\1.0\uCProbe...
Open Blinking LED.cydwr in the Workspace Explorer and select the suitable pin. Table 5-1. Pin Connection Pin Name Port Name Pin_BlueLED P0_3 (Blue) Figure 5-9. Pin Selection for Blinking LED Project CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
LED. Change the period and compare value in the PWM component, as shown in Figure 5-11. Rebuild and reprogram the device to vary the frequency and duty cycle. Figure 5-11. PWM Component Configuration Window CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Open PWM.cydwr in the Workspace Explorer and select the suitable pins. Table 5-2. Pin Connections Pin Name Port Name Pin_RedLED P1_6 (Red) Pin_GreenLED P0_2 (Green) Pin_BlueLED P0_3 (Blue) Figure 5-13. Pin Selection for PWM Project CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Build and program the code example, and reset the device. Observe the RGB LED cycles through the following color pattern: violet > indigo > blue > green > yellow > orange > red (VIBGYOR) CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
SWD in the System tab of the .cydwr file, as shown in Figure 5-17. Disabling the debug port dis- ables the ability to debug the code example through SWD. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Deep-Sleep mode and enter Active mode. The device goes back to Deep-Sleep mode after one second. Note: When the device is in Deep-Sleep mode, the programmer must reacquire the device before programming can start. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
In this code example, the brightness of the green and red LEDs are varied, based on the position of the user’s finger on the CapSense slider. Figure 5-19. PSoC Creator Schematic Design of CapSense Code Example Note: The EzI2C component is not used when tuning is disabled. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 55
Pin_RedLED P1_6 (Red) EZI2C_1:scl P3_0 (SCL) EZI2C_1:sda P3_1 (SDA) Note: The I2C communication lines are not used when tuning is disabled. Figure 5-20. Pin Selection for CapSense Code Example CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 56
CapSense slider. When the finger is on segment 5 (P1[5]) of the slider, the green LED is brighter than the red LED; when the finger is on segment 1 (P1[1]) of the slider, the red LED is brighter than the green LED. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
No specific hardware connections are required for this code example because all connections are hard-wired on the board. Open CapSense.cydwr in the Workspace Explorer and select the suitable pins. Table 5-4 Figure 5-20 for the CapSense project pin connections. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 58
1. Go to the project's TopDesign.cysch file. Figure 5-23. Top Design File 2. To open the tuner, right-click on the CapSense_CSD component in PSoC Creator and click Launch Tuner. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 60
3. The Tuner GUI opens. Click Configuration to open the configuration window. Figure 5-25. Tuner GUI 4. Set the I2C communication parameters, as shown in the following figure. Figure 5-26. I2C Communication 5. Click OK to apply the settings. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 61
Code Examples 5.6.2.5 Verify Output 1. To start the scanning and communication process, click Start. Figure 5-27. Start Communication CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 62
On/Off status for each sensor are represented as a graph. Click the Graphing Properties tab on the bottom-right to select the slider element for which the CapSense results are to be shown in the Graphing tab. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 63
Code Examples 4. Select the sensor parameters to observe, as shown in the following figure. The graph of the selected parameters is shown. Figure 5-29. Sensor Parameter Graph CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 64
Code Examples 5. Touch a sensor or slider element and see the increase in raw counts. Figure 5-30. Raw Count Increase CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Users who have a Windows operating system that does not have HyperTerminal can use an alternate terminal software such as PuTTY. 1. Create a new CY8CKIT-042 (PSoC 4200) Kit project in PSoC Creator, as shown in the following figures. Select a specific location for your project and name the project as desired. You must select the appropriate target hardware (kit) for this project.
Page 67
3. To configure the UART, double-click or right-click on the UART component and select Configure. Figure 6-5. Open UART Configuration Window 4. Change the component name from UART_1 to UART. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 68
Advanced Topics 5. Configure the UART as shown in the following figures. Figure 6-6. UART Configuration Window Figure 6-7. UART Basic Configuration Window CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 69
6. Click Apply and then OK to save the changes made to UART configuration. 7. Select P0[4] for UART RX and P0[5] for UART TX in the Pins tab of <Project.cydwr>. Figure 6-9. Pin Selection CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 70
= UART_UartGetChar(); if(0u != ch) /* Send the data through UART. This functions is blocking and waits until there is an entry into the TX FIFO. */ UART_UartPutChar(ch); CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 71
UART component. An SCB implementation of UART will route the RX and TX pins to either one of the following subsets: (P0[4], P0[5]) or (P3[0],P3[1]) or (P4[0],P4[1]). CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 72
1. Connect USB Mini B to J10. The kit enumerates as a KitProg USB-UART and is available under the Device Manager, Ports (COM & LPT). A communication port is assigned to the KitProg USB-UART. Figure 6-12. KitProg USB-UART in Device Manager CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 73
2. Open HyperTerminal and select File > New Connection and enter a name for the new connec- tion and click OK. For PuTTY, double-click the putty icon and select Serial under Connection. Figure 6-13. Open New Connection HyperTerminal PuTTY CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 74
USB-UART) in Connect using and click OK. In PuTTY enter the COMX in Serial line to connect to. This code example uses COM12. Figure 6-14. Select Communication Port HyperTerminal PuTTY CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 75
Click Session and select Serial under Connection type. Serial line shows the communication port (COM12) and Speed shows the baud rate selected. Click Open to start the communication. Figure 6-15. Configure the Communication Port HyperTerminal PuTTY CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 76
HyperTerminal. In PuTTY, enable the Force on under Terminal > Line discipline options to display the typed characters on the PuTTY. Figure 6-17. Enabling Echo of Typed Characters in HyperTerminal CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 77
Figure 6-18. Enabling Echo of Typed Characters in PuTTY 6. The COM terminal software displays both the typed data and the looped back data from the PSoC 4 UART. Figure 6-19. Data Displayed on HyperTerminal CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
The following steps describe how to use the USB-I2C bridge, which can communicate between the BCP and the PSoC 4. 1. Create a new CY8CKIT-042 (PSoC 4200) Kit project in PSoC Creator, as shown in the following figures. Select a specific location for your project and name the project as desired. You must select the appropriate target hardware (kit) for this project.
Page 84
!= (I2C_I2CSlaveStatus() & I2C_I2C_SSTAT_RD_CMPLT)) /* Clear the read buffer pointer so that the next read operations starts from index 0 */ I2C_I2CSlaveClearReadBuf(); /* Clear the read status bits */ I2C_I2CSlaveClearReadStatus(); CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 85
9. Open Protocol Configuration from the Tools menu and select the appropriate I2C Speed. Make sure the I2C speed is the same as the one configured in the I2C component. Click OK to close the window. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 86
A '+' indication after each byte indicates that the transaction was successful and a '–' indicates that the transaction was a failure. Figure 6-32. Entering Commands in BCP CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 87
Figure 6-34. Read Data Bytes from the BCP Note: Refer Help Contents under Help in BCP or press [F1] for details of I2C commands. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
The bootloader hex file is available in the kit files or can be downloaded from the webpage. The hex files are included in the following kit installer directory: <Install_Directory>\CY8CKIT-042 PSoC 4 Pioneer Kit\ <version>\Firmware\Programmer\KitProg_Bootloader Figure 6-36. KitProg Bootloader Hex File Location CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 89
Type > Bootloadable. Beginning with PSoC Creator 3.2, the Application Type option is removed from the New Project window and the Build Settings menu. PSoC Creator 3.2 and later versions automatically recognize the application type from the TopDesign schematic. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 90
3. Choose Empty schematic in the Select project template dialog, as shown in Figure 6-39. Click Next. Figure 6-39. Choose Empty Schematic 4. In the Create Project dialog, choose the workspace name, location, and project name (Figure 6-40). Click Finish. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 91
Figure 6-40. Create Project Dialog 5. Navigate to the Schematic view and drag and drop a bootloadable component on the top design. Figure 6-41. Bootloadable Component in Component Catalog CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 93
4. Develop your custom project. 5. The NVL setting of the Bootloadable project and the KitProg_Bootloader project must be the same. The KitProg_Bootloader.cydwr system settings is shown in the following figure. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 94
100 ms, the PSoC 5LP enters into bootloader. The PSoC 5LP also enters into bootloader when the power supply jumper for the PSoC 4 (J13) is removed and subsequently the USB Mini-B connector is plugged into header J10. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 95
10.In the Bootloader Host tool, click the Open File button to browse to the location of the bootload- able file (*.cyacd). Figure 6-49. Opening Bootloadable File from Bootloader Host Tool CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 96
4. The status LED does not function unless used by the custom project. ® For additional information on bootloaders, refer to Cypress application note, AN73503 - PSoC HID Bootloader. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
6.3.2 Building a Normal Project for PSoC 5LP A normal project is a completely new project created for the PSoC 5LP device on the CY8CKIT-042. Here the entire flash of the PSoC 5LP is programmed, overwriting all bootloader and programming code.
Page 99
4. When a normal project is programmed onto the PSoC 5LP, the initial capability of the PSoC 5LP to act as a programmer, USB-UART bridge, or USB-I2C bridge in not available. 5. The status LED does not function unless used by the custom project. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Advanced Topics PSoC 5LP Factory Program Restore Instructions The CY8CKIT-042 PSoC 4 Pioneer Kit features a PSoC 5LP device that comes factory-programmed as the onboard programmer and debugger for the PSoC 4 device. In addition to creating applications for the PSoC 4 device, you can also create custom applications for the PSoC 5LP device on this kit.
Page 101
4. Switch to the Utilities tab in PSoC Programmer and press the Upgrade Firmware button. Unplug all other PSoC programmers (such as MiniProg3 and DVKProg) from the PC before pressing the Upgrade Firmware button. Figure 6-56. Upgrade Firmware CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 102
Figure 6-57. Firmware Update Complete 6. The factory program is now successfully restored on the PSoC 5LP. It can be used as the pro- grammer/debugger for the PSoC 4 device. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 103
1. Launch the Bootloader Host tool from Start > Cypress > PSoC Creator. 2. Using the File > Open menu, load the Kit Prog.cyacd file, which is installed with the kit software. The default location for this file is: <Install_Directory>\CY8CKIT-042 PSoC 4 Pioneer Kit\<version>\Firmware\Programmer\KitProg\KitProg.cyacd Figure 6-58.
Page 104
5. Click the Program button (or menu item Actions > Program) to restore the factory-program by bootloading it onto the PSoC 5LP. 6. After programming has completed, the following message appears: “Programming Finished Suc- cessfully”. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
1. Launch PSoC Programmer 3.27.1 or later from Start > Cypress > PSoC Programmer. 2. Use the File > Open menu to load the KitProg.hex factory program hex file, which is shipped with the kit. The default location for this file is: <Install_Directory>\CY8CKIT-042 PSoC 4 Pioneer Kit\<version>\Firmware\Programmer\KitProg 3.
Page 106
If the board is not powered over USB, select the Power Cycle programming mode. Figure 6-61. Select MiniProg3 5. When ready, press the Program button (or File > Program) to program the PSoC 5LP device. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Manual. To learn more about the µC/Probe, visit: micrium.com/tools/ucprobe/overview/. In Micrium µC/Probe, the Cypress KitProg is being supported as a means of communication to the target device connected to PC. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
CapSense Code Example To visualize the output of CapSense project using µC/Probe tool, follow the steps given below: 1. Program the CapSense code example on CY8CKIT-042 by following steps 1–8 in chapter 5. 2. Download and install µC/Probe tool from https://www.micrium.com/download/ucprobe-win-...
Page 109
5. Next, add a RGB Palette from Writable Controls in Toolbox on to the Datascreen1. Figure 6-65. Adding RGB Palette Control 6. The DataScreen1 looks as below after adding both the controls. Figure 6-66. DataScreen with Slider and RGB controls CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 110
10.Now, expand the main.c file to view the global variables defined in main.c file. Figure 6-68. Global variables in Symbol Browser CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 111
11. Drag and drop the global variable µcSlider on to the custom slider control to see the slider output. Similarly, drag and drop the global variable µcARGB on to the RGB Palette to see the RGB output. Figure 6-69. Assigning slider output to Custom Slider control CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 112
Advanced Topics Figure 6-70. Assigning RGB output to RGB Palette control 12.Connect the CY8CKIT-042 to the computer. Click the Settings button in the µC/Probe tool. Figure 6-71. Settings Button in µC/Probe CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 113
13.In the µC/Probe setting window, select the Cypress PSoC Prog and select ‘KitProg/<Kit Prog number>’ from the drop down box for Port and click OK to start communication between the CY8CKIT-042 and the µC/Probe tool. Figure 6-72. µC/Probe Settings CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
The µC/Probe project for PWM project is already created and packaged along with kit content. The µC/Probe projects can be found in the installation folder at <Install_Directory>\CY8CKIT- 042 PSoC 4 Pioneer Kit\<version>\µCProbe. 1. Program the PWM code example on CY8CKIT-042 by following steps 1–8 in 5.4 PWM on page 2.
Page 115
3. Browse and point to the PWM.elf file to load the symbols (global variables) from the PWM code example. 4. Connect the CY8CKIT-042 to PC and follow steps 12 to 14 described above to start running the datascreen. 5. The PWM compare values are displayed graphically and the RGB palette displays the RGB LED output on the datascreen.
PSoC 5LP pro- successfully grammer. Note: LED status is not applicable when a custom project is running in PSoC 5LP. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
CONN HEADER FMAL 12PS.1" DL Sullins Connector 6x2 RECP PPPC062LFBN-RC GOLD Solutions CONN HEADER VERT SGL 3POS 3p_jumper 961103-6404-AR GOLD CONN USB MINI AB SMT RIGHT USB Mini B TE Connectivity 1734035-2 ANGLE CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 126
68QFN PSoC 5LP chip for USB debug Cypress Semicon- (CY8C5868L CY8C5868LTI-LP039 channel and USB-Serial interface ductor TI-LP039 ) No Load Components CAP CERAMIC 1.0UF 25V X5R 0603 1.0 uFd Taiyo Yuden TMK107BJ105KA-T CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Cypress Semicon- Kit QR code ductor Regulatory Compliance Information The CY8CKIT-042 PSoC 4 Pioneer Kit has been tested and verified to comply with the following electromagnetic compatibility (EMC) regulations: EN 55022:2010 Class A - Emissions ■ EN 55024:2010 Class A - Immunity ■...
Page 129
P1[0] – – P0[7] – – – P1[1] P3[5] * These pins are also used for on-board peripherals. See the tables in the On-Board Peripherals section below for details. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Page 130
P1[0] P1[0] P1[1] P5[3] P2[7] P1[0] P5[5] P2[0] * These pins are also used for on-board peripherals. See the tables in the On-Board Peripherals section below for connection details. CY8CKIT-042 PSoC® 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *I...
Need help?
Do you have a question about the CY8CKIT-042 and is the answer not in the manual?
Questions and answers