background image

CY3270 PSoC® FirstTouch Guide, Document # 001-15945 Rev. **

23

Technical Reference

You can use the sensors and output devices in any way you want within your project, but you must
make sure to always assign the correct pins within your project. Failure to do so may cause unpre-
dictable or unplanned project results.

Referring to 

Figure 3-4 on page 21

for instance, notice that a capacitor and a resistor connect to

Port P0[1] and P3[1]. These two components form the feedback network required for all CapSense.
When you assign the pinout in your PSoC Express CapSense projects, make certain to assign these
pins to the correct functions.

Summary of Contents for PSoC FirstTouch CY3270

Page 1: ...CY3270 PSoC FirstTouch Guide Document 001 15945 Rev Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 http www cypress com ...

Page 2: ...ent 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 soft ware and or firmware in support of licensee product to be used...

Page 3: ...ng Demonstration 11 2 4 4 CapSense Proximity Sensing Demonstration 12 2 5 Exploring the FTMF Expansion Card Demonstration Projects 13 2 5 1 Opening a Demonstration Project 13 2 5 2 Modifying the New Project 13 2 5 3 Simulating the Project 14 2 5 4 Building the New Project 14 2 5 4 1 Selecting the Target Device 14 2 5 4 2 Specifying the Target Device Pinout 14 2 5 5 Programming the Project 14 2 5 6...

Page 4: ...4 CY3270 PSoC FirstTouch Guide Document 001 15945 Rev Contents ...

Page 5: ...cations Performs expansion card I2C communications Performs expansion card SPI communications There are no other active components inside of the FTPC bridge All of these interfaces run on a sin gle PSoC device Future projects for the FirstTouch Kit allow you to modify the FTPC firmware and try some USB Interface designs of your own The FirstTouch expansion card connects to the FTPC bridge through ...

Page 6: ...his guide uses the Courier New font to distinguish file location and source code examples from regular text File names are presented in italics text Keyboard commands are bolded CY3270 PSoC FirstTouch Guide History Release Date Firmware Revision Guide Version Originator Description of Change 08 15 07 See Note a ARI This guide is a new document a PSoC Express 3 0 generates the firmware ...

Page 7: ...lect Install PSoC Programmer When that is complete select Install PSoC Express When that is complete select Install NET Framework and then select Express Pack 1 for PSoC Express in that order You can also find the latest software ver sions at www cypress com FirstTouch For each installation follow the instructions issued by the installation wizard To copy the kit documents to your computer select ...

Page 8: ...n your hand s proximity to the board 2 4 FTMF Expansion Card Demonstrations The FTMF Expansion Card provided in your kit is capable of supporting a variety of demonstrations Each demonstration has an associated PSoC Express project and data sheet that describes the operation and usage of each of the demonstrations in detail Since the FTMF expansion card has its own PSoC you can remove it from the ...

Page 9: ...to use the CapSense Touch Sensing slider to control LED color Run your finger across the CapSense Touch Sensing slider see Figure 2 1 and notice how the color of the LED color changes The CY8C21434 PSoC that resides on the FTMF Expansion Card detects your finger s position on the CapSense Touch Sensing slider and controls the LEDs output Figure 2 2 CapSense Touch Sensing Demo Schematic ...

Page 10: ...ploring the FTMF Expansion Card Demonstration Projects to simulate build and program the FTMF Expansion Board with the temperature sensing demonstration Touch the temperature sensor see Figure 2 1 and notice how the LED color changes Removing your finger leads to the LED color slowly reverting back to its initial state The CY8C21434 PSoC that resides on the FTMF Expansion Card detects the temperat...

Page 11: ...ansion Card Demonstration Projects to simulate build and program the FTMF Expansion Board with the ambient light sensing demonstration Cover the light sensor see Figure 2 1 on page 8 with the palm of your hand and notice how the intensity of the LED changes Removing your palm leads to the LED intensity reverting back to its initial state The CY8C21434 PSoC that resides on the FTMF Expansion Card d...

Page 12: ...t The project is setup to recalculate this baseline approximately every 30 seconds Also notice how the shape and position of the wire affects the demonstration operation and the proximity sensing dis tance Figure 2 5 CapSense Proximity Sensing Demo Schematic Follow the CapSense Touch Sensing based guidelines in section 2 5 Exploring the FTMF Expansion Card Demonstration Projects to simulate build ...

Page 13: ... to change 4 Double click the MultiFunction Board CapSense Slider entry A dialog box appears prompting you for a project name and location Browse to the location where you want to save this project give it a name and click OK PSoC Express clones the contents of the MultiFunction Board CapSense Slider demonstration project and the Project Design window appears Note Other documentation included with...

Page 14: ...s displays a Device Selection window that allows you to select a target device for your project All FTMF Expansion Card projects must use the 32 pin CY8C21434 as the device target Select this device from the list and click Next Express then continues to compile your project 2 5 4 2 Specifying the Target Device Pinout The Express Pin Editor window appears This window allows you to drag and drop the...

Page 15: ...cts on page 13 demonstrate the entire flow of PSoC Express PSoC Programmer and the First Touch Kit You now know the process and PSoC Express Design Flow to make your own projects or to load another FTMF Expansion Card demonstration project from the Express Design Catalog 2 5 8 Important Things to Remember There are a few important points to remember when working with the FirstTouch kit and project...

Page 16: ...16 CY3270 PSoC FirstTouch Guide Document 001 15945 Rev Getting Started ...

Page 17: ...RES ISSP_CLK ISSP_DAT SPI_MISO SPI_nSS TYPE XRES894 CLK894 DAT894 CLK894 DP DM DAT894 SPI_MISO SDA_MOSI SCL_SCLK DETECT TYPE LED_ALIVE LED_ALIVE GPIO4 GPIO3 GPIO2 GPIO5 P03 P04 P05 P02 V50 V50 V50 V50 V50 V50 0805 R4 27 0805 R1 Zero 0805 R8 100 0805 R13 1K 0805 R12 NO LOAD 0805 C2 0 1 uFd J1 ISSP894 1 2 3 4 5 TP4 0805 R3 100K 0805 R5 27 1206L F1 350mA 0805 C6 0 01 uFd 0805 R14 Zero TP0 RADIAL D1 L...

Page 18: ...ttaching an expansion card all of the necessary connections are made Figure 3 2 is the pinout diagram for the FTPC Expansion Port Refer to this figure as you create projects As you get more accustomed to the FirstTouch Kit and design flow you may find yourself wanting to make your own expansion cards At that time you may want to review the interface sig nals Figure 3 2 FTPC Expansion Port Pinout D...

Page 19: ...cular expansion card to determine the proper power and ground connections and voltage levels The expansion card contain a variety of peripheral components that allow you to experiment with many different sensors and signal types Each of the sensors use dedicated host PSoC IO pins Therefore it is important to note which pins connect the various sensors to the host PSoC These details are provided in...

Page 20: ... that the 8x2 pin expansion header also includes four General Purpose IO connections labeled P02 P05 These are hard wired to four unused Port 0 IO pins on the CY8C21434 host and allow you to easily connect the FTMF Expansion Card to your specific hardware or sensors These IO pins were specifically chosen because they have the ability to operate as analog outputs analog inputs digital inputs digita...

Page 21: ...3 Cap Sense FTMF 1 2 CS GND TV2 0603 R14 560 0603 R17 560 0603 R4 1K PRX1 RECEPTACLE 1x1 1 1 0603 R8 100 PR1 LX1972A 1 2 CSB5 Cap Sense FTMF 1 2 CS GND TV1 0603 R2 560 CSB2 Cap Sense FTMF 1 2 CS GND 0603 R11 10K 1 J1 8X2 PIN HDR RA 1 3 5 7 9 11 4 13 15 6 8 2 16 14 12 10 VEXP_IN GND ISSP_XRES ISSP_CLK ISSP_DAT EXP_TYPE VEXP_OUT MISO SPI_nss SDA MOSI SCL SCLK NC GPIO2 GPIO3 GPIO4 GPIO5 0603 R15 560 ...

Page 22: ...er element 1 6 P3 3 Unused no connect 7 P3 1 CapSense feedback resistor 8 P1 7 I2C clock line SCL 9 P1 5 I2C data line SDA 10 P1 3 Red LED drive 11 P1 1 In system programming clock ISSP_SCLK 12 GND 13 P1 0 In system programming data ISSP_DAT 14 P1 2 Blue LED drive 15 P1 4 Green LED drive 16 P1 6 Alarm buzzer FET drive 17 XRES In system programming reset pin ISSP_XRES 18 P3 0 Unused no connect 19 P...

Page 23: ... pins within your project Failure to do so may cause unpre dictable or unplanned project results Referring to Figure 3 4 on page 21 for instance notice that a capacitor and a resistor connect to Port P0 1 and P3 1 These two components form the feedback network required for all CapSense When you assign the pinout in your PSoC Express CapSense projects make certain to assign these pins to the correc...

Page 24: ...24 CY3270 PSoC FirstTouch Guide Document 001 15945 Rev Technical Reference ...

Reviews: