CY8CKIT-042PSoC® 4 Pioneer Kit GuideDoc. # 001-86371 Rev. *DCypress Semiconductor198 Champion CourtSan Jose, CA 95134-1709Phone (USA): 800.858.1810Pho
10 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DIntroduction1.6 Document Revision History 1.7 Documentation Conventions Table 1-1. R
100 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced TopicsFigure 6-51. Program Finished7. The factory program is now successfu
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 101A. AppendixA.1 CY8CKIT-042 SchematicsPLACE CAPS CLOSE TO POWER PINSPSoC 4Sh_tankNO L
102 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DPSoC 5LP Programmer / DebuggerNO LOADP5LP0_4 to P5LP0_7,P5LP3_2, P5LP3_3 are reserve
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 103ShuntResistorCAPSENSE TUNING CIRCUITRYDefault Loaded For CSDNO LOADShield SettingP4_
104 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DA.2 Pin Assignment TableThis section provides the pin map of the headers and their u
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 105A.2.2 Digilent Pmod Cards Support Header (J5)J4Pin PSoC 4 Signal PSoC 4 Descriptio
106 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DA.2.3 PSoC 5LP GPIO Header (J8)J8 is a 2×6 header that connects PSoC 5LP pins to sup
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 107A.4 Use of Zero-ohm Resistors and No LoadA.5 Error in Firmware/Status Indication in
108 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DA.6 Bill of Materials (BOM)No. Qty Reference Value Description Manufacturer Mfr Part
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 10923 1 J13 2p_jumperCONN HEADER VERT SGL 2POS GOLD3M 961102-6404-AR24 3 Q1,Q2,Q3 PMOS
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 112. Software Installation2.1 Install Kit SoftwareFollow these steps to install the PSo
110 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DA.7 Regulatory Compliance InformationThe CY8CKIT-042 PSoC 4 Pioneer Kit has been tes
12 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DSoftware Installation3. Select the installation type and click Next.Figure 2-2. Inst
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 13Software Installation2.4 Uninstall SoftwareThe software can be uninstalled using one
14 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DSoftware InstallationFigure 2-4. Starter Designs In addition to the example projects
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 15Software Installation2.6 Open an Example Project in PSoC Creator1. Launch PSoC Creato
16 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DSoftware Installation3. The example project opens and displays the project files in t
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 173. Kit OperationThe PSoC 4 Pioneer Kit can be used to develop applications using the
18 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DKit Operation3.1 Pioneer Kit USB ConnectionThe PSoC 4 Pioneer Kit connects to the PC
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 19Kit Operation3.2 Programming and Debugging PSoC 4The kit allows programming and debug
2 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCopyrightsCopyrights© Cypress Semiconductor Corporation, 2013. The information contain
20 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DKit Operation3. The Pioneer Kit’s onboard programmer will enumerate on the PC and in
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 21Kit Operation3.2.2 Using CY8CKIT-002 MiniProg3 Programmer and DebuggerThe PSoC 4 on t
22 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DKit OperationFigure 3-9. MiniProg3 Configuration3.3 USB-UART BridgeThe onboard PSoC
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 23Kit OperationFigure 3-10. Example RX and TX Line Connection of PSoC 5LP and PSoC 4 T
24 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DKit Operation3.4 USB-I2C BridgeThe PSoC 5LP also functions as a USB-I2C bridge. The P
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 25Kit OperationFigure 3-12. KitProg USB-I2C Connected in Bridge Control PanelUSB-I2C i
26 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DKit OperationClick OK to close the window. On closing the warning window, the Action
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 274. Hardware4.1 Board DetailsThe PSoC 4 Pioneer Kit consists of the following blocks:
28 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DHardwareFigure 4-2. PSoC 4 Pioneer Kit Pin Mapping Arduino Compatible I/O Header (J3
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 29Hardware4.2 Theory of OperationThis section provides the block-level description of t
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 3ContentsSafety Information 51. Introduction 71.1 Kit Contents ...
30 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DHardware4.3 Functional Description4.3.1 PSoC 4This kit uses the PSoC 4200 family devi
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 31Hardware❐ Applications Programming Interface (API) component for all fixed-function a
32 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DHardware❐ Four 16-bit configurable timers, counters, and PWM blocks❐ 67-MHz, 24-bit f
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 33Hardware4.3.3 Power Supply SystemThe power supply system on this board is versatile,
34 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DHardware4.3.3.1 Protection CircuitThe power supply rail has reverse-voltage, over-vol
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 35HardwareFigure 4-6. PSoC 4 Current Measurement when Powered Separately When the PS
36 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DHardware4.3.5 Arduino Compatible Headers (J1, J2, J3, J4, and J12 - unpopulated)This
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 37HardwareFigure 4-9. Arduino Compatible Headers4.3.5.1 Additional Functionality of He
38 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DHardware4.3.5.2 Functionality of Unpopulated Header J12The J12 header is a 2×3 header
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 39HardwareFigure 4-11. Digilent Pmod InterfaceSee A.2 Pin Assignment Table on page 104
4 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DContents5. Code Examples 435.1 Project: Blinking LED...
40 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DHardware4.3.8 CapSense SliderThe kit has a five-segment linear capacitive touch slide
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 41Hardware4.3.9 Pioneer Board LEDsThe PSoC 4 Pioneer board has three LEDs. A green LED
42 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DHardware4.3.10 Push ButtonsThe kit contains a Reset push button and a User push butto
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 435. Code ExamplesThe code examples described in this chapter introduce the functionali
44 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode Examples3. Build the code example by clicking Build > Build <Project name&
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 45Code Examples7. After the device is acquired, it is shown in a tree structure below t
46 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode Examples5.1 Project: Blinking LED5.1.1 Project DescriptionThis example uses a pu
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 47Code ExamplesFigure 5-8. Pin Selection for Blinking LED Project5.1.3 Flow ChartFigur
48 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode ExamplesFigure 5-10. PWM Component Configuration Window
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 49Code Examples5.2 Project: PWM5.2.1 Project DescriptionThis code example demonstrates
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 5Safety InformationRegulatory ComplianceThe CY8CKIT-042 PSoC® 4 Pioneer Kit is intended
50 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode ExamplesFigure 5-12. Pin Selection for PWM Project5.2.3 Flow ChartFigure 5-13 s
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 51Code Examples5.2.4 Verify OutputBuild and program the code example, and reset the dev
52 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode ExamplesFigure 5-15. Pin Selection for Deep-Sleep Project5.3.3 Flow ChartFigure
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 53Code Examples5.3.4 Verify OutputBuild and program the code example, and reset the dev
54 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode Examples5.4.1.2 Hardware ConnectionsNo specific hardware connections are require
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 55Code Examples5.4.1.3 Flow ChartFigure 5-19 shows the flow chart of code implemented i
56 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode ExamplesIn this example, the brightness of the green and red LEDs are varied, ba
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 57Code Examples5.4.2.4 Launching Tuner GUIThe Tuner GUI from PSoC Creator should be up
58 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode ExamplesFigure 5-23. Tuner GUI4. Set the I2C communication parameters, as shown
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 59Code Examples5. Click OK to apply the settings.5.4.2.5 Verify Output1. To start the s
6 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DSafety InformationGeneral Safety InstructionsESD Protection ESD can damage boards and
60 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode Examples2. Select a sensor in the Tuning tab. A red outline is seen on the selec
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 61Code ExamplesFigure 5-27. Sensor Parameter Graph
62 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DCode Examples5. Touch a sensor or slider element and see the increase in raw counts.F
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 636. Advanced Topics6.1 Using PSoC 5LP as USB-UART BridgeThe PSoC 5LP serves as a USB-U
64 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics2. Drag and drop a UART (SCB) component to the top design. Figure 6-2.
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 65Advanced Topics4. Configure the UART as shown in the following figures.Figure 6-4. U
66 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced TopicsFigure 6-6. UART Advanced Configuration Window 5. Select P0[4] for U
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 67Advanced Topics6. Place the following code in your main.c project file. The code will
68 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics7. Build the project by clicking Build > Build {Project Name} or [S
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 69Advanced TopicsTo communicate with the PSoC 4 from the terminal software, follow this
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 71. IntroductionThank you for your interest in the PSoC® 4 Pioneer Kit. The kit is desi
70 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced TopicsFigure 6-11. Open New Connection3. A new window opens, where the comm
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 71Advanced TopicsFigure 6-12. Select Communication Port 4. In HyperTerminal, select &a
72 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced TopicsSerial line shows the communication port (COM12) and Speed shows the b
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 73Advanced TopicsFigure 6-14. Select Communication Type in PuTTY5. Enable Echo typed
74 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced TopicsFigure 6-16. Enabling echo of typed characters in PuTTY6. The COM ter
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 75Advanced TopicsFigure 6-18. Data Displayed on PuTTY
76 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics6.2 Using PSoC 5LP as USB-I2C BridgeThe PSoC 5LP serves as a USB-I2C b
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 77Advanced Topics2. Drag and drop an I2C component to the top design.Figure 6-20. I2C
78 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics4. Configure the I2C with the following settings.Figure 6-22. I2C Con
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 79Advanced TopicsFigure 6-24. Pin Selection 6. Place the following code in your main.c
8 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DIntroductionFigure 1-1. Kit ContentsInspect the contents of the kit; if you find any
80 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topicsif(0u != (I2C_I2CSlaveStatus() & I2C_I2C_SSTAT_WR_CMPLT)){/* Read
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 81Advanced TopicsFigure 6-25. Connecting to KitProg/ in BCP9. Open Protocol Configurat
82 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics10.From the BCP, transfer five bytes of data to the I2C device with sl
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 83Advanced TopicsFigure 6-28. NACK Indication in BCP 11.From the BCP, read five bytes
84 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics6.3 Developing Applications for PSoC 5LPThe PSoC 4 Pioneer Kit has an
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 85Advanced Topics1. In PSoC Creator, select New > Project > PSoC 5LP; click the e
86 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced TopicsFigure 6-33. Selecting Device in PSoC Creator 2. Navigate to the Sche
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 87Advanced TopicsSet the dependency of the Bootloadable component by selecting the Depe
88 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced TopicsFigure 6-37. Selecting KitProg Bootloader Elf File3. Develop your cus
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 89Advanced Topics6. To download the project on to the PSoC 5LP device, open the Bootloa
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 9Introduction1.2 PSoC Creator™PSoC Creator is a state-of-the-art, easy-to-use integrate
90 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics8. In the Bootloader Host tool, click the Open File button to browse t
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 91Advanced Topics10.If bootload is successful, the log of the tool displays "Succe
92 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics6.3.2 Building a Normal Project for PSoC 5LPA normal project is a comp
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 93Advanced Topics6. Click on the device and click Connect to program.Notes:1. The 10-pi
94 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics3. The following message appears in the PSoC Programmer results window
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 95Advanced Topics5. After programming has completed, the following message appears: “Fi
96 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced Topics6.4.1.2 Restore PSoC 5LP Factory Program Using USB Host Tool1. Launch
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 97Advanced Topics3. Configure the Pioneer Kit in Service Mode. To do this, while holdin
98 CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *DAdvanced TopicsFigure 6-49. Programming Finished Successfully7. The factory program
CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 99Advanced Topics4. Ensure that MiniProg3 is the selected port in PSoC Programmer and t
Commentaires sur ces manuels