CY8CKIT-003_PSoC_3_FirstTouch_Starter_Kit_Guide.pdf

CY8CKIT-003
PSoC® 3 FirstTouch™ Starter Kit Guide
Document # 001-49613 Rev. *H
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, 2009-2012. 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 Designer™, PSoC Creator™, and Programmable System-on-Chip™ are trademarks and PSoC® is a registered
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 Datasheets. 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
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Contents
1. Introduction
1.1
1.2
1.3
1.4
1.5
Welcome ......................................................................................................................5
Kit Contents .................................................................................................................5
Additional Learning Resources....................................................................................6
1.3.1 Beginner Resources.........................................................................................6
1.3.2 Engineers Looking for More .............................................................................6
1.3.3 Learning from Peers.........................................................................................6
Document Revision History ........................................................................................7
Documentation Conventions .......................................................................................7
2. Getting Started
2.1
3.2
3.3
4.2
4.3
4.4
4.5
11
Install Hardware.........................................................................................................11
3.1.1 Hardware Jumpers.........................................................................................11
Install Software ..........................................................................................................12
Verify Kit Version .......................................................................................................13
4. Code Examples
4.1
9
Hardware .....................................................................................................................9
2.1.1 Protection Circuit............................................................................................10
2.1.2 ESD Protection on USB Lines........................................................................10
2.1.3 Battery Specifications.....................................................................................10
3. Installation
3.1
5
15
PSoC Rocks ..............................................................................................................15
4.1.1 Open the PSoC Rocks Project.......................................................................15
4.1.2 Modify PSoC Rocks Project ...........................................................................15
4.1.3 Build, Program, and Run the PSoC Rocks Project ........................................16
4.1.4 Schematic Design PSoC Creator...................................................................17
4.1.5 How the PSoC Rocks Project Works .............................................................18
4.1.6 PCB Schematic ..............................................................................................20
Bubble Level Emulator...............................................................................................21
4.2.1 How the Bubble Level Emulator Project Works .............................................22
4.2.2 PCB Schematic ..............................................................................................23
ThermistorTemperatureSense ...................................................................................24
4.3.1 How the ThermistorTemperatureSense Project Works ..................................24
4.3.1.1 Temperature Sensing Design Principle ...........................................25
4.3.2 PCB Schematic ..............................................................................................26
CapSense Slider ........................................................................................................27
4.4.1 How the CapSense Slider Project Works.......................................................27
4.4.2 PCB Schematic ..............................................................................................29
Proximity Sensor........................................................................................................30
4.5.1 How the Proximity Sensor Project Works ......................................................31
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
3
Contents
4.5.2
PCB Schematic..............................................................................................32
5. Technical Reference
5.1
5.2
4
33
PSoC 3 FirstTouch Starter Kit Schematic .................................................................33
5.1.1 Hardware Jumpers......................................................................................... 34
5.1.2 Board Layout ................................................................................................. 35
5.1.3 Bill of Material (BOM) .................................................................................... 36
PSoC 3 Pin Assignment on PSoC 3 FirstTouch Starter Kit Board ............................ 39
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
1.
1.1
Introduction
Welcome
Thank you for your interest in the CY8CKIT-003 PSoC® 3 FirstTouch™ Starter Kit. This kit is
designed to introduce you to the PSoC programmable system-on-chip design methodology and
Cypress's new PSoC 3 architecture. This full-featured starter kit ships with an array of sensors, I/Os,
projects, and software to quickly get you up to speed with PSoC Creator™ and our powerful design
methodology so you can easily evaluate PSoC and see what values the solution can provide.
This kit, in addition to the new PSoC 3 architecture, features the following:
■
PSoC Creator development software with an integrated, free-edition Keil C51 Compiler
■
USB-based serial wire debugging (SWD) protocol programmer and debug interface
■
Accelerometer analog sensor
■
Thermistor analog sensor
■
Proximity analog sensor
■
CapSense® analog touch-sensing interface
■
28-pin general purpose I/O pins
■
12-pin wireless module header
This guide provides instructions on how to easily evaluate the PSoC 3 architecture and PSoC Creator design methodology through five code examples.
If you have questions about or need help with this kit, visit our online technical support center at
http://www.cypress.com/go/support for support options, or contact your local Cypress sales
representative or authorized distributor.
1.2
Kit Contents
PSoC 3 FirstTouch Starter Kit contains:
■
Evaluation board
■
Quick start guide
■
Kit CD/DVD
■
USB A to mini B cable
■
Proximity wire (for use as proximity detection antenna)
■
9 V battery
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
5
Introduction
1.3
Additional Learning Resources
Visit http://www.cypress.com/go/psoc3 for additional learning resources in the form of datasheets,
technical reference manual, and application notes.
1.3.1
Beginner Resources
AN54181 - PSoC 3 - Getting Started with a PSoC 3 Design Project
PSoC Creator Training
1.3.2
Engineers Looking for More
AN54460 - PSoC 3 and PSoC 5 Interrupts
AN52705 - PSoC 3 and PSoC 5 - Getting Started with DMA
AN52701 - PSoC 3 - How to Enable CAN Bus Communication
AN54439 - PSoC 3 and PSoC 5 External Crystal Oscillators
AN52927 - PSoC 3: Segment LCD Direct Drive
Cypress continually strives to provide the best support. Click here to view a growing list of
application notes for PSoC 3 and PSoC 5.
1.3.3
Learning from Peers
Cypress Developer Community Forums
6
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Introduction
1.4
Document Revision History
Table 1-1. Revision History
**
PDF
Creation
Date
02/19/09
*A
06/19/09
*B
07/28/09
KKU/VED
KKU/
AESA
KKU
*C
04/20/11
SASH
Updated to PSoC Programmer 3.12.3
*D
*E
*F
12/16/11
01/31/11
05/03/12
SASH
RKAD
SASH
Updated to PSoC Creator 1.0 Production
Updated PSoC Creator release.
No change. Sunset review
Added the Additional Resources section
Added Safety Information chapter on page 5.
Revision
Origin of
Change
Description of Change
New kit user guide.
Updated Guide to the latest FTK Board Revision
Updated Guide to the latest FTK Board Revision
Updated PSoC Rocks schematic
Updated Install Software on page 12 (Added a note at the end of the
section).
*G
07/19/2012
SASH
Updated ThermistorTemperatureSense on page 24 (Updated How the
ThermistorTemperatureSense Project Works on page 24 (Updated
Temperature Sensing Design Principle on page 25)).
Added Regulatory Compliance Information on page 43.
Replaced all instances of CD with CD/DVD across the document.
Updated board images.
*H
09/06/2012
SASH
Added 2.1.1 Protection Circuit and 2.1.2 ESD Protection on USB Lines
Updated 3.3 Verify Kit Version
1.5
Documentation Conventions
Table 1-2. Document Conventions for Guides
Convention
Usage
Courier New
Displays file locations, user entered text, and source code:
C:\ ...cd\icc\
Italics
Displays file names and reference documentation:
Read about the sourcefile.hex file in the PSoC Designer User Guide.
[Bracketed, Bold]
Displays keyboard commands in procedures:
[Enter] or [Ctrl] [C]
File > Open
Represents menu paths:
File > Open > New Project
Bold
Displays commands, menu paths, and icon names in procedures:
Click the File icon and then click Open.
Times New Roman
Displays an equation:
2+2=4
Text in gray boxes
Describes Cautions or unique functionality of the product.
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
7
Introduction
8
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
2.
2.1
Getting Started
Hardware
The PSoC 3 FirstTouch Starter Kit contains these components and sensors.
Figure 2-1. PSoC 3 FirstTouch Starter Kit
2. Proximity Sensor Connector
15. General Purpose Switch
1. CY8C3866AXI 3. Accelerometer
PSoC 3 Device
14. Voltage
Regulator
4. CapSense Slider
13. Jumper J4
12. Jumper J1
5. Eight Red LED Outputs
6. Thermistor
11. 9V Battery
Header
7. 12-Pin Wireless
Header
10. USB Mini B
Port
9. CY7C68013A
FX2LP High Speed USB
8. 28-Pin External
I/O (on reverse)
The components indicated in Figure 2-1 are:
1. PSoC 3 100-pin TQFP (Cypress CY8C3866AXI-040 TQFP100)
2. Proximity sensor connector (Samtec Inc, BCS-101-L-S-HE)
3. Three-axis accelerometer (Kionix, KXSC7-2050)
4. Five-segment CapSense slider
5. Bank of eight LEDs (also referred as LED display in this user guide)
6. Thermistor (Murata, NCP21XV103J03RA)
7. Wireless expansion connector
8. General-purpose expansion connector (22 GPIO, 2 VDD, 2 GND, 2 SIO)
9. USB programming and debugging interface (Cypress CY7C68013A-56LFXC)
10. USB connector
11. 9-V DC battery holder
12. Jumper J1 Vddio power source select
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
9
Getting Started
13. Jumper J4 voltage regulator source select
14. Voltage regulator (Zetex Inc, ZLDO330)
15. General-purpose push button switch
The VDDIO1 and VDDIO3 power domains are always powered by 3.3 V. The VDDIO0 and VDDIO2
can range from 1.8 V to 5 V depending on the J1 and J4 jumper settings. See Hardware Jumpers on
page 34 for more details.
Note Wireless modules such as ArtaFlex Radio Modules or Cypress Low-power Radio modules
such as CYWM6934/35 (not provided with the kit) can be plugged into the Wireless expansion connector on the board. You can design your own radio module using the Cypress CyFI low-power chip
CYRF7936-40LXI.
2.1.1
Protection Circuit
The protection circuit consists of an 800 mA positive temperature coefficient (PTC) resettable fuse
and a 5.6 V/5 W Zener diode for VDDIO pins on header J2 and J3. When an external voltage more
than 5.6 V is applied, the Zener diode enters the break down region and draws large current. Large
current passing through the PTC fuse cuts off the power line and resets when power supply is disconnected as current or temperature of the fuse reduces. When a revere voltage is applied, the
Zener diode is forward-biased (Vf= 0.7 V) and a closed path is available through the fuse. Hence, a
large current is drawn from the supply leading to a rise in the temperature of fuse. This cuts off the
supply, protecting the PSoC from reverse voltage. Similarly, when a short circuit occurs, the fuse
opens or breaks within 2 ms; this is because a large current is drawn through the fuse, which
increases the temperature of the fuse and protects the regulator. The protection circuit allows twoway power supply at the header allowing you to power externally from 1.8 V to 5.5 V or use the
onboard power supply for powering external components with maximum of around 0.324 V series
drop at 270 mA current across the PTC fuse as the maximum fuse resistance is 1.2 .
2.1.2
ESD Protection on USB Lines
As a best practice, USB lines are protected from ESD up to ±8 kV contact / ±15 kV air discharge by
using the CD143A-SR05LC integrated chip.
2.1.3
Battery Specifications
Use batteries with the following specifications:
■
Battery size: 9 V (6LR61)
■
Output voltage: 9 VDC
■
Type: Non-rechargeable alkaline consumer batteries
■
RoHS status: RoHS compliant
■
Lead free status: Pb-free
Some recommended part numbers include 6LR61XWA/1SB (Panasonic), MN1604 (Duracell), and
6LR61 (Energizer).
10
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
3.
3.1
Installation
Install Hardware
This section shows you how to use the PSoC 3 FirstTouch Starter Kit.
Note This kit comes with a factory programmed demonstration to display "PSoC Rocks!" message
on the LED display when the board is waved.
1. Unpack the PSoC 3 FirstTouch Starter Kit.
2. Connect a 9-V DC battery to the battery connector on the kit board.
3. Hold the board and battery exposing the LEDs. Then, continuously wave the board from side to
side in the plane of the PCB (shown in Figure 3-1).
4. As you wave the board, the rasterized image of the message "PSoC Rocks!" appears, as shown
in the following figure.
5. Keep waving. The message changes every few seconds.
Figure 3-1. Rasterized Image of "PSoC Rocks!"
3.1.1
Hardware Jumpers
There are two jumpers for power configuration. All examples are run with the default setup of 3.3 V
operation. This requires J1-2 to connect to J1-3 and J4-2 to connect to J4-3. For all other configurations, see section Hardware Jumpers on page 34.
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
11
Installation
3.2
Install Software
When installing the PSoC 3 FirstTouch Starter Kit, the installer checks if the prerequisites, PSoC
Creator, PSoC Programmer, Windows Installer, Windows.NET, Acrobat Reader, and Keil C51
Compiler, are installed in your PC. If these applications are not installed, then the installer prompts
you to install them.
1. Insert the kit CD/DVD into the your PC. The CD/DVD is designed to automatically open an
installation dialog (see Figure 3-3). If it does not automatically open, manually open this by
running cyautorun.exe on the kit CD/DVD.
Figure 3-2. Auto Run File View
2. The kit CD/DVD installation dialog prompts you to open this file or begin installing the development environment software. Click the Install PSoC 3 FirstTouch Starter Kit menu item.
Figure 3-3. Installation Dialog.
3. As specified, this installation process first determines if you have all prerequisite software. Follow
the on-screen dialogs to complete all required installations. After following these steps, you must
have the following software installed:
a. PSoC Creator 1.0 SP1 or later
b. PSoC Programmer 3.12.4 or later
c. Keil C51 Compiler (Cypress edition)
12
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Installation
d. GNU GCC Compiler (for PSoC 5 development)
e. PSoC 3 FirstTouch Starter Kit example projects and documentation
4. Following the software installation, verify if you have all hardware and drivers set up for the
PSoC 3 FirstTouch Starter Kit by connecting the kit board to your PC via its USB interface.
Because this is the first time you have connected this board to this PC, initial driver installations
occur. Follow any on-screen dialogs that appear to complete the installation process.
5. Now, verify your installation and setup by opening PSoC Programmer with the kit board attached
over USB. Open PSoC Programmer. In the port selection frame, you should see the PSoC 3
FirstTouch starter kit. If you do, you have successfully installed all required software and drivers
to begin your PSoC 3 evaluation. Congratulations!
6. Close PSoC Programmer.
7. Open PSoC Creator and continue to the next section to experiment with the included code
examples.
Note Important for Win7 and Vista users: Rename the *_tools.ini file in <Install_Directory>:\PSoC
Creator\<version>\PSoC Creator\import\keil\pk51\<version> to “tools.ini” for the Keil registration to
be successful.
3.3
Verify Kit Version
To know the kit revision, look for the white sticker on the bottom left on the reverse of the kit box. If
the revision reads CY8CKIT-003B Rev **, then, you own the latest version.
To upgrade CY8CKIT-003/CY8CKIT-003A to CY8CKIT-003B, you can purchase our latest kits at
www.cypress.com/go/CY8CKIT-003.
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
13
Installation
14
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
4.
4.1
Code Examples
PSoC Rocks
The PSoC Rocks project displays a rasterized image of the user defined message ("PSoC Rocks!")
using persistence of vision. Waving the circuit board back and forth quickly in the plane of the board
generates the message.
Note On connecting the board to PC for the first time, a Windows Logo testing warning may pop up.
Please ignore this warning by clicking “Continue Anyway”.
4.1.1
Open the PSoC Rocks Project
1. Click on the PSoC Rocks code example from Examples and Kits > Kits on the Start Page of
PSoC Creator.
2. Create a folder in the desired location and click OK.
3. The project opens up in PSoC Creator and is saved in that folder.
4. Build the project to generate the.hex file.
Figure 4-1. Open PSoC Rocks from Examples and Kits
4.1.2
Modify PSoC Rocks Project
1. From the Workspace Explorer, open the main.c file, as shown in Figure 4-2.
2. Replace the "PSoC Rocks!" string in the DisplayString[ ] [ ] array of strings with "Cypress" or any
other message(s) up to 25 characters. By default, it displays the following messages one by one:
❐
PSoC Rocks!
❐
Customize Message
❐
By Installing
❐
PSoC Creator
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
15
Code Examples
❐
From Kit CD/DVD
❐
Open Project
Figure 4-2. main.c File View
3. The number of times each string in the array is displayed can be adjusted by modifying the
respective entry in the StringCycles[ ] array. Valid entries are 1 to 255.
4.1.3
Build, Program, and Run the PSoC Rocks Project
1. Build the project by selecting Build Build PSoCRocks.
Figure 4-3. Build PSoCRocks
2. Connect the PSoC 3 FirstTouch Starter Kit board to your PC by using a USB cable.
3. Click the Program icon.
Figure 4-4. Program
4. The project is programmed successfully, as shown in Figure 4-5.
16
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Code Examples
Figure 4-5. Program Successful
5. When the download is complete, remove the USB cable from the PSoC 3 FirstTouch Starter Kit
board and connect a 9-V battery to the battery connector.
6. Follow the steps in section Install Hardware on page 11 to see your message displayed.
4.1.4
Schematic Design PSoC Creator
To view this project's customized hardware configuration, open the TopDesign.cysch file located in
the Workspace Explorer window. PSoC Creator's schematic design entry methodology, using predefined peripheral functions called components, allows rapid hardware definition and
implementation.
The schematic entry system works similar to standard circuit board schematic entry tools, with the
exception that all components and routing are automatically implemented within the PSoC device
rather than on a PCB. This allows you to create custom solutions using peripherals commonly found
in MCU designs as well as analog peripherals, digital peripherals, and logic, not possible with any
other microcontroller or system-on-chip. In many designs, traditionally external resources can be
fully integrated within the PSoC device.
The PSoC Rocks design schematic uses several peripheral and circuit elements. A single analog
input pin connected to the accelerometer's Y axis is routed to an ADC. A pin component with three
pins is used to control the functionality of the accelerometer and another pair is used to drive the
LEDs. The last schematic element is a control register that is used to drive the LED pins. The control
register output is inverted to sink current from the LEDs. This allows the LEDs to be driven externally
with the highest possible current and brightness without adding complexity to the design.
Conventional systems require firmware overhead to decode and invert the data for each of the
affected LED pins.
The PSoC Rocks schematic (see Figure 4-6 on page 18) provides a small sample of how custom
hardware and peripherals are possible in PSoC devices. Each component selected from the
component catalog and placed on to the project schematic provides a GUI, configurable parameters,
and datasheet to further customize its operation in the design. During the project build process, each
component generates the required hardware configuration and firmware APIs as necessary to
provide a truly custom hardware configuration.
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
17
Code Examples
Figure 4-6. PSoC Rocks Schematic
4.1.5
How the PSoC Rocks Project Works
This example displays a message using a bank of LEDs, that when swung in a back and forth arcing
motion, produces a rasterized character display. The PSoC 3 FirstTouch Starter Kit has a three-axis
accelerometer. The accelerometer detects the instant acceleration of the board when in motion. The
instantaneous voltage at each axis of the accelerometer is directly proportional to the acceleration
along that axis.
In this project, the firmware uses the Y axis voltage output of the accelerometer. This voltage is
routed to an ADC in the PSoC. This digital value is now a measure of acceleration detected by the
accelerometer. If the acceleration exceeds a maximum value, it signals the start of a new wave
event. The firmware delays for a fixed period of time to start the first character in the proper position
of the wave. The current string is converted into a rasterized display data array before the start of the
wave. Each column of the rasterized data array is sequentially output after a fixed delay. The delay
periods may be adjusted in firmware.
For a particular character in the message, a look up table determines which LEDs to turn on. When
the board is waved back and forth rapidly, due to persistence of vision, the user defined image
appears to float in the air. Multiple strings may be configured with each string being displayed for an
adjustable number of wave cycles.
18
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Code Examples
Figure 4-7. PSoC Rocks Project Flowchart
Boot
Start
Get ADC count (V) for
measured
accelerometer Y
axis voltage
No
V > minimum
oscillation thershold?
Yes
Calculate character
offset in the string
No
Update LED display
No
String
Complete
Yes
Increment the
Message Number
Is Message
Number > Max
messages
Yes
Reset Message
number to 0
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
19
Code Examples
4.1.6
PCB Schematic
Figure 4-8. PSoC Rocks Project PCB Schematic
3.3V
D1
2
0603
1
R2
1
1
R7
1
1
R10
1
1
R13
1
1
R16
1
1
R17
1
1
R18
1
1
R19
1
2 68 ohm
P2_0
2 68 ohm
P2_1
0402
LED RED
D2
2
0603
0402
2 68 ohm P2_2
0603
P2_3
P2_2
P2_1
P2_0
0402
2
2 68 ohm
P2_3
2 68 ohm
P4_0
2 68 ohm
P4_1
2 68 ohm
P4_2
2 68 ohm
P4_3
0402
2
0603
U2
VDDio2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
P6_3
P6_2
P6_1
P6_0
VDDd
VSSd
VCCd
P4_7
P4_6
P4_5
P4_4
P4_3
P4_2
P0_7
P0_6
P0_5
P0_4
LED RED
D5
0402
LED RED
D6
2
0603
0402
LED RED
D7
2
0603
0402
LED RED
D8
2
0603
0402
LED RED
/XRES
SWDIO
SWDCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
P2_5
P2_6
P2_7
P12_4 I2C0_SCL, SIO
P12_5 I2C0_SDA, SIO
P6_4
P6_5
P6_6
P6_7
VSSb
Ind
Vboost
Vbat
VSSd
XRES
P5_0
P5_1
P5_2
P5_3
P1_0
P1_1
P1_2
P1_3
P1_4
P1_5
CY8C3866AXI-040 TQFP100
VDDio0
P0_3
P0_2
P0_1
P0_0
P4_1
P4_0
SIO_P12_3
SIO_P12_2
VSSd
VDDa
VSSa
VCCa
NC8
NC7
NC6
NC5
NC4
NC3
P15_3
P15_2
SIO, I2C1_SDA P12_1
SIO, I2C1_SCL P12_0
P3_7
P3_6
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
P4_1
P4_0
ACC_ENABLE
ZOUT
YOUT
26
27
28
LOWBATT 29
30
31
32
33
34
35
36
37
38
39
40
41
ST/MODE 42
43
MODE
44
45
46
47
48
49
XOUT
50
SWV
3.3V
C1
0402
P4_3
P4_2
0603
LED RED
D4
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
2
VDDio1
P1_6
P1_7
P12_6_SIO
P12_7_SIO
P5_4
P5_5
P5_6
P5_7
P15_6 DP
P15_7 DM
VDDd
VSSd
VCCd
NC1
NC2
P15_0
P15_1
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
VDDio3
LED RED
D3
0.1 uFd
ST/MODE
3
ACC_ENABLE
4
MODE
VDD
2
ST/MOT
ENABLE
20
X
Y
GND
MODE
8
2
0402
1
U1
R35
1.5K
1
3.3V
Z
5
XOUT
6
YOUT
7
KXSC7-2050
ZOUT
0402
C25
NOLOAD
DNI
0402
C29
NOLOAD
DNI
0402
C30
NOLOAD
DNI
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Code Examples
4.2
Bubble Level Emulator
This project emulates a glass bubble level instrument using the onboard accelerometer and the LED
display. When the program is run, the LEDs shows the direction in which the board is tilted.
Running the Bubble Level Emulator project:
1. Connect the PSoC 3 FirstTouch Starter Kit board to the USB port of the PC using the USB cable.
2. Click on the BubbleLevel example from Examples and Kits present on the Start Page of PSoC
Creator.
3. Create a folder in the desired location and click OK.
4. The project opens up in PSoC Creator and is saved in that folder.
5. Follow step 1 to 4 in section 4.1.3 Build, Program, and Run the PSoC Rocks Project on page 16
to program the project into the PSoC 3 FirstTouch Starter Kit board.
6. When the download is complete, remove the PSoC 3 FirstTouch Starter Kit board from the USB
port and connect a 9-V DC battery to the battery connector of the PSoC 3 FirstTouch Starter Kit
board.
7. Tilt the board along the X axis of the accelerometer by holding the battery in a stationary position
and move the edge opposite the battery up and down, as shown in Figure 4-9. When you tilt the
board, you can see the direction of the tilt on the LED display.
Figure 4-9. Bubble Level Emulator - Perpendicular Motion
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
21
Code Examples
4.2.1
How the Bubble Level Emulator Project Works
A bubble level displays the amount the level deviates from horizontal using a bubble of air in a glass
via level. In this project, a level is emulated by the accelerometer on the board.
In bubble level detection, LEDs display the tilt of the board along its length (corresponding to the X
axis of the accelerometer).
The accelerometer is always under the influence of gravity. When the board is placed flat on the
ground, the static acceleration due to gravity along the X axis of the accelerometer is zero. In this
position, the two LEDs in the center of the LED display are turned on. Because the board is tilted in
one direction, the force of gravity along that axis increases. This increases the static acceleration
detected by the accelerometer. The X axis voltage output of the accelerometer is fed into an ADC in
the PSoC. The ADC converts this voltage into digital count, which is the measure of the static
acceleration detected by the accelerometer. PSoC determines the tilt of the board and lights up
LEDs indicating the tilt. If the board is further tilted in one direction, the LED moves accordingly to
the extreme of the LED display.
Figure 4-10. Bubble Level Emulator Project Flowchart
Boot
Start
Get ADC count(V) for
Accelerometer X axis
voltage
Calculate the LED
offset for current value
of V
Update LED display
22
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Code Examples
4.2.2
PCB Schematic
Figure 4-11. Bubble Level Emulator Project PCB Schematic
3.3V
D1
2
0603
1
R2
1
1
R7
1
1
R10
1
1
R13
1
1
R16
1
1
R17
1
1
R18
1
1
R19
1
2 68 ohm
P2_0
2 68 ohm
P2_1
0402
LED RED
D2
2
0603
0402
2 68 ohm P2_2
P2_3
P2_2
P2_1
P2_0
0402
0603
2 68 ohm
P2_3
2 68 ohm
P4_0
2 68 ohm
P4_1
2 68 ohm
P4_2
2 68 ohm
P4_3
0402
2
0603
U2
VDDio2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
P6_3
P6_2
P6_1
P6_0
VDDd
VSSd
VCCd
P4_7
P4_6
P4_5
P4_4
P4_3
P4_2
P0_7
P0_6
P0_5
P0_4
LED RED
D5
0402
LED RED
D6
2
0603
0402
LED RED
D7
2
0603
0402
LED RED
D8
2
0603
0402
LED RED
/XRES
SWDIO
SWDCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
P2_5
P2_6
P2_7
P12_4 I2C0_SCL, SIO
P12_5 I2C0_SDA, SIO
P6_4
P6_5
P6_6
P6_7
VSSb
Ind
Vboost
Vbat
VSSd
XRES
P5_0
P5_1
P5_2
P5_3
P1_0
P1_1
P1_2
P1_3
P1_4
P1_5
CY8C3866AXI-040 TQFP100
VDDio0
P0_3
P0_2
P0_1
P0_0
P4_1
P4_0
SIO_P12_3
SIO_P12_2
VSSd
VDDa
VSSa
VCCa
NC8
NC7
NC6
NC5
NC4
NC3
P15_3
P15_2
SIO, I2C1_SDA P12_1
SIO, I2C1_SCL P12_0
P3_7
P3_6
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
P4_1
P4_0
ACC_ENABLE
ZOUT
YOUT
26
27
28
LOWBATT 29
30
31
32
33
34
35
36
37
38
39
40
41
ST/MODE 42
43
MODE
44
45
46
47
48
49
XOUT
50
SWV
3.3V
C1
0402
P4_3
P4_2
0603
LED RED
D4
2
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
2
VDDio1
P1_6
P1_7
P12_6_SIO
P12_7_SIO
P5_4
P5_5
P5_6
P5_7
P15_6 DP
P15_7 DM
VDDd
VSSd
VCCd
NC1
NC2
P15_0
P15_1
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
VDDio3
LED RED
D3
0.1 uFd
ST/MODE
3
ACC_ENABLE
4
MODE
VDD
2
ST/MOT
ENABLE
X
Y
GND
MODE
8
2
0402
1
U1
R35
1.5K
1
3.3V
Z
5
XOUT
6
YOUT
7
KXSC7-2050
ZOUT
0402
C25
NOLOAD
DNI
0402
C29
NOLOAD
DNI
0402
C30
NOLOAD
DNI
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
23
Code Examples
4.3
ThermistorTemperatureSense
This project measures the current room temperature and displays it as a rasterized image when the
board is waved.
Running the ThermistorTemperatureSense project:
1. Connect the PSoC 3 FirstTouch Starter Kit board to the USB port of the PC through the USB
cable.
2. Click on the ThemistorTemperatureSense example from Examples and Kits on the Start Page of
PSoC Creator.
3. Create a folder in the desired location and click OK.
4. Te project opens up in PSoC Creator and is saved in that folder.
5. Follow step 1 to 4 in section Build, Program, and Run the PSoC Rocks Project on page 16 to program the project into the PSoC 3 FirstTouch Starter Kit board.
6. When the download is complete, remove the PSoC 3 FirstTouch Starter Kit board from the USB
port and connect a 9-V DC battery to the battery connector of the PSoC 3 FirstTouch Starter Kit
board.
7. Hold the board and wave it continuously from left to right, as shown in Figure 3-1 on page 11. A
rasterized image of the current measured temperature in degree Celsius is visible in the air.
Press the S1 switch while waving the board to toggle the temperature from Celsius to Fahrenheit
and vice-versa.
4.3.1
How the ThermistorTemperatureSense Project Works
The thermistor example demonstrates how the PSoC device senses temperature using a thermistor.
The thermistor resistance varies with temperature following a predictable nonlinear curve. The
temperature-resistance relationship is given by the Steinhart-Hart equation:
1 /Tk = A + B*ln(R) + C*(ln(R))3
In this equation:
■
A, B, and C are empirical constants known as Steinhart-Hart coefficients.
■
R is the resistance of the thermistor in Ohms.
■
Tk is the temperature in degree Kelvins.
The same equation, when converted to Celsius scale becomes:
Tc = Tk - 273.15
In this equation, Tc is the temperature in degree Celsius.
24
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Code Examples
Figure 4-12. Temperature Sensor Project Flowchart
Boot
Update the raster display
data array
Start
Read and process
accelerometer Y axis
voltage
If switch is pressed?
Calculate character offset
in the string and update
LED display
Yes
No
Change temperature
display mode
No
String complete?
Compute temperature
Yes
4.3.1.1
Temperature Sensing Design Principle
As shown in Figure 4-13, the design for temperature sensing uses a voltage divider with a precision
resistor on one side and the thermistor on the other to estimate the thermistor resistance. The
temperature calculations are as accurate as the resistance measurement of the thermistor.
Figure 4-13. Temperature Sensing Design Principle
VDC
V0
RRef
V1
A
M
U
X
ADC
PSoC
Blocks
RThermistor
V2
This setup significantly removes gain and offset errors from the resistance calculation.
The analog voltage output from the divider is converted to a digital signal using the ADC on the
PSoC. To gain additional accuracy, the voltage at the input side of the divider is also measured. The
resistor value is calculated using the ratio of the voltages across two resistors in the resistor ladder.
Rthermistor = Rref * (V1-V2/V0-V1)
In this equation, V2 = 0 (Ground voltage)
Offset errors, if any, are removed due to subtraction of the two measured voltages. The ratio of these
two values removes the measurement path gain error. The error due to the reference resistor is
reduced by using a precision resistance in series with the thermistor.
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
25
Code Examples
Temperature is calculated by referring to a table of 165 known points on the resistance/temperature
curve using a look up table. The table holds resistance values of the thermistor from –40 °C to
125 °C, in 1-°C increments. Linear interpolation is used between the points in the table for
temperature calculation up to two decimal places.
The temperature is then displayed as a rasterized image using persistence of vision when the board
is waved around. See section How the PSoC Rocks Project Works on page 18 to understand how
the message is displayed on the LEDs.
For more information on using PSoC family devices with a thermistor, see the application notes
AN2017 – PSoC(R) 1 Thermistor-Based Thermometer and AN66477 – PSoC(R) 3 and PSoC 5
Temperature Measurement with Thermistor.
4.3.2
PCB Schematic
Figure 4-14. PCB Schematic for Temperature Sensing Project
3.3V
D1
2
0603
1
R2
1
1
R7
1
1
R10
1
1
R13
1
1
R16
1
1
R17
1
1
R18
1
1
R19
1
2 68 ohm
P2_0
2 68 ohm
P2_1
0402
LED RED
D2
2
0603
0402
P2_3
2 68 ohm
0603
P4_0
2 68 ohm
P4_1
2 68 ohm
P4_2
2 68 ohm
P4_3
U2
0402
LED RED
D6
2
0603
0402
LED RED
D7
2
0603
0402
LED RED
D8
2
0603
0402
LED RED
/XRES
3.3V
SWDIO
SWDCK
C1
0402
SWV
0.1 uFd
ACC_ENABLE
4
MODE
VDD
ST/MODE
3
ST/MOT
ENABLE
X
Y
GND
2
Z
5
XOUT
6
YOUT
7
KXSC7-2050
ZOUT
0402
C25
NOLOAD
DNI
0402
C29
NOLOAD
DNI
0402
C30
NOLOAD
DNI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
P2_5
P2_6
P2_7
P12_4 I2C0_SCL, SIO
P12_5 I2C0_SDA, SIO
P6_4
P6_5
P6_6
P6_7
VSSb
Ind
Vboost
Vbat
VSSd
XRES
P5_0
P5_1
P5_2
P5_3
P1_0
P1_1
P1_2
P1_3
P1_4
P1_5
CY8C3866AXI-040 TQFP100
VDDio0
P0_3
P0_2
P0_1
P0_0
P4_1
P4_0
SIO_P12_3
SIO_P12_2
VSSd
VDDa
VSSa
VCCa
NC8
NC7
NC6
NC5
NC4
NC3
P15_3
P15_2
SIO, I2C1_SDA P12_1
SIO, I2C1_SCL P12_0
P3_7
P3_6
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
P4_1
P4_0
3.3V
R20
1K
S1
1A
2A
3
ACC_ENABLE
ZOUT
YOUT
1B
2B
FRAME
SW PUSHBUTTON
T_POWER
0603
8
2
0402
1
U1
MODE
1
3.3V
R35
1.5K
P4_3
P4_2
VDDio2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
P6_3
P6_2
P6_1
P6_0
VDDd
VSSd
VCCd
P4_7
P4_6
P4_5
P4_4
P4_3
P4_2
P0_7
P0_6
P0_5
P0_4
2
0603
2 68 ohm
0402
LED RED
D5
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
0603
P2_3
P2_2
P2_1
P2_0
0402
LED RED
D4
2
VDDio1
P1_6
P1_7
P12_6_SIO
P12_7_SIO
P5_4
P5_5
P5_6
P5_7
P15_6 DP
P15_7 DM
VDDd
VSSd
VCCd
NC1
NC2
P15_0
P15_1
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
VDDio3
0603
2 68 ohm P2_2
26
27
28
LOWBATT 29
30
31
T_POWER 32
T_SENSE 33
34
35
36
37
38
39
40
41
ST/MODE 42
43
MODE
44
45
46
47
48
49
XOUT
50
LED RED
D3
2
R6
10K
1%
T_SENSE
RT1
25 10K
26
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Code Examples
4.4
CapSense Slider
This project shows how to detect the position of a finger on the CapSense slider of the PSoC 3 FirstTouch Starter Kit board and indicate its position on the LED display.
Running the CapSense project:
1. Connect the PSoC 3 FirstTouch Starter Kit board to the USB port of the PC through the USB
cable.
2. Click on the CapSenseSlider example from Examples and Kits on the Start Page of PSoC Creator.
3. Create a folder in the desired location and click OK.
4. The project opens up in PSoC Creator and is saved in that folder.
5. Follow step 1 to 4 in section Build, Program, and Run the PSoC Rocks Project on page 16 to program the project into the PSoC 3 FirstTouch Starter Kit board.
6. When the download is complete, remove the PSoC 3 FirstTouch Starter Kit board from the USB
port and connect a 9-V DC battery to the battery connector of the PSoC 3 FirstTouch Starter Kit
board.
7. Move your finger along the CapSense Slider and see the corresponding LEDs light up.
4.4.1
How the CapSense Slider Project Works
Capacitive sensing determines the presence of a conductive element, such as the finger, on a
capacitive sensor incorporated on the PCB. The kit consists of a bank of CapSense sensors in the
form of a slider. The size of the sensors and their position is designed such that when a finger is
placed on any part of the slider, at least three sensors are active (it detects the presence of the finger
by a change in its capacitance value).
The CapSense component provides APIs, which report the centroid (relative position) of the finger
on the slider based on the active sensors. The firmware then lights up the LED corresponding to this
centroid position.
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
27
Code Examples
Figure 4-15. CapSense Slider Project Flowchart
Boot
Start
Scan CapSense Slider
Read the Centroid position
No
is finger detected on
the slider?
Yes
Update LED display with
respect to finger position
28
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Code Examples
4.4.2
PCB Schematic
Figure 4-16. PCB Schematic for CapSense Slider Project
3.3V
D1
2
0603
1
R2
1
1
R7
1
1
R10
1
1
R13
1
1
R16
1
1
R17
1
1
R18
1
1
R19
1
2 68 ohm
P2_0
2 68 ohm
P2_1
0402
LED RED
D2
2
0603
0402
2 68 ohm P2_2
0603
P2_4
P2_3
P2_2
P2_1
P2_0
0402
2
2 68 ohm
P2_3
2 68 ohm
P4_0
2 68 ohm
P4_1
2 68 ohm
P4_2
2 68 ohm
P4_3
0402
2
0603
U2
VDDio2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
P6_3
P6_2
P6_1
P6_0
VDDd
VSSd
VCCd
P4_7
P4_6
P4_5
P4_4
P4_3
P4_2
P0_7
P0_6
P0_5
P0_4
LED RED
D5
0402
LED RED
D6
2
0603
0402
LED RED
D7
2
0603
0402
LED RED
D8
2
0603
0402
LED RED
RBLEED
0603
/XRES
R5
4.99K
1%
SWDIO
SWDCK
CMOD
SWV
R14
NO LOAD
CSS1
R1
560 ohm 1%
P3_0
CS1
P2_5
P2_6
P2_7
P12_4 I2C0_SCL, SIO
P12_5 I2C0_SDA, SIO
P6_4
P6_5
P6_6
P6_7
VSSb
Ind
Vboost
Vbat
VSSd
XRES
P5_0
P5_1
P5_2
P5_3
P1_0
P1_1
P1_2
P1_3
P1_4
P1_5
CY8C3866AXI-040 TQFP100
VDDio0
P0_3
P0_2
P0_1
P0_0
P4_1
P4_0
SIO_P12_3
SIO_P12_2
VSSd
VDDa
VSSa
VCCa
NC8
NC7
NC6
NC5
NC4
NC3
P15_3
P15_2
SIO, I2C1_SDA P12_1
SIO, I2C1_SCL P12_0
P3_7
P3_6
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
P4_1
P4_0
26
27
28
LOWBATT 29
30
31
CMOD
32
33
34
35
36
37
38
39
40
41
42
43
44
P3_0
45
P3_1
46
P3_2
47
P3_3
48
P3_4
49
50
0603
0603
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
RBLEED
C2
0.0039 uFd 10v
P4_3
0603
LED RED
D4
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
2
VDDio1
P1_6
P1_7
P12_6_SIO
P12_7_SIO
P5_4
P5_5
P5_6
P5_7
P15_6 DP
P15_7 DM
VDDd
VSSd
VCCd
NC1
NC2
P15_0
P15_1
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
VDDio3
LED RED
D3
1
CapSense
0603
CSS2
R3
560 ohm 1%
P3_1
CS2
1
CapSense
0603
CSS3
R4
560 ohm 1%
R8
560 ohm 1%
R11
560 ohm 1%
P3_2
CS3
1
CapSense
0603
CSS4
P3_3
CS4
1
CS5
CSS5
1
CapSense
0603
P3_4
CapSense
0603
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
29
Code Examples
4.5
Proximity Sensor
This project senses the presence of a finger near the proximity detection antenna. The number of
LEDs that light up on the LED display on the PSoC 3 FirstTouch Starter Kit board increases as the
finger gets closer to the antenna.
To run the proximity sensor project, follow these steps:
1. Connect the PSoC 3 FirstTouch Starter Kit board to the USB port of the PC through the USB
cable.
2. Click on the ProximitySensor example from Examples and Kits on the Start Page of PSoC Creator.
3. Create a folder in the desired location and click OK.
4. The project opens up in PSoC Creator and is saved in that folder.
5. Follow step 1 to 4 in section Build, Program, and Run the PSoC Rocks Project on page 16 to program the project into the PSoC 3 FirstTouch Starter Kit board.
6. When the download is complete, remove the PSoC 3 FirstTouch Starter Kit board from the USB
port.
7. Attach the wire antenna to the board at the proximity sensor connector and connect the 9-V DC
battery to the battery connector of the PSoC 3 FirstTouch Starter Kit board.
8. Move your finger near and away from the proximity antenna. When your finger comes closer to
the antenna, the number of LEDs that light up increases. When it does not sense your finger or
hand near the antenna, all the LEDs are turned off.
Figure 4-17. Wire Antenna attached to Proximity Sensor Connector
30
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Code Examples
4.5.1
How the Proximity Sensor Project Works
Proximity detection is performed by a proximity antenna acting as a capacitive sensor. The proximity
antenna consists of a wire connected to the proximity connector on the board.
Upon power up, the board establishes a baseline capacitance value of the board along with the
antenna attached to it. This is used as a reference value of capacitance and is called the parasitic
capacitance of the board.
When a conductive object, such as a human finger, is brought close to the antenna, the overall
capacitance of the board changes. This change in capacitance determines the proximity of the finger
to the antenna. An increase in capacitance corresponds to the finger being closer to the antenna.
This is used to light up the LEDs based on the proximity of the finger to the antenna. The number of
LEDs turned on increases as the proximity of the finger increases.
To establish the parasitic capacitance, the antenna must be connected to the board before power up.
The baseline for capacitive sensors is updated continuously by the firmware. This accounts for any
changes in environmental conditions during the operation.
Figure 4-18. Proximity Sensor Project Flowchart
Boot
Start
Scan the Proximity sensor
Is sensor active?
Yes
Read signal value
No
update LED display
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
31
Code Examples
4.5.2
PCB Schematic
Figure 4-19. PCB Schematic for Proximity Detection Project
3.3V
D1
2
0603
1
R2
1
1
R7
1
1
R10
1
1
R13
1
1
R16
1
1
R17
1
1
R18
1
1
R19
1
2 68 ohm
P2_0
2 68 ohm
P2_1
0402
LED RED
D2
2
0603
0402
0603
P2_4
P2_3
P2_2
P2_1
P2_0
0402
LED RED
D4
2
2 68 ohm
P2_3
2 68 ohm
P4_0
2 68 ohm
P4_1
2 68 ohm
P4_2
2 68 ohm
P4_3
0402
2
0603
U2
VDDio2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
P6_3
P6_2
P6_1
P6_0
VDDd
VSSd
VCCd
P4_7
P4_6
P4_5
P4_4
P4_3
P4_2
P0_7
P0_6
P0_5
P0_4
LED RED
D5
0402
2
0603
0402
LED RED
D7
2
0603
0402
LED RED
D8
2
0603
0402
LED RED
/XRES
SWDIO
SWDCK
RBLEED
0603
SWV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
P2_5
P2_6
P2_7
P12_4 I2C0_SCL, SIO
P12_5 I2C0_SDA, SIO
P6_4
P6_5
P6_6
P6_7
VSSb
Ind
Vboost
Vbat
VSSd
XRES
P5_0
P5_1
P5_2
P5_3
P1_0
P1_1
P1_2
P1_3
P1_4
P1_5
R5
4.99K
1%
R14
0603
0603
P4_1
P4_0
RBLEED
C2
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
26
27
28
LOWBATT 29
30
31
CMOD
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CMOD
0.0039 uFd 10v
CY8C3866AXI-040 TQFP100
VDDio0
P0_3
P0_2
P0_1
P0_0
P4_1
P4_0
SIO_P12_3
SIO_P12_2
VSSd
VDDa
VSSa
VCCa
NC8
NC7
NC6
NC5
NC4
NC3
P15_3
P15_2
SIO, I2C1_SDA P12_1
SIO, I2C1_SCL P12_0
P3_7
P3_6
VDDio1
P1_6
P1_7
P12_6_SIO
P12_7_SIO
P5_4
P5_5
P5_6
P5_7
P15_6 DP
P15_7 DM
VDDd
VSSd
VCCd
NC1
NC2
P15_0
P15_1
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
VDDio3
LED RED
D6
P4_3
0603
2 68 ohm P2_2
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
LED RED
D3
2
NO LOAD
0603
R31
1
1
560 ohm 1%
PRX1
RECEPTACLE 1x1
Proximity
Sensor
Loop
32
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
5.
Technical Reference
5.1
PSoC 3 FirstTouch Starter Kit Schematic
Figure 5-1. PSoC 3 FirstTouch Starter Kit Design Schematic
CSS1
R1
3.3V
560 ohm 1%
P3_0
1
CS1
CapSense
0603
RBLEED
CSS2
P2_0
560 ohm 1%
P3_1
R8
560 ohm 1%
R11
560 ohm 1%
P3_2
0402
0603
2 68 ohm P2_2
P3_3
0402
0603
2 68 ohm
P2_3
P3_4
2
0603
1
R16
1
1
R17
1
1
R18
1
1
R19
1
CS4
1
CS5
CSS5
1
0.1 uFd
3.3V
T_SENSE
CapSense
C2
CapSense
2 68 ohm
P4_0
2 68 ohm
P4_1
2 68 ohm
P4_2
2 68 ohm
P4_3
0.0039 uFd 10v
R14
0603
RT1
NO LOAD
U1
25 10K
1
0603
Reserved
3
ST/MODE
ST/MOT
4
ACC_ENABLE
ENABLE
5
VDDIO
VDD
2
0402
LED RED
D6
2
R37
ZERO
R35
1.5K
2
0402
LED RED
D5
C1
0402
CMOD
0603
LED RED
D4
2
CapSense
CSS4
0603
2
1
CS3
10
P2_1
GND3
2 68 ohm
R6
10K
1%
VCCd
GND2
Z
Y
GND1
1
R13
1
LED RED
D3
3.3V
R5
4.99K
1%
1
1
R10
1
560 ohm 1%
0603
1
R4
0603
0603
R7
1
0603
2
T_POWER
CapSense
CSS3
0603
0402
LED RED
D2
1
CS2
0603
0603
R3
2 68 ohm
0402
R2
1
1
0603
D1
2
X
9
D
8
ZOUT
7
YOUT
6
XOUT
KXTC9-2050
C25
NOLOAD
0402
DNI
0402
0402
LED RED
D7
2
0603
0402
LED RED
D8
2
0603
C3
1.0 uFd
0603
C4
0402
0805
0.1 uFd
C29
NOLOAD
0402
DNI
C30
NOLOAD
DNI
C5
1.2 uFd
10V
0402
LED RED
VDDIO
S1
1A
2A
3
3.3V
1B
2B
FRAME
C12
SW PUSHBUTTON
0402
1
ZERO
Byp
3
C26
10000 pF
0603
4
PD0/FD8
PD1/FD9
PD2/FD10
PD3/FD11
PD4/FD12
PD5/FD13
PD6/FD14
PD7/FD15
1
2 RDY0/SLRD
RDY1/SLWR
15
16 SCL
SDA
0603
0603
SWDIO
SWDCK
SWV
DNI
R27
100K
1%
VBUS
R32
39K
1%
1
0402
R29
2.2K
45
46
47
48
49
50
51
52
DNI
R26
100K
1%
3.3V
DNI
R25
100K
1%
0603
29
30 CTL0/FLAGA
31 CTL1/FLAGB
CTL2/FLAGC
USBIO/SWDIO
USBIO/SWDCK
1 TV1
/XRES
+ C28
10 uFd 10v
A
ADD R32 AND R34 FOR R34
62K
USB COMPLIANCE.
1%
NOTE: REQUIRES
FIRMWARE UPDATE.
0603
2
0603
nSHDN
NC
24LC00 SOT-23-5
R30
3.3V_REG
WAKEUP#
18
19
20
21
22
23
24
25
2
OUT
1
SCL 2
VSS 3
SDA
CLKOUT
14
IN
SOT-23
VCC
R28
2.2K
PB0/FD0
PB1/FD1
PB2/FD2
PB3/FD3
PB4/FD4
PB5/FD5
PB6/FD6
PB7/FD7
IFCLK
R23
100K
1%
0603
54
R22
100K
1%
0603
13
TV2
10K TV-20R 1
TP2
6
10
HEADER 3
0603
1
R24
0402
4
3.3V
U5 LT1962EMS8-3.3
8
C27
1.0 uFd
3.3V
CY7C68013A-56LTXC
+/-15kV ESD Protection
Place near to the Connector
5
U3
1
3.3V
9
8 DMINUS
DPLUS
33
34
35
36
37
38
39
40
0603
DM
DP
4
B
3.3V
PA0/nINT0
PA1/nINT1
PA2/SLOE
PA3/WU2
PA4/FIFOADR0
PA5/FIFOADR1
PA6/PKTEND
PA7/FLAGD
RESET#
GND3
GND4
GND5
GND6
REF
CD143A-SR05LC
USB MINI B
8
9
42
U6
2
1 IO1
3 GND
IO2
VBUS
GND1
GND2
S3
S4
1
VBUS 2
DM 3
DP 4
ID 5
GND
1
2
P1
26
28
53
56
0.1 uFd
3.3V
GND
GND1
GND2
D10
SOD123
0.1 uFd
3
7 AVCC1
AVCC2
U4
J4
1
2 1
3 2
3
0.1 uFd
REMOVE R33 FOR USB
COMPLIANCE.
4
6
7
2
C22
0402
44
SENSE
D11
DIODE SCHOTTKY
C21
2.2 uFd
6.3V
C24
0402
S1
S2
C23
1.0 uFd
C17
0402
2
0.1 uFd
3.3V
5
VBUS
0.1 uFd
3
12
41
0603
1
DIODE SCHOTTKY
0402
XTALOUT
0402
1
BH2
1
C16
0.1 uFd
Y1
24 MHz
0603
D9
0402
RESERVED
0.1 uFd
Proximity
Sensor
Loop
9V
SOD123
C15
0.1 uFd
PLACE C21 AND C22 CLOSE
CLOSE TO U3-3 AND U3-7. 3.3V
3.3v: J4-2 to J4-3
VBUS: J4-1 to J4-2
VDDIO: J4-1 to J4-2
2
0402
C20
VDDIO
9V_PLUS
0.1 uFd
R21
100K
1%
PRX1
RECEPTACLE 1x1
BAT 9V MALE
0402
C19
0402
BH1
POS
NEG
0.1 uFd
C14
AGND1
AGND2
0603
R31
1
C13
VDDIO
560 ohm 1%
1
R20
1K
0402
3.3V
9V_PLUS
0.1 uFd
3.3V
0.1 uFd
HEADER 3
C
PLACE ONE CAP PER EACH VCC ON U3.
VCCd
3.3v: J1-2 to J1-3
VBUS: J1-1 to J1-2
VDDIO: OPEN
BAT 9V FEMALE
0402
0402
VDDIO
C11
1.0 uFd
ACC_ENABLE
P12_1
P12_0
ZOUT
YOUT
6
7
J1
1
2 1
3 2
3
0603
5
VBUS
C10
1.0 uFd
XTALIN
C18
0402
P5_2
P5_3
P1_4
P1_5
P1_7
C9
0603
CP
3.3V
2
4
6
8
10
12
6x2 RECP 2mm SMT
57
RBLEED
P1_7
HDR 14x1
2
4
6
8
10
12
3.3V
26
27
28
29
30
31
32
33
34
35
USBIO/SWDIO
36
USBIO/SWDCK
37
38
39
40
41
ST/MODE 42
43
44
P3_0
45
P3_1
46
P3_2
47
P3_3
48
P3_4
49
XOUT
50
SWV
P1_4
P1_5
P5_1
3.3V
17
27
43
55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
VDDIO
1
3
5
7
9
11
C7
0.47 uFd
16V
0603
P2
1
3
5
7
9
11
P12_1
P12_0
P5_0
VCC3
VCC4
VCC5
VCC6
/XRES
P5_0
P5_1
P5_2
P5_3
SWDIO
SWDCK
J3
P0_3
P0_2
P0_1
P0_0
P4_1
P4_0
P12_3
P12_2
11
32
HDR 14x1
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
VDDio0
P0_3
P0_2
P0_1
P0_0
P4_1
P4_0
SIO_P12_3
SIO_P12_2
VSSd
VDDa
VSSa
VCCa
NC8
NC7
NC6
NC5
NC4
NC3
P15_3
P15_2
SIO, I2C1_SDA P12_1
SIO, I2C1_SCL P12_0
P3_7
P3_6
0603
P6_4
P6_5
P6_6
P6_7
P2_5
P2_6
P2_7
P12_4 I2C0_SCL, SIO
P12_5 I2C0_SDA, SIO
P6_4
P6_5
P6_6
P6_7
CY8C3866AXI-040 TQFP100
VSSb
Ind
Vboost
Vbat
VSSd
XRES
P5_0
P5_1
P5_2
P5_3
P1_0
P1_1
P1_2
P1_3
P1_4
P1_5
0603
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
P2_5
P2_6
P2_7
3.3V
0.1 uFd
VDDio2
P2_4
P2_3
P2_2
P2_1
P2_0
P15_5
P15_4
P6_3
P6_2
P6_1
P6_0
VDDd
VSSd
VCCd
P4_7
P4_6
P4_5
P4_4
P4_3
P4_2
P0_7
P0_6
P0_5
P0_4
P0_1
P0_3
P0_5
P0_7
P4_5
P4_7
P6_1
P6_3
P6_5
P6_7
P12_3
P2_7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
VDDio1
P1_6
P1_7
P12_6_SIO
P12_7_SIO
P5_4
P5_5
P5_6
P5_7
P15_6 DP
P15_7 DM
VDDd
VSSd
VCCd
NC1
NC2
P15_0
P15_1
P3_0
P3_1
P3_2
P3_3
P3_4
P3_5
VDDio3
1
P0_0
P0_2
P0_4
P0_6
P4_4
P4_6
P6_0
P6_2
P6_4
P6_6
P12_2
P2_6
CMOD
T_POWER
T_SENSE
D12
5.6V/5W(1N5339B)
2
T-18 AXIAL
0ZCB0035FF2G (Itrip=700mA)
C8
0402
J2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
VDDIO
VCC1
VCC2
0805
U2
F1
P4_7
P4_6
P4_5
P4_4
P4_3
P4_2
P0_7
P0_6
P0_5
P0_4
0.1 uFd
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
0402
ZERO
P2_4
P2_3
P2_2
P2_1
P2_0
C6
R36 DNI
P15_4
P6_3
P6_2
P6_1
P6_0
VDDIO
2
0603
R33
1
1
2
0402
LED GREEN
68 ohm
PCB#:PDCR-9493
Assembly:121R-49300
CYPRESS SEMICONDUCTOR © 2012
Title
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit
Size
C
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Document Number
REF-14883
Rev
*C
33
Technical Reference
5.1.1
Hardware Jumpers
The PCB has two jumpers to set the power configuration, J1 and J4. These jumpers select the
source for powering the PSoC 3. The options are to power the PSoC 3 from the on board 3.3-V regulator, to run the PSoC 3 from the USB connector, or to supply power from off board using the J2/J3
connectors.
J4 is to select the power source to drive the 3.3-V regulator. This regulator can be used to power
everything on the board or just the accelerometer. The regulator cannot be powered independently
from the VDDIO bus. It must either power the VDDIO bus or be powered by it.
J1 is to select the power source of the PSoC 3. The I/O cells of the PSoC 3 are driven by this source
level. Only the I/O cells that the accelerometer is connected to remain connected to 3.3 V and must
power up with the VDDIO bus or after the VDDIO power bus.
Valid combinations of the jumpers are:
■
■
■
34
3.3 V operation
❐
J1-2 to J1-3
❐
J4-2 to J4-3
VBUS operation
❐
J1-1 to J1-2
❐
J4-1 to J4-2
VDDIO
❐
J1 open
❐
J4-1 to J4-2
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Technical Reference
5.1.2
Board Layout
Figure 5-2. PDCR-9493 Rev ** Primary Side (Primary Silkscreen)
Figure 5-3. PDCR-9493 Rev ** Secondary Side (Secondary Silkscreen)
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
35
Technical Reference
5.1.3
Bill of Material (BOM)
Table 5-1. Bill of Material (BOM)
Item Qty
36
1
1
2
1
3
Reference
Description
Manufacturer
Mfr Part Number
PCB
Cypress
BH1
BATTERY HOLDER 9V
Female PC MT
Keystone Electronics 594
1
BH2
BATTERY HOLDER 9V
Male PC MT
Keystone Electronics 593
4
16
C1,C4,C6,C8,C9,C1 CAP .1UF 16V CERAMIC
2,C13,
Y5V 0402
C14,C15,C16,C17,
C18,C19,
C20,C22,C24
Panasonic - ECG
ECJ-0EF1C104Z
5
1
C2
Panasonic
ECH-U01392GX5
6
5
C3,C10,C11,C23,C CAP CERAMIC 1.0UF 25V Taiyo Yuden
27
X5R 0603 10%
TMK107BJ105KA-T
7
1
C28
CAP TANT 10UF 10V 20% F98 Frameless™
0603
F981A106MMA
8
1
C5
CAP CERAMIC 1.2UF 10V Kemet
X5R 0805
C0805C125K8PACTU
9
1
C7
CAP CERM .47UF 10%
16V X5R 0603
0603YD474KAT2A
10
1
C21
CAP CER 2.2UF 6.3V 20% Panasonic - ECG
X5R 0402
ECJ-0EB0J225M
11
1
C26
CAP CER 10000PF 16V
10% X7R 0603
GRM188R71C103KA01D
12
8
D1,D2,D3,D4,D5,D6 LED RED CLEAR 0603
,D7,D8
SMD
Lite-On Trading USA, LTST-C190CKT
Inc.
13
2
D9,D10
DIODE SCHOTTKY 0.5A
20V SOD-123
Fairchild
Semiconductor
14
1
D11
LED GREEN CLEAR 0603 Lite-On Trading USA, LTST-C190GKT
SMD
Inc.
15
1
D12
DIODE ZENER 5.6V 5W
AXIAL
ON Semiconductor
1N5339BRLG
16
1
F1
PTC RESTTBLE 0.35A
16V CHIP 1210
Bel Fuse Inc
0ZCB0035FF2G
17
2
J1,J4
CONN HEADER 3POS
.100 VERT TIN
Molex/Waldom
Electronics Corp
22-28-4030
18
2
J2,J3
CONN HEADER 14POS
.100 VERT TIN
Molex Connector
Corporation
22-28-4140
19
1
PRX1
CONN RCPT 1POS .100"
SNGL HORZ
Samtec Inc
BCS-101-L-S-HE
20
1
P1
CONN USB MINI B SMT
RIGHT ANGLE
TYCO
1734035-2
CAP FILM PPS .0039UF
10V 0603 2%
AVX
Murata Electronics
North America
PDCR-9493 REV*C
MBR0520L
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Technical Reference
Table 5-1. Bill of Material (BOM) (continued)
Item Qty
Reference
Description
Manufacturer
Mfr Part Number
21
1
P2
CONN RECEPT 12POS
2mm SMD TIN
Hirose Electric Co.
LTD.
DF11Z-12DS-2V(20)
22
1
RT1
THERMISTOR 10K OHM
NTC 0805 SMD
Murata
NCP21XV103J03RA
23
6
R1,R3,R4,R8,R11,R RES 560 OHM 1/10W 1%
31
0603 SMD
Rohm
MCR03EZPFX5600
24
9
R2,R7,R10,R13,R1 RES 68 OHM 1/16W 5%
6,
0402 SMD
R17,R18,R19,R33
Panasonic - ECG
ERJ-2GEJ680X
25
1
R5
RES 4.99K OHM 1/16W
1% 0603 SMD
Panasonic - ECG
ERJ-3EKF4991V
26
1
R6
RES 10.0K OHM 1/16W
1% 0603 SMD
Yageo Corporation
RC0603FR-0710KL
27
1
R20
RES 1.0K OHM 1/16W 5% Panasonic - ECG
0603 SMD
ERJ-3GEYJ102V
28
3
R21,R22,R23
RES 100K OHM 1/10W 1% Yageo
0603 SMD
RC0603FR-07100KL
29
1
R24
RES 10K OHM 1/16W 5% Phycomp USA Inc
0402 SMD
9C1A04021002JLHF3
30
2
R28,R29
RES 2.2K OHM 1/16W 5% Panasonic - ECG
0402 SMD
ERJ-2GEJ222X
31
2
R30,R37
RES ZERO OHM 1/16W
5% 0603 SMD
Panasonic - ECG
ERJ-3GEY0R00V
32
1
R32
RES 39.0K OHM 1/10W
1% 0603 SMD
Rohm
Semiconductor
MCR03EZPFX3902
33
1
R34
RES 62.0K OHM 1/10W
1% 0603 SMD
Rohm
Semiconductor
MCR03EZPFX6202
34
1
R35
RES 1.50K OHM 1/16W
1% 0402 SMD
Panasonic - ECG
ERJ-2RKF1501X
35
1
S1
LT SWITCH 6MM 100GF
H=7MM TH
Panasonic - ECG
EVQ-PBC07K
36
1
U1
Tri-axis 1.5g-6, Analog
3x3x0.9mm LGA
KIONIX
KXTC9-2050
37
1
U2
PSoC3 Mixed-Signal Array Cypress
Semiconductor
CY8C3866AXI-040
38
1
U3
IC, FX2 HIGH-SPEED
USB PERIPHERAL
CONTROLLER QFN56
Cypress
Semiconductor
CY7C68013A-56LTXC
39
1
U4
IC SERIAL EEPROM 128
BIT 2.5V SOT-23-5
Microchip
Technology
24LC00T-I/OT
40
1
U5
IC LDO REG LOWNOISE
3.3V 8-MSOP
Linear Technology
LT1962EMS8-3.3#PBF
41
1
U6
IC TVS ARRAY 2-LINE 5V Bourns Inc.
SOT-143
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
CD143A-SR05LC
37
Technical Reference
Table 5-1. Bill of Material (BOM) (continued)
Item Qty
Reference
Description
Manufacturer
Mfr Part Number
42
1
Y1
Resonators 15pF 0.5%
24.0MHz CERALOCK
Murata
CSTCW24M0X53-R0
43
2
N/A
SHUNT/JUMPER 2POS
.100 BLACK
Superior Tech Co
MJPB-D02BG1CA-A
44
1
LABEL
PCA and Serial Number
Barcode Label
NA
NA
NO LOAD Components
45
3
C25,C29,C30
CAP 0402 NO LOAD
46
3
R25, R26, R27
RES 100K OHM 1/10W 1% Yageo
0603 SMD
RC0603FR-07100KL
47
1
R14
RES NO LOAD 0603 SMD NA
NA
48
2
TV1,TV2
TEST VIA 40 HOLE 20
PLATED
49
5
CSS1,CSS2,CSS3, CapSense Slider Element
CSS4,CSS5
Manufacturing
Process
NA
50
1
R36
Panasonic-ECG
ERJ-6GEY0R00V
RES 0.0 OHM 1/10W 5%
0805 SMD
NONE
Additional assembly instructions:
38
1
RoHS compliant assembly. Use only non-lead solder.
2
Do Not Substitute without confirmation.
3
Please install a 2-position shunt/jumper (Item 40 above) on pins 2 and 3 of header J1& J4.
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Technical Reference
5.2
PSoC 3 Pin Assignment on PSoC 3 FirstTouch Starter Kit Board
Table 5-2. Pin Assignments
Pin Number
Port Number
Design Function
1
P2[5]
Unused / No connect
2
P2[6]
General expansion connector J2 pin 13
3
P2[7]
General expansion connector J3 pin 13
4
P12[4]
Unused/No Connect
5
P12[5]
Unused/No Connect
6
P6[4]
General expansion connector (J2) Pin 10
7
P6[5]
General expansion connector (J3) Pin 10
8
P6[6]
General expansion connector (J2) Pin 11
9
P6[7]
General expansion connector (J3) Pin 11
10
Vssb
11
Ind
12
Vboost
GND
13
Vbat
GND
14
Vssd
GND
15
XRES
Reset from FX2LP
16
P5[0]
Wireless expansion connector pin 7
17
P5[1]
Wireless expansion connector pin 11
18
P5[2]
Wireless expansion connector pin 4
19
P5[3]
Wireless expansion connector pin 6
20
P1[0]
Programming/Debugging Data line
21
P1[1]
Programming/Debugging Clock line
22
P1[2]
No Connect
23
P1[3]
Debugging, Single Wire viewer
24
P1[4]
Wireless expansion connector pin 8
25
P1[5]
Wireless expansion connector pin 10
26
Vddio1
27
P1[6]
CapSense feedback resistor
28
P1[7]
Wireless expansion connector pin 12
29
P12[6]
Battery low indication input
30
P12[7]
No Connect
31
P5[4]
CapSense Modulator capacitor
32
P5[5]
Thermistor Analog input
33
P5[6]
Thermistor Drive Voltage reference
34
P5[7]
Proximity Sense antenna connector
35
P15[6]
USB/SWD Interface to FX2LP
36
P15[7]
USB/SWD Interface to FX2LP
37
Vddd
3.3 V
38
Vssd
GND
39
Vccd
Input to digital core
GND
Unused/No Connect
3.3 V
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
39
Technical Reference
Table 5-2. Pin Assignments (continued)
40
Pin Number
Port Number
Design Function
40
NC
No Connect
41
NC
No Connect
42
P15[0]
Accelerometer ST/Mode
43
P15[1]
Accelerometer Mode
44
P3[0]
CapSense slider element 1
45
P3[1]
CapSense slider element 2
46
P3[2]
CapSense slider element 3
47
P3[3]
CapSense slider element 4
48
P3[4]
CapSense slider element 5
49
P3[5]
Accelerometer X axis analog input
50
Vddio3
51
P3[6]
3.3 V
Accelerometer Y axis analog input
52
P3[7]
Accelerometer Z axis analog input
53
P12[0]
Wireless expansion connector pin 5
54
P12[1]
Wireless expansion connector pin 3
55
P15[2]
Accelerometer enable/sleep
56
P15[3]
General purpose Push Button Switch
57
NC
No Connect
58
NC
No Connect
59
NC
No Connect
60
NC
No Connect
61
NC
No Connect
62
NC
No Connect
63
Vcca
Input to analog core
64
Vssa
GND
65
Vdda
3.3 V
66
Vssd
GND
67
P12[2]
General expansion connector (J2) Pin 12
68
P12[3]
General expansion connector (J3) Pin 12
69
P4[0]
LED 5 drive
70
P4[1]
LED 6 drive
71
P0[0]
General expansion connector (J2) Pin 2
72
P0[1]
General expansion connector (J3) Pin 2
73
P0[2]
General expansion connector (J2) Pin 3
74
P0[3]
General expansion connector (J3) Pin 3
75
VddIo0
76
P0[4]
General expansion connector (J2) Pin 4
77
P0[5]
General expansion connector (J3) Pin 4
78
P0[6]
General expansion connector (J2) Pin 5
79
P0[7]
General expansion connector (J3) Pin 5
3.3 V
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
Technical Reference
Table 5-2. Pin Assignments (continued)
Pin Number
Port Number
Design Function
80
P4[2]
LED 7 drive
81
P4[3]
LED 8 drive
82
P4[4]
General expansion connector (J2) Pin 6
83
P4[5]
General expansion connector (J3) Pin 6
84
P4[6]
General expansion connector (J2) Pin 7
85
P4[7]
General expansion connector (J3) Pin 7
86
Vccd
Input to digital core
87
Vssd
GND
88
Vddd
3.3 V
89
P6[0]
General expansion connector (J2) Pin 8
90
P6[1]
General expansion connector (J3) Pin 8
91
P6[2]
General expansion connector (J2) Pin 9
92
P6[3]
General expansion connector (J3) Pin 9
93
P15[4]
unused / No Connection
94
P15[5]
No Connect
95
P2[0]
LED 1 drive
96
P2[1]
LED 2 drive
97
P2[2]
LED 3 drive
98
P2[3]
LED 4 drive
99
P2[4]
unused / No Connection
100
Vddio2
3.3 V
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H
41
Technical Reference
42
CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Document # 001-49613 Rev. *H