download the file without using the download manager

CY3280-24x94
Universal CapSense® Controller Kit Guide
Document No. 001-70137 Rev. *A
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 lifesupport 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.
PSoC Designer™ and Programmable System-on-Chip™ are trademarks and PSoC® is a registered trademark of Cypress
Semiconductor Corp. I²C is a registered trademark of Philips Electronics. All other trademarks or registered trademarks referenced herein are property of the respective corporations.
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.
2
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Contents
1. Introduction
1.1
1.2
1.3
1.4
1.5
1.6
1.7
5
Kit Contents ..............................................................................................................................5
1.1.1 Prerequisites .................................................................................................................5
1.1.2 CY3217-MiniProg1........................................................................................................6
1.1.3 CY3240-I2USB Bridge Board........................................................................................6
1.1.4 CY3280 Universal CapSense Module Board ................................................................6
PSoC Designer .........................................................................................................................6
PSoC Programmer ...................................................................................................................6
Bridge Control Panel.................................................................................................................6
Additional Learning Resources.................................................................................................6
Document History .....................................................................................................................7
Document Conventions ............................................................................................................8
2. Getting Started
2.1
2.2
2.3
2.4
2.5
9
Kit Installation ...........................................................................................................................9
PSoC Designer .......................................................................................................................13
PSoC Programmer .................................................................................................................14
Bridge Control Panel...............................................................................................................15
Install Hardware......................................................................................................................15
3. Kit Operation
17
3.1
3.2
3.3
3.4
3.5
Introduction .............................................................................................................................17
Hardware Requirement...........................................................................................................17
CapSense Module Board Connection ....................................................................................17
Programming Device ..............................................................................................................18
Bridge Control Panel...............................................................................................................19
4. Hardware
23
4.1
4.2
System Block Diagram ...........................................................................................................23
Functional Description ............................................................................................................24
4.2.1 PSoC CY8C24094-24LTXI..........................................................................................25
4.2.2 Power Supply System .................................................................................................28
4.2.3 USB Mini B Connector ................................................................................................30
4.2.4 CapSense Module Connector .....................................................................................30
4.2.5 CPM Connector (CapSense Plus Module Connector) ................................................31
4.2.6 ISSP/I2C Connector....................................................................................................31
4.2.7 ICE-Cube Debug Connector .......................................................................................31
4.2.8 VADJ Variable Regulator Control ................................................................................32
4.2.9 LEDs ...........................................................................................................................33
4.2.10 CMOD .........................................................................................................................33
4.2.11 Rb................................................................................................................................33
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
3
Contents
5. Code Examples
5.1
5.2
5.3
35
My First Code Example .......................................................................................................... 35
5.1.1 Project Description...................................................................................................... 35
5.1.2 FlowChart ................................................................................................................... 36
5.1.3 Creating My First PSoC 1 Project ............................................................................... 37
5.1.4 Verify Output ............................................................................................................... 55
CY3280_24x94_Project1........................................................................................................ 60
5.2.1 Project Description...................................................................................................... 60
5.2.2 Device Configurations................................................................................................. 61
5.2.3 Firmware Architecture................................................................................................. 62
5.2.4 Verify Output ............................................................................................................... 63
CY3280_24x94_Project2........................................................................................................ 66
5.3.1 Project Description...................................................................................................... 66
5.3.2 Device Configurations................................................................................................. 67
5.3.3 Firmware Architecture................................................................................................. 68
5.3.4 Verify Output ............................................................................................................... 70
A. Appendix
73
A.1
A.2
Schematic............................................................................................................................... 73
Board Layout .......................................................................................................................... 74
A.2.1 PDCR-9434 (Top) ....................................................................................................... 74
A.2.2 PDCR-9434 Layer 2 ................................................................................................... 75
A.2.3 PDCR-9434 Layer 3 ................................................................................................... 76
A.2.4 PDCR-9434 Bottom .................................................................................................... 77
A.2.5 PDCR-9434 Primary Layer ......................................................................................... 78
A.2.6 PDCR-9434 Secondary Layer .................................................................................... 79
Bill of Materials ....................................................................................................................... 80
A.3
4
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
1.
Introduction
Thank you for your interest in the CY3280-24x94 Universal CapSense® Controller (UCC) Kit. This kit
is designed to easily prototype and debug the 24x94 CapSense family designs with predefined
control circuitry and plug-in hardware. The kit includes programming hardware and an I2USB bridge
for tuning and data acquisition. This module connects to any CY3280 Universal CapSense Module
board.
This document describes the CY3280-24x94 UCC kit and demonstrates the code examples
provided with the kit.
1.1
Kit Contents
The CY3280-24x94 UCC kit contains:
■
CY3280-24x94 Universal CapSense Controller board
■
CY3240-I2USB Bridge Board
■
CY3217 PSoC MiniProg1 Programmer
■
USB A to Mini-B Cable
■
CY3280-24x94 Universal CapSense Controller Kit CD
■
❐
PSoC Designer installation file
❐
PSoC Programmer installation file
❐
Bridge Control Panel installation file (packaged along with PSoC Programmer)
❐
Code examples
❐
Hardware files
❐
Kit guide
❐
Quick start guide
❐
Release notes
Chip Samples - CY8C24094-24LTXI
Universal CapSense Module boards are available for purchase separately or as part of the combination kits. Visit http://www.cypress.com/shop for more information. Inspect the contents of the kit. If
any of the parts are missing, contact your nearest Cypress sales office for further assistance.
1.1.1
Prerequisites
The following are required for the functioning of the kit:
■
CY3280 Universal CapSense Module board or user custom board similar to CY3280 module
boards
■
12 V DC adapter (optional)
■
CY3215-DK (optional, required for debugging the program in PSoC Designer)
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
5
Introduction
1.1.2
CY3217-MiniProg1
The PSoC MiniProg 1 gives you the ability to program PSoC parts quickly and easily. It is small,
compact, and connects to your PC using the provided USB A to Mini-B 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.
PSoC Programmer is a free software, which can either be launched from PSoC Designer or run as a
standalone program.
1.1.3
CY3240-I2USB Bridge Board
The I2USB Bridge allows testing, tuning, and debugging hardware and software of a PSoC application by bridging the USB port to I2C. Populated with the CY8C24894 PSoC device, the I2USB
Bridge can be connected through the ISSP pins on the controller board.
1.1.4
CY3280 Universal CapSense Module Board
The CY3280 Universal CapSense Module board is available for purchase separately or as part of
the combination kits. The CY3280-24x94 UCC can be connected to CY3280-SLM, CY3280-SRM,
CY3280-BMM, and CY3280-BSM CapSense boards.
1.2
PSoC Designer
PSoC Designer<version> is the integrated development environment (IDE) used to customize your
PSoC application. The latest PSoC Designer has many new features, bug fixes, and support for new
PSoC devices. More information about PSoC Designer is available in the PSoC Designer IDE Guide
at <Installed_directory>\Cypress\PSoC Designer\<version>\Documentation.
1.3
PSoC Programmer
PSoC Programmer offers you a simple GUI that connects to programming hardware to program and
configure PSoC devices.
1.4
Bridge Control Panel
The Bridge Control Panel (BCP) GUI is used with CY3240-I2USB Bridge Board to enable communication with I2C slave devices; here, it is used with CY3280-24x94 UCC. This software is used to
configure I2C devices and to acquire and process data received from I2C slave devices. The BCP
helps to optimize, debug, and tune the target devices.
1.5
Additional Learning Resources
Visit http://www.cypress.com for additional learning resources in the form of datasheets, technical
reference manual, and application notes.
6
■
CY8C24094/794/894/994 CapSense Applications – http://www.cypress.com/?rID=3371
This is the PSoC CY8C24094 datasheet that contains pin descriptions and other specifications of
the PSoC CY8C24094
■
CY3280-24x94 Universal CapSense Controller Board layouts:
http://www.cypress.com/?rID=3481
■
CY3280-24x94 Universal CapSense Controller Schematics – http://www.cypress.com/?rID=3481
■
Layout Guidelines in Getting Started with CapSense (Chapter 3):
http://www.cypress.com/?rID=48787
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Introduction
The layout guidelines section in Getting started with CapSense describes layout guidelines for
CapSense applications with regard to PCB layout, overlay thickness, material selection and
chassis design.
1.6
■
CY3240 USB-I2C Bridge Guide – http://www.cypress.com/?rID=3421
■
CY3280-SLM Linear Slider Module Kit – http://www.cypress.com/go/CY3280-SLM
■
CY3280-SRM Radial Slider Module Kit – http://www.cypress.com/go/CY3280-SRM
■
CY3280-BSM Simple Button Module Kit – http://www.cypress.com/go/CY3280-BSM
■
CY3280-BMM Matrix Button Module Kit – http://www.cypress.com/go/CY3280-BMM
■
MiniProg Users Guide and Code Examples – http://www.cypress.com/?rID=37459
■
PSoC Designer Training – http://www.cypress.com/go/psocdesigner-training
This is a web-based course that provides an overview of PSoC and its design tools.
Document History
Revision
**
*A
PDF Creation
Date
06/22/2011
10/28/2011
Origin of
Change
Description of Change
SSHH
Initial version of kit guide
SASH
Added “My First Code Example” section.
Updated InstallShield Wizard step. Added note
about CY8C24094 UCC board’s OCD support in
the PSoC Designer section. Added note on MiniProg to PC connection in the PSoC Programmer
section. Updated CY3280-24x94 kit CD location.
Removed I2USB Bridge connection to controller
image. Updated file names and locations in
Bridge Control Panel section.Changed
Cy8C24094-LFXI to CY8C24094-LTXI.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
7
Introduction
1.7
Document Conventions
Table 1-1. Document Conventions for Guides
Convention
Displays file locations, User entered text, and source code:
Courier New
C:\ ...cd\icc\
Displays file names and reference documentation:
Italics
Read about the sourcefile.hex file in the PSoC Designer User Guide.
[Bracketed,Bold]
Displays keyboard commands in procedures:
[Enter] or [Ctrl][C]
Represents menu paths:
File > Open
File > Open >New Project
Displays commands, menu paths, and icon names in procedures:
Bold
Click the File icon and then click Open.
Times New Roman
Text in gray boxes
8
Usage
Displays an equation:
2+2=4
Describes cautions or uniwue functionality of the product.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
2.
Getting Started
This chapter describes the installation and configuration of the CY3280-24x94 UCC Kit.
2.1
Kit Installation
To install the kit software, follow these steps:
1. Insert the kit CD in the CD drive of your PC. The CD is designed to auto-run and the kit installer
startup screen appears.
Download the latest kit installer from http://www.cypress.com/go/CY3280-24x94. Download the
kit installer ISO file and create an installer CD or extract the ISO using Ironware and install the
executable.
2. Click Install CY3280-24x94 to start the installation.
Figure 2-1. Kit Installation
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
9
Getting Started
Note If auto-run does not execute, double-click cyautorun.exe in the root directory of the CD.
Figure 2-2. CD Root Directory.
3. The InstallShield Wizard screen appears. On this screen, choose the folder location to install the
setup files. You can change the location of the folder for the setup files using Change, as shown
in Figure 2-3.
4. Click Next to launch the kit installer.
Figure 2-3. InstallShield Wizard
10
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Getting Started
5. In the Product Installation Overview screen, select the installation type that best suits your
requirement. The drop-down menu has three options – Typical, Complete, and Custom (see
Figure 2-4).
6. Click Next to start the installation.
Figure 2-4. Installation Type Options
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
11
Getting Started
7. When the installation begins, a list of packages appear on the Installation Page. A green check
mark appears next to every package that is downloaded and installed.
8. Wait until all the packages are downloaded and installed successfully.
Figure 2-5. Installation Page
9. Click Finish to complete the installation.
Figure 2-6. Installation Completion Page
12
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Getting Started
After software installation, verify your setup by opening PSoC Programmer with the MiniProg
attached to PC. Open Bridge Control Panel with the I2USB bridge attached to the PC to verify
driver installation.
2.2
PSoC Designer
1. Click Start > All Programs > Cypress > PSoC Designer <version> > PSoC Designer
<version>.
2. Click File > New Project to create a new project; click File > Open Project/Workspace to work
with an existing project.
Figure 2-7. PSoC Designer Interconnect View
3. To experiment with code examples, refer to the Code Examples chapter on page 35.
Notes
■
For more details on PSoC Designer, see the PSoC Designer IDE Guide at
<Install_directory>\Cypress\PSoC Designer\<version>\Documentation.
■
The device CY8C24094 on the Universal CapSense Controller board supports On-Chip-Debug
(OCD) and can emulate any device among the 24x94 family. Any device in the 24x94 family can
be selected in the device selection window for new PSoC Designer projects.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
13
Getting Started
2.3
PSoC Programmer
1. Click Start > All Programs > Cypress > PSoC Programmer <version> > PSoC Programmer
<version>.
2. Connect MiniProg to the PC using a USB A to Mini-B cable.
3. Select the MiniProg from the port selection.
Figure 2-8. PSoC Programmer Window
4. Click the File Load button from the Programmer menu bar; navigate and select the hex file to
load.
5. Use Program button to program the hex file on to the chip.
6. When programming is successful, Programming Succeeded appears in the Actions pane.
7. Close PSoC Programmer.
Note For more details on PSoC Programmer, go to the Programmer user guide at:
<Install_directory>\Cypress\Programmer\<version>\Documents.
14
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Getting Started
2.4
Bridge Control Panel
1. Click Start > All Programs > Cypress > Bridge Control Panel <version>> Bridge Control
Panel <version>
2. Select 5.0 V from the Power Setting box (see Figure 2-9).
3. Select the device to be connected from the port window.
4. Click the Variable Settings option from the Chart menu; click Load, and navigate to and open
the *.ini file.
5. Select File > Open; navigate to and open the *.iic file. The *.iic file contents appear on the
Editor pane of the Bridge Control Panel.
Figure 2-9. Selecting the Bridge
Note For more details on the BCP, view the help topics from the Bridge Control Panel Menu bar.
2.5
Install Hardware
This kit does not require any hardware installation.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
15
Getting Started
16
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
3.
3.1
Kit Operation
Introduction
The CY3280-24x94 UCC connects to any CY3280 Universal CapSense Module board. This kit
requires PSoC Designer for development, PSoC Programmer for programming, and Bridge Control
Panel to test and tune the CapSense parameters.
3.2
3.3
Hardware Requirement
■
CY3280-24x94 UCC board (PSoC Device ID: CY8C24094-24LTXI)
■
CY3280-SLM (linear slider module) board
■
CY3217-MiniProg1
■
CY3240-I2USB Bridge Board
■
USB A to Mini-B cable
CapSense Module Board Connection
The CapSense Module Board can be connected to the controller through Port P2 of the controller
and J1 of the CY3280-SLM Universal CapSense linear slider module.
Figure 3-1. Connecting CapSense Module Board to Universal CapSense Controller
On the CY3280-24x94 UCC board, place shunts on pins 1 to 2 of J4 (XRES select). On the CY3280SLM Universal CapSense Linear Slider Module, place a shunt on pins 2 and 3 of J2.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
17
Kit Operation
3.4
Programming Device
The CY3280-24x94 UCC is programmed using a MiniProg1 provided with the kit.
Figure 3-2. MiniProg 1 Connected to Controller
1. Connect the CY3280-24x94 ISSP connector (J3) to your computer using the PSoC MiniProg 1
and a USB cable (A to Mini B). Use PSoC Programmer for programming.
2. Connect pin 2 of J1 with a jumper to pin 3 to allow power to be supplied by the MiniProg1.
3. LED D1 on the CY3280-24x94 UCC is ON when the board is powered from a 12 V DC supply,
USB, 9 V battery, PSoC MiniProg, I2USB Bridge, or VADJ. LED D2 lights up once the board is
powered by any of the power sources (12 V DC supply, USB, 9 V battery, PSoC MiniProg,
I2USBBridge, ICE Cube, or VADJ).
4. Program the CY3280_24x94_Project1.hex file from the kit CD or from the location
<Install_directory>\Cypress\CY3280-24x94\<version>\Firmware\
CY3280_24x94_Project1\CY3280_24x94_Project1.hex on to the CY3280-24x94 UCC
board using MiniProg1 in the Power Cycle Mode. While programming is in progress, the Target
Power LED on the MiniProg 1 is ON (see Figure 3-2).
5. When Programming Succeeded appears in the Actions pane, detach the MiniProg 1 and connect an I2USB Bridge to ISSP connector.
18
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Kit Operation
3.5
Bridge Control Panel
The I2USB Bridge is used to get the CapSense parameters from the controller board. You can view
these parameters using the BCP software. Follow these steps to use BCP with the CY3280-24x94
UCC board:
1. Open Bridge Control Panel from Start > All Programs > Cypress > Bridge Control Panel
<version> > Bridge Control Panel<version>.
2. Select the device to be connected from the port selection window.
3. Select Variable Settings option from the Chart menu. Load the .ini file, by clicking the Load button. The CY3280_SLM_Project1.ini file is the variable setting file, available in the kit CD or at the
following location: <Installed_directory>\Cypress\CY3280-24x94\<version>\Firmware\
USB-I2CBridgeSoftwareConfig.
4. Load the CY3280_SLM_Project1.iic file for iic commands that can be sent to the board. The .iic
file is the configuration setting file, available in the kit CD or at the following location:
<Installed_directory>\Cypress\CY3280-24x94\<version>\Firmware\
USB-I2CBridgeSoftwareConfig.
5. Go to File > Open File > CY3280_SLM_Project1.iic to select the file for iic commands.
6. Select +5 V in the Power Settings box.
7. Click Toggle Power to power the I2USB Bridge; the red LED D1 glows.
8. Send the commands in the Editor pane to the controller board.
Note PSoC Designer and PSoC Programmer must be closed before opening Bridge Control Panel.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
19
Kit Operation
Figure 3-3. Bridge Control Panel Editor View
First
command line
Second
command
line
9. Click Send to send commands to the controller board; click Repeat to get parameters continuously from the controller.
10.Touch a button or slider. Each touch lights up the associated LED on the module board, representing where your finger is on the slider.
Figure 3-4. LED Glows on Touching Sensor SLD1
20
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Kit Operation
11. Click Chart to switch to Chart view and see the respective waveforms of CapSense parameters.
Figure 3-5. Bridge Control Panel Chart View
Note In this figure, the brown line represents the axis; the blue line indicates RawCount, and the
green line indicates the Baseline.
12.View the required parameters by selecting or clearing the check boxes to the right of the Chart
view.
13.Click Stop to stop scanning.
14.Click Table to view the values of the demonstration board variables.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
21
Kit Operation
Figure 3-6. Bridge Control Panel Table View
22
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
4.
4.1
Hardware
System Block Diagram
The CY3280-24x94 UCC board has the following sections:
■
PSoC CY8C24094-24LTXI
■
Power supply system
■
USB Mini B connector
■
CapSense module connector
■
ISSP/I2C connector
■
ICE-Cube debug connector
■
VADJ variable regulator control
■
LEDs
■
Reset switch
■
CMOD
Power
Supply
Vadj Variable
Regulator
USB Comm
MiniProg I2USB
Bridge ICE Cube
9 V Battery
12 V Adapter
Figure 4-1. System Block Diagram
CMOD
Power
Selection
Jumper
Power
Selection
Jumper
Rb
Jumper
for XRES
Selection
PSoC
CY8C24094-LTXI
CapSense Module
Connector
CapSense Plus
Module
Connector
LEDs
SPI
Connector
ISSP or I2C
Connector
ICE Cube
Connector
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Mini B USB
Connector
23
Hardware
4.2
Functional Description
The CY3280-24x94 UCC includes PSoC CY8C24094-24LTXI, ISSP/I2C connector, CapSense Module connector, CapSense plus Module Connector, Mini B USB connector, DC Supply jack, and ICECube debug connector. The following figure shows the different functional blocks on the CY328024x94 UCC board.
Figure 4-2. CY3280-24x94 UCC Functional Blocks
9 V battery
terminal
Jumper for XRES
selection
ISSP/I2C
connector
SPI/I2C header
DC supply jack
5 V and VADJ
voltage
regulator ICs
LEDs
ICE-Cube
debug connector
Jumper to select
power option
CapSense Plus
module connector
Mini B USB
connector
PSoC
CY8C24094
CapSense module
connector
24
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Hardware
4.2.1
PSoC CY8C24094-24LTXI
The PSoC CY8C24094 is initially factory programmed as a CapSense controller with the control circuitry to work with the CY3280-24x94 UCC kit. The PSoC CY8C24094 along with CSD technology
demonstrates the use of CapSense buttons and linear sliders. The module board connected to the
CY3280-24x94 Universal CapSense Controller has sensors and LEDs.
The CapSense module board is connected to PSoC through Port P2. The list of pins connected to
different ports is shown in Table 4-1.
PSoC CY8C24094 is programmed through ISSP using a MiniProg and the data acquisition and output checking is done using I2USB Bridge.
Figure 4-3. Schematic View of PSoC CY8C24094 24LTXI
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
25
Hardware
Table 4-1. Pin Description of CY8C24094-24LTXI
Pin Number
26
Name
Description
Connect to
1
P4[7]
GPIO
P3
2
P4[5]
Vbus in USB Connector
J6
3
P4[3]
GPIO
P3
4
P4[1]
GPIO
P3
5
OCDE
OCD mode direction pin
P1
6
OCDO
OCD mode direction pin
P1
7
Vss
Ground Connection
8
P3[7]
GPIO
P3
9
P3[5]
GPIO
P3
10
P3[3]
CapSense
P2
11
P3[1]
Rb (bleed Resistor)
P2
12
P5[7]
GPIO
P3
13
P5[5]
GPIO
P3
14
P5[3]
GPIO
P3
15
P5[1]
GPIO
P3
16
P1[7]
I2C Serial Clock (SCL)
P2
17
P1[5]
I2C Serial Data (SDA)
P2
18
P1[3]
CapSense
P2
19
P1[1]
I2C SCL, ISSP Clock
P2,P3,J2,J3
20
Vss
Ground Connection
21
D+
USB D+
J6
22
D-
USB D-
J6
23
Vdd
Supply Voltage
24
P7[7]
GPIO
P3
25
P7[6]
GPIO
P3
26
P7[5]
GPIO
P3
27
P7[4]
GPIO
P3
28
P7[3]
GPIO
P3
29
P7[2]
GPIO
P3
30
P7[1]
GPIO
P3
31
P7[0]
GPIO
P3
32
P1[0]
I2C SDA, ISSP Data
P2,P3,J2,J3
33
P1[2]
GPOI,LED4
P2
34
P1[4]
CapSense
P2
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Hardware
Table 4-1. Pin Description of CY8C24094-24LTXI (continued)
Pin Number
Name
Description
Connect to
35
P1[6]
CapSense
P2
36
P5[0]
GPIO
P3
37
P5[2]
GPIO
P3
38
P5[4]
GPIO
P3
39
P5[6]
GPIO
P3
40
P3[0]
CapSense
P2
41
P3[2]
CapSense
P2
42
P3[4]
GPIO
P3
43
P3[6]
GPIO
P3
44
HCLK
OCD high speed clock output
P1
45
CCLK
OCD CPU clock output
P1
46
XRES
Active high external reset with internal
pull down
J4
47
P4[0]
GPIO
P3
48
P4[2]
GPIO
P3
49
P4[4]
GPIO
P3
50
P4[6]
GPIO
P3
51
P2[0]
CapSense
P2
52
P2[2]
CapSense
P2
53
P2[4]
CapSense
P2
54
P2[6]
CapSense
P2
55
P0[0]
GPIO
P2
56
P0[2]
CapSense
P2
57
P0[4]
CapSense
P2
58
P0[6]
CapSense
P2
59
Vdd
Supply Voltage
60
Vss
Ground Connection
61
P0[7]
Shield Electrode
62
P0[5]
Integrating Input
63
P0[3]
GPIO,LED3
P2
64
P0[1]
GPIO,LED2
P2
65
P2[7]
GPIO,LED1
P2
66
P2[5]
GPIO,LED0
P2
67
P2[3]
CapSense
P2
68
P2[1]
CapSense
P2
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
P2
27
Hardware
4.2.2
Power Supply System
The power supply system on this board is versatile; it takes input supply from the following sources:
■
12 V DC supply using connector J5
■
9 V battery connector using connectors BH1 and BH2
■
USB power (5 V) from communications section using connector J6
■
Power from MiniProg and I2USB Bridge connected at J3
■
Power from ICE Cube connected at P1
The board power domain is split into:
■
Vin rail: This is the rail where the input of the on-board regulators is connected. This domain is
powered by the power sources (12 V DC supply and 9 V battery terminal) through protection
diodes.
■
5 V rail: This is the output of the 5 V regulator IC U5 and also from the devices such as MiniProg
or I2USB Bridge. The rail is a fixed 5 V output regardless of any jumper settings. The voltage in
this rail can be less than 5 V only when the board is powered by the USB power.
■
VADJ rail: This is the output of the variable voltage regulator control. The following block diagram
shows the structure of the power system on the board.
■
VCC rail: This is the VDD rail of CY8C24094 device. This is supplied either from a 5 V rail, VADJ
rail, or ICE Cube debugger. The following block diagram shows the structure of the power system
on the board.
Figure 4-4. Power Supply System Structure
28
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Hardware
Figure 4-5. Schematic View of the Power Supply System Structure
DO NOT POPULATE
BH1
BAT 9V FEMALE
D4
SOD123
2
1
POS
1
DIODE SCHOTTKY
Adj Regulator (1.2 V to 5.0 V as is here)
5.0 V Regulator
9V
1
NEG
BH2
D5
1
BAT 9V MALE
2
SOD123
DIODE SCHOTTKY
U5
LM1117MPX-5.0
5V
5V
SOT-223
3216
+ C9
10 uFd 16v
VIN
1
GND
VOUT
2
TAB
4
U3
LP3875ES-ADJ TO263-5
VIN
VOUT 4
Vadj
SOT-223
2
1
3216
+ C10
10 uFd 16v
3216
nSD
+ C6
10 uFd 16v
ADJ
RegAdj R81
5
1
DIODE SCHOTTKY
POWER JACK P-5
3
8.87K 1%
C7
3216
R82
0402
0.01 uFd
+ C8
10 uFd 16v
2
NO LOAD
0805
1
GND
2
3
Vin
D6
SOD123
1
3
2
0402
6V-12V
J5
R89
0402
100K
ICE-Cube
5V
VCC
D3
SOD123
S1
S2
S3
S4
2
1
P1
DIODE SCHOTTKY
J6
VBUS
DM
DP
ID
GND
1
2
3
4
5
1
2
3
4
5
6
7
8
HCLK
R71
1
2
24
DM
2
24
DP
XRES
CCLK
0603
6
7
VBUS
R69
1
OCDO
0402
8
9
0603
OCDE
USB MINI AB
R90
ICE
C12
0402
0.1 uFd
RJ45 Right Angle
ISSP / I2C
J3
1 1
2 2
3 3
4 4
5 5
R74
R76
330 pFd
1K
1K
1K
1K
1
R73
1
2
3
1
2
3
HEADER 3
DEFAULT JUMPER PIN 1 TO 2
0402
0402
2
0402
100K
0402
0402
0402
C5
R72
4.2.2.1
1
P1[5]b
NOTE:
0603
C11
J4
XRES
XRES/INT
P1[1]
P1[0]
HDR 1x5
1K
R87
5V
2
0.01 uFd
Power Supply Jumper Setting
The jumper settings for each power setting are as follows:
1. To allow power to be supplied by the MiniProg, I2USB Bridge either connect pin 2 and pin 3 of J1
with a jumper or connect pin 2 and pin 1 of J1 with a jumper.
2. To allow power from the 12 V DC supply, 9 V battery terminal, or Mini B USB connector, connect
pin 2 and 3 of J1 with a jumper.
3. To allow power from the variable regulator control (VADJ), connect the pin 1 and 2 of J1 with a
jumper
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
29
Hardware
4.2.3
USB Mini B Connector
The USB Mini B connector is a mini port used to communicate between the PC and the board and to
power up the controller, supplying a voltage of 5 V. Protection diode D3 ensures that the 5 V from the
board does not flow to the USB connector.
Figure 4-6. Schematic View of the USB Mini B Port
R89
0402
100K
5V
D3
SOD123
VBUS
2
1
6
7
DIODE SCHOTTKY
S3
S4
R71
1
2
3
4
5
1
2
24
DM
2
24
DP
0603
S1
S2
J6
VBUS
DM
DP
ID
GND
R69
1
8
9
0603
USB MINI AB
R87
4.2.4
0402
0402
C11
1
100K
2
0.01 uFd
CapSense Module Connector
The CY3280-24x94 has an expansion port, P2. It is designed to connect CapSense module boards.
The CY3280-24x94 controller board can be used with any of the Universal CapSense module
boards. Universal CapSense module boards can be interfaced to the CY3280-24x94 controller
through the 44-pin receptacle connector P2. The pin mapping for the port P2 is shown in the following figure.
Figure 4-7. Schematic View of Port P2
1 R83
0402
P1[0]
SDA
2
zero
NC
P0[1]
P2[5]
P2[1]
NC
P1[5]
NC
P1[2]
P1[6]
P3[2]
P2[2]
P2[6]
P0[2]
P0[6]
5V
P2
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
Vadj
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
1 R85
2
zero
P0[7]
P0[3]
P2[7]
P2[3]
0402
Vin
VCC
P1[1]
SCL
P3[3]
P1[7]
P1[3]
NC
P1[4]
P3[0]
P2[0]
P2[4]
P0[0]
P0[4]
22x2_RA_Recptacle
30
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Hardware
4.2.5
CPM Connector (CapSense Plus Module Connector)
The CY3280-24x94 has an expansion port, P3. This port is designed to connect CY3280-CPM1
(CapSense Plus Module) to demonstrate CapSense Plus features of the CY8C24094 device. The
pin mapping for the port P3 is shown in the following figure.
Figure 4-8. Schematic View of Port P3
1 R84
0402
P1[0]
SDA
2
zero
NC
P4[1]
P7[5]b
P7[1]b
P3[5]
P5[5]
P5[1]
P5[2]
P5[6]
P3[6]
P7[2]b
P7[6]b
P4[2]
P4[6]
5V
P3
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
Vadj
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
1 R86
2
zero
P4[7]
P4[3]
P7[7]b
P7[3]b
0402
Vin
VCC
P1[1]
SCL
P3[7]
P5[7]
P5[3]
P5[0]
P5[4]
P3[4]
P7[0]b
P7[4]b
P4[0]
P4[4]
22x2_RA_Recptacle
4.2.6
ISSP/I2C Connector
In-System Serial Programmer (ISSP) is used to program the device using the MiniProg programmer
device and the USB cable. Plug in the MiniProg device to the ISSP Header J3. The ISSP connector
is also used to connect the I2USB Bridge to communicate between the PC and the controller board.
XRES/INT of the ISSP/I2C header can be either connected to XRES of CY8C24094 by shorting Pin1
and Pin 2 of J4 using a jumper or it can be connected to P1[5] of CY8C24094 device by shorting Pin
2 and Pin 3 of J4 using a jumper. Refer to Power Supply Jumper Setting on page 29. The pin mapping for the ISSP connector is shown in the following figure.
Figure 4-9. Schematic View of the ISSP Connector
ISSP / I2C
J3
1 1
2 2
3 3
4 4
5 5
5V
J4
XRES
XRES/INT
P1[1]
P1[0]
P1[5]b
1
2
3
1
2
3
HEADER 3
HDR 1x5
NOTE:
4.2.7
DEFAULT JUMPER PIN 1 TO 2
ICE-Cube Debug Connector
The ICE-CUBE Debugger allows users to debug and view the content of specific memory locations.
The ICE-Cube debugger can be connected to the CY3280-24x94 controller through port P1. The following figure shows the schematic view of the ICE-CUBE debug connector.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
31
Hardware
Figure 4-10. Schematic View of the ICE CUBE Connector
VCC
P1
XRES
CCLK
OCDO
OCDE
0402
C12
1
2
3
4
5
6
7
8
HCLK
R90
0402
ICE
0.1 uFd
RJ45 Right Angle
0402
0402
0402
1K
0402
R76
1K
2
R74
330 pFd
1K
VADJ
R73
4.2.8
C5
1K
0603
R72
1
1K
Variable Regulator Control
The CY3280-24x94 controller has a variable regulator control used to vary input voltage using the
voltage regulator IC U3. The input for the variable regulator control is the output of the 5 V Regulator.
VADJ is used to demonstrate CapSense at several voltages. Vout can be varied by using the digital
potentiometer U3.
Figure 4-11. Schematic View of the VADJ Regulator
5V
U3
LP3875ES-ADJ TO263-5
VIN
VOUT 4
Vadj
RegAdj R81
5
1
ADJ
8.87K 1%
C7
3216
R82
0402
+ C8
10 uFd 16v
2
NO LOAD
0.01 uFd
0805
3
+ C6
10 uFd 16v
nSD
0402
1
3216
GND
SOT-223
2
32
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Hardware
4.2.9
LEDs
The LEDs are used to show the status of the controller board. LED D1 lights up on connecting power
supply from 12 V DC supply, USB, 9 V battery, PSoC MiniProg, I2USB Bridge, or VADJ. LED D2
lights up once the board is powered by any of the power sources (12 V DC supply, USB, 9 V battery,
PSoC MiniProg, I2USB Bridge, ICE Cube, or VADJ).
Figure 4-12. Schematic View of the LEDs D1 and D2
5V
VCC
R78
1K
2
2
1K
0805
0805
R77
D1
LED Red
1
1
4.2.10
D2
0805
0805
LED Red
CMOD
CMOD is the test point provided on the UCC for accessibility of charge and discharge waveforms of
the measured capacitance.It is the test point for modulating capacitance C3. This test point may
increase the noise sensitivity by acting as an antenna.
4.2.11
Rb
Rb is the bleed resistor connected to P3 [1] provided on UCC. This is one of the external components required for capacitive sensing on CY8C24094 24LTXI.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
33
Hardware
34
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
5.
Code Examples
All code examples are available in the Firmware folder of the kit CD or at the following location:
<Install_directory>\Cypress\CY3280-24x94\<version>\Firmware\
5.1
My First Code Example
5.1.1
Project Description
This project demonstrates the use of the CapSense buttons and linear slider on the CY3280-SLM
board using CSD technology and CY8C24x94. The EzI2C user module is used to transfer
CapSense parameters related to a sensor from the board to the PC for monitoring.
This project scans five CapSense buttons and a 10-segment slider using the CSD user module.
There are five LEDs on board, which illuminate when a CapSense button or slider is touched. The
EzI2C user module is used to provide a register-based I2C slave communications protocol. The status of CapSense sensors (both button and slider) and their parameters are updated in the I2C register. This register can be accessed by any I2C master, similar to the I2USB Bridge.
The application starts by executing boot.asm. The boot.asm does the hardware initialization and
invokes the 'main' function. The main function initializes the EzI2C Slave user module and
CapSense user module. After initialization, the main function enters a loop, which does the following:
■
Scans all sensors
■
Reads the sensor ID sent by the I2C master
■
Stores CapSense data in the I2C registers
■
Updates the LED status for the On/Off sensors
The following user modules are used in this project:
■
CSD: The CSD provides capacitance sensing using the switched capacitor technique with a
sigma-delta modulator to convert the sensed switching capacitor current to digital code.
■
EzI2Cs: The EzI2Cs user module implements an I2C register-based slave device.This user module does not require any digital or analog PSoC blocks. It is used to transfer all CapSense parameters related to a sensor to the PC for monitoring.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
35
Code Examples
5.1.2
FlowChart
Start
Enable Global
Interrupts. Clear
all LED’s
Set RAM buffer
Start I2C, CSD user modules.
Initialise Baseline and set
finger threshold
Scan all sensors and update
baseline of each sensor
Store RawCount, Baseline, Difference
count, Sensor Mask into I2C buffer for all
sensors
Is any Capsense
button active?
No
Store 0xFF as default active
button data in I2C buffer
No
Store 0x00 as default slider
status data in I2C buffer
Yes
Store active button number in
I2C buffer
Get finger position on slider
Is finger present
on slider?
Yes
Store finger position on slider
in I2C buffer
Turn ON Led based on active
sensor number
36
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
5.1.3
Creating My First PSoC 1 Project
1. Open PSoC Designer.
2. To create a new project, click File > New Project. The New Project window opens.
3. In the New Project window, select the Chip-level icon. Name the project
Example_My_First_PSoC_Project.
4. For Location, click Browse and navigate to the directory in which you want to create the project.
Figure 5-1. New Project Window
5. Click OK. The Select Project Type window opens.
6. In this window under Select Target Device, click View Catalog.
Figure 5-2. Select Project Type Window
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
37
Code Examples
7. The Device Catalog window opens. Click on the USB tab, and scroll down to the CY8C24794,
CY8C24894, CY8C24994 section.
8. For this project click CY8C24794-24LTXI and then click Select.
Figure 5-3. Device Catalogue Window
9. Under Generate 'Main' File Using: select C, and then click OK.
10.By default, the project opens in chip view.
38
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
Figure 5-4. Default View
11. Now, place and configure the modules required for this design. Connect the modules together
and to the pins of the PSoC. In the User Modules window, expand the Cap Sensors folder. In
this folder right click on CSD and select Place.
Figure 5-5. User Modules Window - CSD Select
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
39
Code Examples
12.A window to choose the CSD configuration opens. Choose Select CSD with PRS16 as Clock
Source configuration and click OK.
Figure 5-6. CSD Configuration
40
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
13.The CSD user module gets placed.
Figure 5-7. CSD User Module Placement
14.Configure the CSD_1 properties as shown in Figure 5-8.
Figure 5-8. CSD User Module Properties
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
41
Code Examples
15.To select the CSD Wizard option, right click on CSD user module to assign pins to the
sensors.
Figure 5-9. Open CSD Wizard
42
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
Figure 5-10. CSD Wizard Window
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
43
Code Examples
16.Configure the Global Settings in the CSD Wizard window.
Figure 5-11. Global Settings - CSD Wizard
17.Click on the slider in the CSD Wizard to view the Sensor Settings. Configure the sensor settings.
Figure 5-12. Sensors Settings - CSD Wizard
18.To assign the sensor on a particular pin, click and drag from the sensor block to the required pin
in the Pin Assignment window. Drag and drop SW0 to pin P1 [6]. The assignment of the sensor
pins can be done in either Chip Pin Assignment View (Figure 5-13) or Table Pin Assignment
View (Figure 5-14).
44
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
Figure 5-13. Assigning Sensors to Pins - Chip Pin Assignment View
Figure 5-14. Assigning Sensors to Pins - Table Pin Assignment View
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
45
Code Examples
19.The following screenshot shows the CSD Wizard window after a sensor is assigned.
Figure 5-15. Sensor Assigned
20.Next, assign all the sensors according to Table 5-1.
46
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
Table 5-1. Sensor Assignment
Sensor
Port Pin
SW0
P1[6]
SW1
P1[3]
SW2
P3[3]
SW3
P2[1]
SW4
P2[3]
S1(0)
P1[4]
S1(1)
P0[6]
S1(2)
P0[4]
S1(3)
P0[2]
S1(4)
P2[6]
S1(5)
P2[4]
S1(6)
P2[2]
S1(7)
P2[0]
S1(8)
P3[2]
S1(9)
P3[0]
Figure 5-16. All Sensors Assigned - Table Pin Assignment View
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
47
Code Examples
Figure 5-17. All Sensors Assigned - Chip Pin Assignment View
21.Click OK to exit the CSD wizard and return to main screen.
22.In the User Modules window, expand the Digital Comm folder, select EzI2Cs, right click, and
place an EzI2Cs in the design.
Figure 5-18. User Module Window - EzI2Cs Select
48
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
23.The EzI2Cs user module does not require a digital block for placement because it requires only
two port pins (SCL and SDA), either P[1]0-P[1]1 or P[1]5-P[7]1.
24.Configure the properties of EzI2Cs_1 as shown in Figure 5-19.
Figure 5-19. EzI2Cs User Module Properties
26.Configure the port pin P2[5] in the Pinout window.
Figure 5-20. P2[5] Port Pin Properties
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
49
Code Examples
27.Configure the properties of P2[7], P0[1], P0[3], and P1[2] as shown in the following figures.
Figure 5-21. P2[7] Port Pin Properties
Figure 5-22. P0[1] Port Pin Properties
Figure 5-23. P0[3] Port Pin Properties
Figure 5-24. P1[2] Port Pin Properties
50
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
28.Configure the Global Resources window as shown in Figure 5-25.
Figure 5-25. Global Resources Window
29.Open the existing main.c file within Workspace Explorer. Replace the existing main.c content
with the content of the embedded Example_My_First_Example_Project_Main.c file (see
Figure 5-17), which is attached in this PDF document.
Figure 5-26. Workspace Explorer Window
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
51
Code Examples
30.Add a new file to the project by clicking File > New File.
Figure 5-27. Adding a New File to Project
31.Select a .C file type and name the file ‘display’.
Figure 5-28. File Types
52
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
32.Create 2 .h file types and name them main.h and display.h respectively.
Figure 5-29. New Files in Project
33.Copy the content of the embedded display.c, display.h, and main.h files, that are attached with
this PDF document, to the respective files in the project.
34.To build the project, go to Build > Generate/Build 'Example_My_First_PSoC_Project' Project.
35.Connect the CY3280-24X94 board to the PC through a MiniProg1.
Figure 5-30. Connecting MiniProg1 to the Board
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
53
Code Examples
36.The board can be programmed either through the PSoC Designer IDE or by launching PSoC
Programmer. To program the board using PSoC Programmer, refer to Section 3.4. To program
the board through PSoC Designer follow these steps.
37.Click on Program > Program Part
Note While programming the board through PSoC Designer, close any open instance of PSoC Programmer.
Figure 5-31. Program Part Window
Toggle Power
Button
Program Button
38.In the Program Part window, ensure the following:
a. In the Port Selection drop down box, select MiniProg1/xxxxxxxxxxx and make certain it is
‘Connected'
b. Set Acquire Mode to Power Cycle
c. Set Verification to Off
d. Set Power settings to 5.0 V
39.Click on the Program button (see Figure 5-31) to start programming the board.
Note Ensure that the shorting jumper is placed on pin 2 of J1 and pin 1 of J7.
54
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
40.The board programming starts and you can observe the status on the progress bar.
Figure 5-32. Programming Status
41.When programming is successful, you get the 'Operation Succeeded!' message.
Figure 5-33. ‘Operation Succeeded!' Message
5.1.4
Verify Output
1. Connect a linear slider module (SLM) on connector P2 of the board.
2. Disconnect the MiniProg1 from the header J3 and connect a USB-I2C bridge board in its place.
3. Connect a USB cable from the USB-I2C bridge board to a free USB port on a PC.
4. Open Bridge Control Panel by clicking on Start > Programs > Cypress > Bridge Control
Panel <version> > Bridge Control Panel <version>. Ensure that the PSoc Designer and PSoC
Programmer are closed before opening the bridge control panel.
5. Select the Variable Settings option from the Chart menu, click Load, navigate to open the
CY3280_SLM_Project1.ini file from the CD or from the following kit install location:
<Install_directory>\Cypress\CY3280-24x94\<version>\Firmware\
USB-I2CBridgeSoftwareConfig and click OK.
6. Click Open File from the File menu; navigate to and open the CY3280_SLM_Project1.iic file from
the CD or from the kit install location <Install_directory>\Cypress\CY3280-24x94\<version>\Firmware\USB-I2CBridgeSoftwareConfig and click OK.
7. Select +5 V in the power settings box. Click Toggle Power to power the I2USB Bridge, LED (red)
D1 glows.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
55
Code Examples
Figure 5-34. Linear Slider Module and USB-I2C Bridge connected to the Capsense Controller Board
First
command line
Second
command line
56
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
8. On the CapSense slider board, touch the button with your finger. Each button touch lights up the
associated LED on the module board.
9. Touch the linear slider with your finger. The associated LED on the module board lights up, representing where you finger is on the slider.
10.The CapSense parameters such as RawCount, Baseline, Difference Count, and Mask Info (refer
to the CSD User module datasheet for a more detailed explanation of each parameter) for a particular sensor can be seen on the Bridge Control Panel. The current active button number and
finger position on the slider are also outputted on the Bridge Control Panel.
11. The syntax of the first command line is as follows:
W
05
0
1
p
Write command
Slave Id
Address
Offset
Sensor
number
Stop
(constant)
(constant)
(In hexadecimal, Valid
range: 0x1 – 0xF)
12.The first command writes to the Universal CapSense Controller (UCC) board, the sensor number
for which the monitoring is required.
13.The second command line reads the CapsSense parameters from the UCC board.
14.Change the sensor ID for which parameter monitoring is required and click Send to write the sensor ID to the UCC board.
Figure 5-35. Command Line View
15.Click on the second command line and then click Repeat to read I2C data received from the UCC
board.
16.Switch to the Chart tab to view the respective waveforms of CapSense parameters (see
Figure 5-36). Click on the check box to view only the required parameters.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
57
Code Examples
Figure 5-36. Bridge Control Panel Chart View - Only RawCount and Baseline Output during a
Finger Press
17.The various parameter values being received by the UCC can be seen in the Table tab in the
Bridge Control Panel.
Note The table gets populated with the received data only after the Stop
58
button is pressed.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
Figure 5-37. Bridge Control Panel Table View
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
59
Code Examples
5.2
CY3280_24x94_Project1
5.2.1
Project Description
This project demonstrates the use of the CapSense buttons and linear slider on the CY3280-SLM
board using CSD technology and CY8C24x94A. The EzI2Cs user module is used to transfer
CapSense parameters related to a sensor to the PC for monitoring. This project is implemented in
the chip level design in PSoC Designer 5.1.
This project scans five CapSense buttons and a 10-segment slider using the CSD user module.
There are five LEDs on board, which illuminate when a CapSense button or slider is touched. The
EzI2Cs user module is used to provide a register-based I2C slave communications protocol. The
status of CapSense sensors (both button and slider) and their parameters are updated in the I2C
register, which can be accessed by any I2C master, similar to the I2USB Bridge.
The application starts by executing boot.asm. The boot.asm does the hardware initialization and
invokes the 'main' function. The main function initializes the EzI2Cs Slave user module and
CapSense user module. After initialization, the main function enters into a loop, which does the following:
■
Scans all sensors
■
Reads the sensor ID sent by the I2C master
■
Stores CapSense data in the I2C registers
■
Updates the LED status for the On/Off sensors
The following user modules are used in this project:
60
■
CSD: The CSD provides capacitance sensing using the switched capacitor technique with a
sigma delta modulator to convert the sensed switching capacitor current to digital code.
■
EzI2Cs: The EzI2Cs user module implements an I2C register based slave device.This user module does not require any digital or analog PSoC blocks. It is used to transfer all CapSense parameters related to a sensor to the PC for monitoring.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
5.2.2
Device Configurations
Figure 5-38. Device Configuration for CY3280_24x94_Project1
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
61
Code Examples
5.2.3
Firmware Architecture
Start
Enable Global
Interrupts. Clear
all LED’s
Set RAM buffer
Start I2C, CSD user modules.
Initialise Baseline and set
finger threshold
Scan all sensors and update
baseline of each sensor
Store RawCount of all sensors in I2C
buffer
Is any Capsense
button active?
No
Store 0xFF as default active
button data in I2C buffer
No
Store 0x00 as default slider
status in I2C buffer
Yes
Store active button number in
I2C buffer
Get finger position on slider
Is finger present
on slider?
Yes
Store finger position on slider
in I2C buffer
Turn ON Led based on active
sensor number
62
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
5.2.4
Verify Output
Load CY3280_SLM_Project1.iic file from the Bridge Control Panel, as explained in Bridge Control
Panel on page 17. This file is available in the following location:
<Install_directory>\Cypress\CY3280-24x94\<version>\Firmware\
USB-I2CBridgeSoftwareConfig
1. Touch one or more buttons; the associated LEDs light up.
2. Touch the linear slider; the associated LEDs light up.
3. Touch the linear slider and buttons simultaneously. The associated LEDs light up corresponding
to the buttons and the sliders being pressed.
4. In the first command line, change the sensor ID for which parameter monitoring is required and
click Send to write the sensor ID to the Universal CapSense Controller board. See Figure 5-39
(w 05 0 1 p, where 05 is the I2C slave address, 0 is the address pointer, and 1 is the sensor ID).
See Table 5-2 for a complete list of sensor IDs.
5. Click on the second command line and then click Repeat to read I2C data received from the Universal CapSense Controller board.
6. Switch to the Chart tab to view the respective wave forms of CapSense parameters; see
Figure 5-40.
Note The character 'w' in Figure 5-2 defines the start of "write data" command. The character 'p'
generates stop condition on the I2C bus and character 'r' defines the start of "read data" command.
Figure 5-39. Command Line View
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
63
Code Examples
Table 5-2. Sensor Details
64
Firmware Labels
Sensor Name
Sensor ID(HEX)
CSDSW0
BTN0
0
CSDSW1
BTN1
1
CSDSW2
BTN2
2
CSDSW3
BTN3
3
CSDSW4
BTN4
4
CSDSW5
SLD0
5
CSDSW6
SLD1
6
CSDSW7
SLD2
7
CSDSW8
SLD3
8
CSDSW9
SLD4
9
CSDSW10
SLD5
A
CSDSW11
SLD6
B
CSDSW12
SLD7
C
CSDSW13
SLD8
D
CSDSW14
SLD9
E
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
Figure 5-40. Bridge Control Panel Chart View
Note In the figure, the brown line represents the axis, the blue line indicates RawCount, and the
green line indicates the Baseline.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
65
Code Examples
5.3
CY3280_24x94_Project2
5.3.1
Project Description
This project demonstrates the use of CapSense Buttons and linear sliders using CSD technology
and CY8C24x94. The EzI2Cs user module is used to transfer the raw count of CapSense parameters related to all the sensors to PC for monitoring. This project is implemented in chip level design in
PSoC Designer 5.1.
This project scans five CapSense buttons and a 10-segment slider using the CSD user module.
There are five LEDs on board, which illuminate when a CapSense button or slider is touched. The
EzI2Cs user module is used to provide a register-based I2C slave communications protocol. The
status of CapSense sensors (both button and slider) and their parameters are updated in the I2C
register, which can be accessed by any I2C master, similar to the I2USB Bridge.
The application starts by executing boot.asm. The boot.asm does the hardware initialization and
invokes the 'main' function. The main function initializes the EzI2Cs slave and CapSense user modules. After initialization, the main function enters into a loop, which does the following:
■
Scans all sensors
■
Reads the sensor ID sent by the I2C master
■
Stores CapSense data in the I2C registers
■
Updates the LED status for the On/Off sensors
The following user modules are used in this project:
66
■
CSD: The CSD provides capacitance sensing using the switched capacitor technique with a
sigma delta modulator to convert the sensed switching capacitor current to digital code.
■
EzI2Cs: The EzI2Cs user module implements an I2C register based slave device.This user module does not require any digital or analog PSoC blocks. It is used to transfer all CapSense parameters related to a sensor to the PC for monitoring.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
5.3.2
Device Configurations
Figure 5-41. Device Configuration for CY3280_24x94_Project2
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
67
Code Examples
5.3.3
Firmware Architecture
Start
Enable Global Interrupt, Clear all LEDs
Set RAM Buffer
On Reset store 0 as Sensor id
Start I2C,Start CSD, Initialize Baselines, Set Finger Thresholds
CapSense Initialization andSetting of finger threshold
2
Loop forever
Yes
Scan All sensors ,Update All Baseline, Check if any senor Active
Sensor ID=0
bSensorID<CSD_
ButtonCount
Yes
Yes
Store all the Raw count value for button into I2C buffer
NO
Increment the CSD_Button value
SensorID=CSD_Button Count
bSensorID<CSD_
Total Sensor Count
Yes
Store all the Raw count value for button into I2C buffer
NO
Increment the CSD_Button value
Any of the Sensor
id is Active
NO
Store NO FINGER as default data
Yes
Store it in the I2C buffer
1
68
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
1
No Slider position is
activated
YES
NO
Store Value 0 as Default
Slider position
is active at ed
YES
Get the finger position
Get the Centriod position and store it in I2C buffer
Turn on LED0
YES
bSensor Status
&0x01
NO
Turn off LED 0
Turn off LED 1
Turn on LED1
YES
bSensor Status
&0x02
NO
Turn on LED2
YES
bSensor Status
&0x04
NO
Turn off LED 2
NO
Turn on LED3
YES
bSensor Status
&0x08
NO
Turn on LED4
YES
bSensor Status
&0x10
NO
Turn off LED 3
Turn off LED 4
Check for Button Status
2
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
69
Code Examples
5.3.4
Verify Output
Load CY3280_SLM_Project2.iic file from the Bridge Control Panel as explained in Bridge Control
Panel on page 17. This file is available in the following location:
<Installed_directory>\Cypress\CY3280-24x94\<version>\Firmware\
USB-I2CBridgeSoftwareConfig
1. Touch one or more buttons; the associated LEDs light up.
2. Touch the linear slider; the associated LEDs light up.
3. Touch the linear slider and buttons simultaneously. The associated LEDs light up corresponding
to the buttons and the sliders being pressed.
4. Click on the command line and then click Repeat to read I2C data received from the Universal
CapSense Controller board.
5. Switch to the Chart tab to view the respective waveforms of CapSense parameters. See
Figure 5-43.
Note The character 'r' in Figure 5-42 defines the start of "read data" command.
Figure 5-42. Command Line View
70
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
Code Examples
Figure 5-43. Bridge Control Panel Chart View
Note The brown line in the figure represents the axis.
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
71
Code Examples
72
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No. 001-70137 Rev. *A
A.
Appendix
A.1
Schematic
23
59
Vdd
Vdd
0402
46
XRES
5
6
44
45
OCDE
OCDO
HCLK
CCLK
21
22
DP
DM
P7[0]
P7[1]
P7[2]
P7[3]
P7[4]
P7[5]
P7[6]
P7[7]
31
30
29
28
27
26
25
24
0402
1
R21
2
zero
1
VCC
TP8 1
EXTCLK
Rb
2
7.5K
Vadj
1
TP6
TP7
1
VIN
5V
GND
TP10 1
VCC
TP12 1
TP14
VADJ
GND
Vadj
P1[4] Selection Notes:
TP11 1
TP13
1. Keep resistors as close
together as possible and close
to PSoC to avoid long stubs.
2. Install only R1 for use in
CapSense applications.
3. Install only R21 for use as
external clock source.
VADJ
GND
DO NOT POPULATE - PROBE POINTS
VCC
VCC
VCC
DO NOT POPULATE
VCC
J2
CP
Vss
Vss
Vss
0805
1
2
3
4
5
6
DO NOT POPULATE
I2C Address: 0101100 / 44 / 2Ch
U2
1 A
W 10
2 B
Vdd 9
3 nCS/ADO
DIS 8
4 SDO/NC
GND 7
5 SDI/SDA CLK/SCL 6
P0[5]
P3[1]
0402
0402
0402
0402
TP15
GND
Rb
P1[0]b
SPI/I2C
6 PIN HDR
HEADER
VCC
0402
69
0805
0402
7
20
60
0805
0805
P1[0]b
P1[1]b
P1[5]b
P1[7]b
Remove if using LCD
(Recommended)
CY8C24094 QFN68
1
2
3
4
5
6
P3[1]
Rb
VCC
1
0402
0402
Place all resistors close to PSoC
P7[0]b
P7[1]b
P7[2]b
P7[3]b
P7[4]b
P7[5]b
P7[6]b
P7[7]b
560
560
560
560
560
560
560
560
0402
0402
NOTE:
R54
R55
R60
R63
R66
R65
R68
R70
0402
0402
DP
DM
TP9
TP4
VCC
P1[7]b
VCC
0402
0402
0402
2
2 47 ohm
2 47 ohm
2 47 ohm
47 ohm
5V
0402
0402
0402
1 R56
1 R62
1 R64
1 R67
0402
OCDE
OCDO
HCLK
CCLK
0402
100
0402
0402
R53
0402
XRES
0402
0402
Place close to connector.
0402
0402
0402
560
560
0402
0402
0402
R49
R51
1
5V
DEFAULT JUMPER PIN 2 TO 3
VCC
0 OHM
P5[0]
P5[1]
P5[2]
P5[3]
P5[4]
P5[5]
P5[6]
P5[7]
560
560
560
560
560
560
560
560
P7[0]
P7[1]
P7[2]
P7[3]
P7[4]
P7[5]
P7[6]
P7[7]
TP5
5V
NOTE:
P1[5]b
0 OHM
0402
1
R38
R40
R42
R44
R46
R48
R50
R52
0402
0402
2
36
15
37
14
38
13
39
12
0402
0805
P5[0]
P5[1]
P5[2]
P5[3]
P5[4]
P5[5]
P5[6]
P5[7]
0402
2
P4[0]
P4[1]
P4[2]
P4[3]
P4[4]
P4[5]
P4[6]
P4[7]
0402
P4[6]
P4[7]
560
560
560
560
560
0402
0402
R37
R39
R41
R43
R45
P1[4]
560
56k
P4[0]
P4[1]
P4[2]
P4[3]
P4[4]
R1
56k
2
1.5K
VIN
56k
1 R47
0402
VBUS
560
560
560
560
560
560
1
R59
47
4
48
3
49
2
50
1
560
R26
R28
R30
R32
R34
R36
Vin
TP3
56K
40
11
41
10
42
9
43
8
Vin
R61
P3[0]
P3[1]
P3[2]
P3[3]
P3[4]
P3[5]
P3[6]
P3[7]
1
2
3
HEADER 3
R58
P2[0]
P2[1]
P2[2]
P2[3]
P2[4]
P2[5]
P2[6]
P2[7]
Place test points near edge of board.
Place test points next to connector P2.
J1
1
2
3
5V
R57
51
68
52
67
53
66
54
65
0402
0402
560
560
560
560
560
560
560
560
0402
0.01 uFd
CMOD
R23
0402
0402
0402
C3
R22
R24
R25
R27
R29
R31
R33
R35
0402
0805
P2[0]
P2[1]
P2[2]
P2[3]
P2[4]
P2[5]
P2[6]
P2[7]
0402
0402
R88
0402
R14
R17
R19
0402
0402
NO LOAD
Vadj
DO NOT POPULATE R21 BY DEFAULT
P1[0]b
P1[1]b
0 OHM
0 OHM
0805
R11
P1[0] R5
2
2100 ohm P1[1] R8
100 ohm P1[2]
P1[3]
560
P1[4]Select
560
P1[5] R15
P1[6]
300
P1[7] R20
560
300
P3[0]
R13
P3[1]
1
P3[2]
P3[3]
P3[4]
P3[5]
P3[6]
P3[7]
0805
0402
R4 1
R7 1
R10
0402
32
19
33
18
34
17
35
16
0402
1
VCC
VCC
TP1
P1[0]
P1[1]
P1[2]
P1[3]
P1[4]
P1[5]
P1[6]
P1[7]
0402
560
560
P0[0]
P0[1]
P0[2]
P0[3]
P0[4]
P0[5]
P0[6]
P0[7]
0402
R16
R18
55
64
56
63
57
62
58
61
0805
560
560
560
560
560
0805
Rb
R3
R6
R9
R2
R12
0805
P0[0]
TP2
CMOD P0[1]
P0[2]
P0[3]
P0[4]
P0[5]
P0[6]
P0[7]
2
10 uFd 16V
U1
0402
0805
C21
1
10 uFd 16V
0805
VCC
C12
P1[1]b
3216
+ C4
P1
AD5161 50K
XRES
CCLK
OCDO
OCDE
0402
C12
1
2
3
4
5
6
7
8
HCLK
2
1 uFd 16v
R90
0402
ICE
0.1 uFd
RJ45 Right Angle
0805
6
7
S1
S2
S3
S4
1
8
9
1
1
0805
0805
2
2
LED Red
0402
0402
0402
0402
2
1
DIODE SCHOTTKY
J6
VBUS
DM
DP
ID
GND
R71
1
2
3
4
5
1
2
24
DM
2
24
DP
ISSP / I2C
J3
1 1
2 2
3 3
4 4
5 5
R69
1
0603
3
D2
2
0603
0805
0402
5V
D3
SOD123
VBUS
1K
D1
LED Red
330 pFd
1K
LCD
MODULE
1K
0603
100K
R78
1K
0805
1.07K
VCC
R77
0805
P7[0]
P7[1]
P7[2]
P7[3]
R76
R79
POT 5K
2
P4
GND
VCC
VO
RS
R/nW
EN
D0
D1
D2
D3
D4
D5
D6
D7
1K
VO
R80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
R74
1.37K
1K
5V
5V
VO
P7[5]
P7[6]
P7[4]
R75
C5
R73
R89
DO NOT POPULATE
R72
1
1K
5V
LCD HEADER
USB MINI AB
5V
J4
XRES
1
2
3
XRES/INT
P1[1]
P1[0]
P1[5]b
1
2
3
HEADER 3
HDR 1x5
NOTE:
R87
5V
U3
LP3875ES-ADJ TO263-5
VIN
VOUT 4
0402
1
0402
C11
DEFAULT JUMPER PIN 1 TO 2
100K
2
0.01 uFd
Vadj
8.87K 1%
1
C7
Vin
3216
R82
0.01 uFd
+ C8
10 uFd 16v
2
DO NOT POPULATE
1 R83
0402
P1[0]
SDA
2
zero
NC
BH1
P0[1]
P2[5]
P2[1]
BAT 9V FEMALE
5V
D4
SOD123
POS
2
1
1
NC
DIODE SCHOTTKY
P1[5]
RegAdj
9V
BH2
NEG
1
D5
1
BAT 9V MALE
P1[0]b
2
I2C Address: 0101101 / 45 / 2Dh
U4
1 A
W 10
2 B
Vdd 9
3 nCS/ADO
DIS 8
4 SDO/NC
GND 7
5 SDI/SDA CLK/SCL 6
NC
P1[2]
RegAdj
P1[1]b
P1[6]
P3[2]
P2[2]
P2[6]
SOD123
DIODE SCHOTTKY
6V-12V
Vin
J5
U5
LM1117MPX-5.0
D6
SOD123
1
3
2
POWER JACK P-5
2
AD5161 10K
5V
3216
+ C9
10 uFd 16v
1
VIN
GND
VOUT
2
TAB
4
P0[2]
P0[6]
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
Vin
Vadj
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
2
zero
P0[7]
P0[3]
P2[7]
P2[3]
3216
P1[1]
SCL
P1[0]
SDA
1 R84
NC
P4[1]
P7[5]b
P7[1]b
P3[3]
P1[7]
P1[3]
P3[5]
P5[5]
P5[1]
P5[2]
P1[4]
P3[0]
P2[0]
P2[4]
P5[6]
P3[6]
P7[2]b
P7[6]b
P0[0]
P0[4]
P4[2]
P4[6]
NC
2
zero
5V
P3
VCC
1 R85
22x2_RA_Recptacle
SOT-223
3
1
DIODE SCHOTTKY
5V
P2
VCC
0805
0402
NO LOAD
0402
3
RegAdj R81
5
0402
+ C6
10 uFd 16v
ADJ
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
Vadj
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
1 R86
2
zero
P4[7]
P4[3]
P7[7]b
P7[3]b
0402
3216
nSD
0402
1
GND
SOT-223
2
P1[1]
SC
P3[7]
P5[7]
P5[3]
P5[0]
P5[4]
P3[4]
P7[0]b
P7[4]b
P4[0]
P4[4]
22x2_RA_Recptacle
+ C10
10 uFd 16v
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
73
Appendix
A.2
Board Layout
A.2.1
PDCR-9434 (Top)
74
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
Appendix
A.2.2
PDCR-9434 Layer 2
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
75
Appendix
A.2.3
76
PDCR-9434 Layer 3
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
Appendix
A.2.4
PDCR-9434 Bottom
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
77
Appendix
A.2.5
78
PDCR-9434 Primary Layer
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
Appendix
A.2.6
PDCR-9434 Secondary Layer
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
79
Appendix
A.3
Bill of Materials
Item
Qty
1
1
2
2
C1,C2
Part
Manufacturer
Manuf. Part#
ROHS
Sub
OK?
24x94 PCB Rev02
Cypress
Semiconductor
PDCR-99434 Rev02
Y
N
CAP CER 10UF 16V X5R 0805
Murata
Electronics North
America
GRM21BR61C106KE15L Y
Y
3
1
C3
CAP 0.01UF 50V CERAMIC X7R 0805
Panasonic - ECG
ECJ-2VB1H103K
Y
Y
4
1
C5
CAP 330PF 100V CERAMIC X7R 0603
Panasonic - ECG
ECJ-1VB2A331K
Y
Y
5
4
C6,C8,C9,C10
CAP 10UF 16V TANTALUM 10% 3216
AVX
TAJA106K016R
Y
Y
6
2
C7,C11
CAP 10000PF 16V CERAMIC 0402 SMD Panasonic - ECG
ECJ-0EB1C103K
Y
Y
7
1
C12
CAP .1UF 16V CERAMIC Y5V 0402
Panasonic - ECG
ECJ-0EF1C104Z
Y
Y
8
2
D1,D2
LED RED Clear 0805 SMD
LITE-ON Inc
LTST-C170CKT
Y
Y
9
4
D3,D4,D5,D6
DIODE SCHOTTKY 0.5A 20V SOD-123
Fairchild
Semiconductor
MBR0520L
Y
Y
10
2
J1,J4
CONN HEADER VERT 3POS .100 30AU
AMP Division of
TYCO
87220-3
Y
Y
11
1
J3
CONN HEADER 5POS 0.1 VERT KEYED Molex
22-23-2051
Y
Y
Switchcraft
RAPC722X
Y
Y
12
1
J5
CONN 2.1MM PWRJACK RT ANGLE
PCB
13
1
J6
CONN USB MINI AB SMT RIGHT
ANGLE
TYCO
1734035-2
Y
Y
14
1
P1
CONN RJ45 8-8 MOD JACK UNSHIELD
RIGHT ANGLE
AMP Division of
TYCO
5557785-1
Y
N
15
2
P2,P3
CONN FMALE 44POS DL .1" R/A GOLD
Sullins
Electronics Corp.
PPPC222LJBN-RC
Y
N
16
51
R1,R2,R3,R6,R9,R1
0,R11,R12,R14,R16,
R17,R18,R19,R22,R
23,R24,R25,R26,R2
7,R28,R29,R30,R31,
R32,R33,R34,R35,R
RES 560 OHM 1/16W 5% 0402 SMD
36,R37,R38,R39,R4
0,R41,R42,R43,R44,
R45,R46,R48,R49,R
50,R51,R52,R54,R5
5,R60,R63,R65,R66,
R68,R70
Yageo
Corporation
RC0402JR-07560RL
Y
Y
17
4
R4,R7,R53
RES 100 OHM 1/16W 5% 0402 SMD
Rohm
MCR01MZPJ101
Y
Y
R47
RES 1.5k OHM 1/16W 5% 0402 SMD
Panasonic - ECG
ERJ-2GEJ152X
Y
Y
18
80
Reference
19
1
R13
RES 7.5K OHM 1/8W 5% 0805 SMD
Panasonic - ECG
ERJ-6GEYJ752V
Y
Y
20
4
R56,R62,R64,R67
RES 47 OHM 1/16W 5% 0402 SMD
Panasonic - ECG
ERJ-2GEJ470X
Y
Y
21
2
R57,R58
RES 56k OHM 1/16W 5% 0805 SMD
Panasonic - ECG
ERJ-6GEYJ563V
Y
Y
22
2
R69,R71
RES 24 OHM 1/16W 5% 0603 SMD
Panasonic - ECG
ERJ-3GEYJ240V
Y
Y
23
4
R72,R73,R74,R76
RES 1.0K OHM 1/16W 5% 0402 SMD
Yageo
Corporation
RC0402JR-071KL
Y
Y
24
2
R77,R78
RES 1K OHM 1/10W 5% 0805 SMD
Panasonic - ECG
ERJ-6GEYJ102V
Y
Y
25
1
R81
RES 8.87K OHM 1/16W 1% 0402 SMD
Panasonic - ECG
ERJ-2RKF8871X
Y
Y
26
4
R83,R84,R85,R86
RES ZERO OHM 1/16W 0402 SMD
Panasonic - ECG
ERJ-2GE0R00X
Y
Y
27
2
R87,R89
RES 100K OHM 1/16W 5% 0402 SMD
Panasonic - ECG
ERJ-2GEJ104X
Y
Y
28
1
R90
RES 1.0K OHM 1/16W 5% 0402 SMD
Phycomp USA Inc 9C1A04021001JLHF3
Y
Y
Keystone
Electronics
5003
Y
Y
29
1
TP2
TEST POINT 43 HOLE 65 PLATED
ORANGE
30
5
TP1,TP4,TP6,TP10,
TP12
TEST POINT 43 HOLE 65 PLATED RED
Keystone
Electronics
5000
Y
Y
31
3
TP7,TP14,TP15
TEST POINT 43 HOLE 65 PLATED
BLACK
Keystone
Electronics
5001
Y
Y
32
1
U1
IC, 68 QFN PSoC MIXED-SIGNAL
ARRAY OCD
Cypress
Semiconductor
CY8C24094-24LTXI
Y
N
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
Appendix
Item
Qty
Reference
Part
Manufacturer
Manuf. Part#
ROHS
Sub
OK?
33
1
U3
IC REG LDO 1.5A ADJ VOLT TO263-5
National
Semiconductor
LP3875ES-ADJ/NOPB
Y
N
34
1
U4
IC DGTL POT SPI 10K 10-MSOP
Analog Devices
Inc
AD5161BRMZ10
Y
N
35
1
U5
IC REG 5.0V 800MA LDO SOT-223
National
Semiconductor
LM1117MPX-5.0
Y
Y
Do Not Populate
36
2
R82,R88
RES NO LOAD 0805 SMD
NA
NA
Y
Y
37
1
R75
RES 1.37K OHM 1/8W 5% 0805 SMD
Panasonic - ECG
ERJ-6ENF1371V
Y
Y
38
1
R79
POT 5K CARBON LAYDOWN (103)
Panasonic - ECG
EVN-D8AA03B53
Y
Y
39
1
R80
RES 1.07K OHM 1/8W 5% 0805 SMD
Panasonic - ECG
ERJ-6ENF1071V
Y
Y
40
1
R21
RES CHIP 0.0 OHM 1/10W 5% 0805
SMD
Panasonic-ECG
ERJ-6GEY0R00V
Y
Y
41
1
J2
CONN HEADER VERT 6POS .100 TIN
Molex/Waldom
Electronics
22-28-4060
Y
Y
42
4
TP3,TP5,TP9,TP11
TEST POINT 43 HOLE 65 PLATED RED
Keystone Electronics
5000
Y
Y
43
1
TP13
TEST POINT 43 HOLE 65 PLATED
BLACK
Keystone Electronics
5001
Y
Y
44
1
U2
IC DGTL POT SPI 50K 10-MSOP
Analog Devices
Inc
AD5161BRMZ50
Y
N
45
1
C4
CAPACITOR 1.0UF/16V TEH SER SMD
Panasonic - ECG
ECS-H1CY105R
Y
Y
594
Y
Y
46
1
BH1
BATTERY HOLDER 9V Female PC MT
Keystone
Electronics
47
1
BH2
BATTERY HOLDER 9V Male PC MT
Keystone
Electronics
593
Y
Y
48
1
P4
CONN REC .100 14POS for LCMS01602DTR/A-3
3M Electronics
929850-01-14-10
Y
Y
49
2
R59,R61
RES 56k OHM 1/16W 5% 0805 SMD
Panasonic - ECG
ERJ-6GEYJ563V
Y
Y
50
4
R5,R8,R15,R20
RES 560 OHM 1/16W 5% 0402 SMD
Panasonic - ECG
ERJ-2GE0R00X
Y
Y
51
1
TP8
TEST PAD 30 SMT (Copper)
NA
NA
Y
Y
Special Jumper Installation Instructions
52
1
Install jumper across pins 2 and 3 of J1
Sullins
Electronics Corp.
STC02SYAN
Y
Y
53
2
Install jumper across pins 1 and 2 of J4
Sullins
Electronics Corp.
STC02SYAN
Y
Y
Y
Y
Install On Bottom of PCB As Close To Corners As Possible
54
4
n/a
BUMPER CLEAR.370X.19" CYLINDER
Richco Plastic Co RBS-35
CY3280-24x94 Universal CapSense® Controller Kit Guide, Document No, 001-70137 Rev. *A
81