CY3235-ProxDet
CapSense
®
Proximity Detection
Demonstration Kit Guide
Doc. #: 001-67986 Rev. *B
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2011. 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.
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.
PSoC
®
and CapSense
®
are registered trademarks and PSoC Designer™ is a trademark of Cypress Semiconductor Corp. All
other trademarks or registered trademarks referenced herein are property of the respective corporations.
Flash Code Protection
Cypress products meet the specifications contained in their particular Cypress PSoC Data Sheets. Cypress believes that its
family of PSoC products is one of the most secure families of its kind on the market today, regardless of how they are used.
There may be methods, unknown to Cypress, that can breach the code protection features. Any of these methods, to our
knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can
guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as "unbreakable."
Cypress is willing to work with the customer who is concerned about the integrity of their code. Code protection is constantly
evolving. We at Cypress are committed to continuously improving the code protection features of our products.
2
CY3235-ProxDet CapSense Proximity Detection Demonstration Kit Guide, Doc. #: 001-67986 Rev. *B
Contents
1. Introduction
1.1
5
1.2
1.3
1.4
1.5
1.6
1.7
Kit Contents .................................................................................................................5
1.1.1 Prerequisites ....................................................................................................5
1.1.2 CY3240-I2USB Bridge .....................................................................................5
PSoC Designer ............................................................................................................6
PSoC Programmer ......................................................................................................6
Bridge Control Panel....................................................................................................6
Additional Learning Resources....................................................................................6
Document History ........................................................................................................7
Documentation Conventions .......................................................................................7
2. Getting Started
2.1
2.2
2.3
2.4
2.5
9
Installation....................................................................................................................9
PSoC Designer ..........................................................................................................13
PSoC Programmer ....................................................................................................14
Bridge Control Panel..................................................................................................14
Install Hardware.........................................................................................................15
3. Kit Operation
3.1
3.2
3.3
3.4
17
Introduction ................................................................................................................17
Hardware Requirements............................................................................................17
Programming Device .................................................................................................17
Bridge Control Panel..................................................................................................18
4. Hardware
4.1
4.2
23
System Block Diagram ..............................................................................................23
Functional Description ...............................................................................................23
4.2.1 PSoC CY8C21434-24LFXI ............................................................................24
4.2.2 ISSP/I2C Connector.......................................................................................26
5. Code Examples
5.1
27
Example_CY3235_CSD_PROX_Detector Project ....................................................27
5.1.1 Project Description .........................................................................................27
5.1.2 Device Configuration......................................................................................28
5.1.3 Firmware Architecture ....................................................................................29
5.1.4 Verify Output ..................................................................................................29
A. Appendix
A.1
A.2
A.3
31
Schematic ..................................................................................................................31
Board Layout .............................................................................................................32
Bill of Materials (BOM) ...............................................................................................34
CY3235-ProxDet CapSense Proximity Detection Demonstration Kit Guide, Doc. # 001-67986 Rev.*B
3
Contents
4
CY3235-ProxDet CapSense Proximity Detection Demonstration Kit Guide, Doc. # 001-67986 Rev.*B
1.
Introduction
Thank you for your interest in the CY3235 CapSense
®
Proximity Detection Demonstration Kit. The
CY3235-ProxDet kit showcases the proximity sensing capability of CY8C21x34 CapSense Control-
ler family of devices. The kit is designed for easy prototyping of a proximity sensor using CapSense
technology. A supporting hardware called I2C-to-USB Bridge is also included in the kit for data
acquisition and tuning of the CapSense Controller. This bridge connects to the CY3235-ProxDet
board via the I2C interface and to the PC via a USB interface. The kit is configured with the
Example_CY3235_CSD_Prox_Detector code example when shipped.
1.1
Kit Contents
The CY3235-ProxDet Kit contains:
■
■
■
■
■
■
Proximity detection demo board with sensing wire
CY3240-I2USB Bridge board
USB A to Mini B cable (3 feet)
Supporting software CD
CY3235-ProxDet quick start guide
Free sample silicon (CY8C24894)
Inspect the contents of kit. If any parts are missing, contact your nearest Cypress sales office for
assistance.
1.1.1
Prerequisites
CY3217-MiniProg1 Programmer
The CY3217-MiniProg1 programmer is required to program the PSoC
®
device and is available for
purchase separately at
http://www.cypress.com/CY3217-MiniProg1.
The MiniProg provides the abil-
ity to program any Cypress PSoC device quickly and easily. It is small, compact, and connects to
your PC using the provided USB 2.0 cable. During prototyping, the MiniProg can be used as an in-
system serial programmer (ISSP) to program PSoC devices on your PCB.
When the MiniProg is connected, you can use the PSoC Programmer software to program (this free
software can either be launched from within PSoC Designer or run as a standalone program). PSoC
Programmer software can be downloaded from
http://www.cypress.com/?rID=38050.
1.1.2
CY3240-I2USB Bridge
The I2USB Bridge allows to test and tune the CapSense module in PSoC by bridging the PC's USB
port to I2C. Populated with the CY8C24894 PSoC device, I2USB Bridge can be connected through
ISSP pins (connector J1) on the proximity detection board.
CY3235-ProxDet CapSense Proximity Detection Demonstration Kit Guide, Doc. # 001-67986 Rev.*B
5