TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in
this document. Any information provided in this document, including any sample design information or programming code, is
provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test
the functionality and safety of any application made of this information and any resulting product. Cypress products are not
designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including
resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where
the failure of the device or system could cause personal injury, death, or property damage ("Unintended Uses"). A critical
component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure
of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and
hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress
products. You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other liabilities,
including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, FRAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more
complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G2
A.3Bill of Materials ..........................................................................................................85
A.4Regulatory Compliance Information ..........................................................................86
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G4
Page 5
Safety Information
The CY3280-MBR3 Evaluation Kit contains ESD-sensitive devices.
Electrostatic charges readily accumulate on the human body and any
equipment, and can discharge without detection. Permanent damage
may occur on devices subjected to high-energy discharges. Proper
ESD precautions are recommended to avoid performance degradation
or loss of functionality. Store unused CY3280-MBR3 boards in the
protective shipping package.
End-of-Life/Product Recycling
This kit has an end-of life five years from the date of manufacture
mentioned on the back of the box. Contact your nearest recycler for
disposing the kit.
Regulatory Compliance
The CY3280-MBR3 Evaluation Kit is intended for use as a development platform for hardware or
software in a laboratory environment. The board is an open system design, which does not include a
shielded enclosure. This may cause interference to other electrical or electronic devices in close
proximity.
In a domestic environment, this product may cause radio interference. The user may then be
required to take adequate prevention measures. Also, the board should not be used near any
medical equipment or RF devices.
Attaching additional wiring to this product or modifying the product operation from the factory default
may affect its performance and cause interference with other apparatus in the immediate vicinity. If
such interference is detected, suitable mitigating measures should be taken.
The CY3280-MBR3 Evaluation Kit as shipped from the factory has been verified to meet the
requirements of CE as a Class A product.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G5
Page 6
General Safety Instructions
ESD Protection
ESD can damage boards and associated components. Cypress recommends that you perform
procedures only at an ESD workstation. If an ESD workstation is not available, use appropriate ESD
protection by wearing an antistatic wrist strap attached to chassis ground (any unpainted metal
surface) on your board when handling parts.
Handling Boards
CY3280-MBR3 boards are sensitive to ESD. Hold the board only by its edges. After removing the
board from its box, place it on a grounded, static-free surface. Use a conductive foam pad if
available. Do not slide board over any surface.
6CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G
Page 7
1.Introduction
Thank you for your interest in the CY3280-MBR3 Evaluation Kit (EVK). This kit is designed to showcase the abilities of the CY8CMBR3116 register-configurable CapSense
®
controller. It is also
designed as an Arduino™-compatible shield that supports various Arduino baseboards as well as
other stackable shields available in the market. The CY3280-MBR3 EVK features four CapSense
buttons, one proximity sensor loop, LEDs, a buzzer, and an onboard USB-I
2
C bridge to communi-
cate with the EZ-Click™ software tool, which configures the CY8CMBR3xxx controller.
The CY8CMBR3xxx series is the latest addition to the register-configurable CapSense Mechanical
Button Replacement (MBR) family of solutions. The CY8CMBR3xxx family of controllers enables
you to quickly and easily add capacitive touch sensing to your user interface. See Configuring the
CY8CMBR3116 Controller Using EZ-Click on page 18 for information on how to configure a CY8CM-
BR3116 controller. CY3280-MBR3 offers the best features of Cypress’ CapSense in a small package
that is easy to implement and configure. Coupled with the Capacitive Sigma Delta PLUS (CSD
PLUS) sensing algorithm and the patented SmartSense™ Auto-Tuning feature, the CY8CMBR3xxx
controller provides a robust capacitive sensing solution, with up to 16 CapSense inputs.
SmartSense Auto-Tuning has the following advantages:
■ Reduces design effort by eliminating manual tuning
■ Adapts to variations in PCB, overlay, paint, and manufacturing that degrade touch-sensing per-
formance
■ Eliminates manual tuning in production
■ Adapts to changes in the system environment due to noise
■ Allows a platform design approach with different overlays, button shapes, and trace lengths
The MBR3 solution delivers a high signal-to-noise ratio (SNR) even in extremely noisy environments
and maintains optimal sensor performance at run time. The driven shield capability offers robust
proximity sensing and water tolerance, enabling its use in a wide range of applications. The MBR3
solution supports register configurability and SmartSense Auto-Tuning features, which allow customers to gain a faster time-to-market for their end product.
The CY8CMBR3xxx family of controllers is designed with multiple low-power operational states to
meet the low-power requirements of battery-powered applications. These controllers have the following operational states: Boot, Active, Look-for-Touch, Look-for-Proximity, Deep Sleep, and Configuration. The CY8CMBR3xxx controllers automatically manage transitions between the four states.
The Look-for-Proximity state allows ultra-low power consumption when a human body is not in close
proximity. This state is entered only if the wake-on-approach feature is enabled (and toggle is disabled) in the MBR3 register configuration, which can be done using EZ-Click. Refer to the MBR3
device datasheet for more details on the CY8CMBR3xxx family of CapSense controllers.
The kit package includes EZ-Click, which is required to configure the kit. For more information and to
download the tool, visit the EZ-Click webpage.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G7
Page 8
1.1Kit Contents
The CY3280-MBR3 EVK includes the following components (see Figure 1-1):
■ CY3280-MBR3 EVK with a 2-mm overlay
■ One additional overlay of 1-mm thickness
■ A to Mini-B USB cable
■ Water dropper
Figure 1-1. Kit Contents
Introduction
Inspect the contents of the kit. If you find any part missing, contact your nearest Cypress sales office
for help: www.cypress.com/go/support.
1.2Getting Started
This kit guide helps to familiarize you with the CY3280-MBR3 EVK. The Kit Installation chapter on
page 11 describes the installation of the EVK software. The Kit Operation chapter on page 14
explains how to configure the CY8CMBR3116 controller on the kit to test different features using
EZ-Click. The hardware details, and configuration files and example projects are explained in their
respective chapters. The configuration files and example projects require EZ-Click and PSoC Cre-
ator™, respectively. The Advanced Topics chapter on page 70 describes how to use the Bridge Con-
trol Panel (BCP) to configure the MBR3 device. The Appendix on page 76 provides the schematics,
board layout, pin assignment, and the bill of materials (BOM).
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G8
Page 9
1.3Factory Default Configuration
The kit installation folder includes three configuration files that demonstrate several features of the
CY8CMBR3116 CapSense controller. See Configuration Files on page 46 for more details. The
CY3280-MBR3 EVK is configured with the Water Tolerance configuration by default. In this configu-
ration, water tolerance, flanking sensor suppression (FSS), and auto-reset features are enabled for
four CapSense buttons. The LEDs are also enabled to provide visual feedback for CapSense button
touch. For more details on configuring the MBR3 device, refer to the EZ-Click User Guide, available
at <Install_Directory>\EZ-Click\<version>\Documentation.
1.4Additional Learning Resources
Visit the CY8CMBR3116 CapSense Controller page for additional learning resources.
Visit the CY8CMBR3xxx CapSense Design Guide page for additional Host API-based demo
projects.
Visit the CapSense Code Examples page for the list of code examples using CapSense controllers.
1.5Technical Support
For assistance, go to our support web page, or contact our customer support at +1(800) 541-4736
extension 2 (in the USA), or +1 (408) 943-2600 extension 2 (International).
Introduction
1.6Acronyms
Table 1-1. Acronyms Used in the Document
AcronymsDefinition
BCPBridge Control Panel
BOMbill of materials
CScapacitive sensor
CSDCapSense sigma delta
ESDelectrostatic discharge
EVKevaluation kit
FSSflanking sensor suppression
GPOgeneral-purpose output
GUIgraphical user interface
2
C
IIC/I
LEDlight-emitting diode
MBRmechanical button replacement
NCnot connected
PCpersonal computer
PCBprinted circuit board
®
PSoC
SNRsignal-to-noise ratio
UARTuniversal asynchronous receiver/transmitter
USBuniversal serial bus
inter-integrated circuit
Programmable System-On-Chip
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G9
Page 10
1.7Document Conventions
Table 1-2. Document Conventions for Guides
ConventionUsage
Courier NewDisplays file locations, user entered text, and source code:
C:\...cd\icc\
ItalicsDisplays 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 > OpenRepresents menu paths:
File > Open > New Project
BoldDisplays commands, menu paths, and icon names in procedures:
Click the File icon and then click Open.
Times New RomanDisplays an equation:
2 + 2 = 4
Text in gray boxesDescribes Cautions or unique functionality of the product.
Introduction
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G10
Page 11
2.Kit Installation
This chapter describes the CY3280-MBR3 EVK software installation and the prerequisites.
2.1Before You Begin
All Cypress software installations require administrator privileges, but these are not required to run
the software after it is installed. Close any other Cypress software that is currently running before
installing the kit software.
2.2CY3280-MBR3 EVK Software
The kit requires Cypress' proprietary software, such as PSoC Programmer (3.24.2 or later) and
EZ-Click (2.0 SP2 or later), and generic software such as .NET Framework, Windows Installer, and
Internet Explorer. The CY3280-MBR3 software is available on the kit web page in three formats:
Table 2-1. Kit Software Formats
Install PackageFile FormatUsage
This package can be used if the PC does not have any Cypress or non-
CY3280-MBR3 Kit ISOISO
CY3280-MBR3 Kit SetupEXE
CY3280-MBR3 Kit OnlyEXE
Cypress prerequisite software installed. It first installs the prerequisites
and then the kit content (firmware, hardware, and documentation files) in
the specified location.
This package can be used if the PC does not have any Cypress prerequisite software installed. If any non-Cypress prerequisites are found to be
missing during installation, the installer provides links to download and
install them and then installs the kit content (firmware, hardware, and
documentation files) in the specified location.
This package can be used if the PC has all the Cypress and non-Cypress
prerequisites installed. It installs only the kit content (firmware, hardware,
and documentation files) in the specified location. If any of the prerequisites are found missing during the installation process, the installer
prompts you to install all the required software before attempting to install
the kit. The installer redirects to the kit web page to download and install
any missing Cypress software. Similarly, it provides links to download
and install the missing non-Cypress prerequisites.
Notes:
■ Adobe Reader is required to view kit documents. If Adobe Reader is not installed on your PC, the
installer provides the link to download and install it.
■ PSoC Creator is required to execute the PSoC 4 host example projects shipped with the kit.
However, it is not a mandatory prerequisite and is not installed along with the kit contents. You
can download and install PSoC Creator from www.cypress.com/go/psoccreator.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G11
Page 12
2.3Install the Software
1. Run cyautorun.exe in the kit ISO to start the installation process.
2. Click Install CY3280-MBR3 EVK to start the kit installation; see Figure 2-1.
Figure 2-1. Kit Installer Startup Screen
Kit Installation
3. Select the folder to install the CY3280-MBR3 EVK files. Choose the directory and click Next, as
shown in Figure 2-2. The installation directory is referred to as <Install_Directory> in this
document.
Figure 2-2. Default Path for EVK Installation
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G12
Page 13
Kit Installation
4. When you click Next, the CY3280-MBR3 KitISO installer automatically installs the required soft-
ware, if it is not present on your computer.
5. Select the installation type (see Figure 2-3). The drop-down menu contains three options:
Typical (installs all the required features), Custom (lets you choose the features to be installed),
and Complete (installs all the contents). Click Next after you select the installation type.
Note: It is recommended that you choose the Complete installation type.
Figure 2-3. Installation Type Options
6. Accept the End-User License Agreement and click Next to proceed with the installation.
7. When the installation begins, a list of packages appears on the installation page. A green check
mark appears adjacent to every package after successful installation.
8. Enter your contact information or select the Continue Without Contact Information check box.
9. Click Finish to complete the CY3280-MBR3 EVK software installation.
After the installation is complete, the kit contents are available at the following location:
<Install_Directory>\CY3280-MBR3 EVK\<version>
2.4Uninstall the Software
You can uninstall the CY3280-MBR3 EVK software using one of the following methods:
■ Go to Start > All Programs > Cypress > Cypress Update Manager > Cypress Update Man-
ager; select the Uninstall button corresponding to the kit software.
■ Go to Start > Control Panel > Programs and Features; select the Uninstall/Change button
corresponding to the kit software.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G13
Page 14
3.Kit Operation
USB connector
Kit current measurement jumper
on the reverse of the board
Slide switch to increase
capacitance on BTN2
Reset switch
Status LED
Power LED
CapSense buttons with 10-mm
diameter and LED at the center
Proximity LED
Proximity loop
CapSense buttons with 11-mm
diameter and LED at the center
The CY8CMBR3116 CapSense controller is a register-configurable device that supports multiple
features, as listed in Kit Features on page 24. The CY3280-MBR3 EVK hardware includes four CapSense buttons, a proximity sensor loop, a buzzer, and LEDs; it can be used to demonstrate all the
features of the MBR3 device.
The CY3280-MBR3 EVK enables you to develop applications using the CY8CMBR3116 controller.
Figure 3-1 and Figure 3-2 illustrate the onboard components of the CY3280-MBR3 EVK.
Figure 3-1. CY3280-MBR3 EVK Top View
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G14
Page 15
Figure 3-2. CY3280-MBR3 EVK Bottom View
Arduino headers
SlideswitchSW1
(capacitance selector
switch for BTN2)
Slide switch SW3
(trace selection
switch for BTN4)
Buzzer
I2C selection jumpers
Buzzer, Shield, and Host
Interrupt selection jumpers
PSoC 5LP USB-I2C bridge
CY8CMBR3116 CapSense
Express controller
MBR3 current
measurement jumper
Reset switch
USB connector
Kit current
measurement jumper
Kit Operation
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G15
Page 16
3.1Powering the Kit
To power the kit, connect the A to Mini-B USB cable, provided with the kit, to your PC or laptop. The
kit enumerates as a composite device (see Tab le 3 - 1), and three separate devices appear under the
Device Manager (Start > Control Panel > Device Manager) option of the Windows operating system, as shown in Figure 3-5.
Table 3-1. CY3280-MBR3 Evaluation Kit in Device Manager after Enumeration
PortDescription
USB input device
KitProg programmerProgrammer and debugger
KitProg USB-UARTUSB-UART bridge appears as COM# port
Note: Although the kit supports a programmer and a UART bridge, these functionalities are not used
with this kit. Do not use PSoC Programmer to communicate with the PSoC 5LP on the kit, as it may
corrupt the kit firmware.
Figure 3-3. KitProg Driver Installation
USB-I
2
C bridge
Kit Operation
Figure 3-4. KitProg Driver Installation Complete
After the driver installation is complete, all the above devices are listed in the Device Manager, as
shown in Figure 3-5.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G16
Page 17
Figure 3-5. Device Manager View after KitProg is Installed
Kit Operation
Note: The Device Manager may have more than one instance of ‘USB Input Device' and 'USB Composite Device', based on the number of USB devices connected to your PC. The USB Input Device
and USB Composite Device installed with KitProg can be identified by the hardware IDs (VID and
PID); these devices will have hardware IDs 0x4B4 and 0xF139. To find the hardware ID, right-click
on the device and select Properties. In the Details tab, select Hardware IDs from the Property field
drop-down menu.
Wait until the USB enumeration completes successfully and the board is powered. When the USB
enumeration is successful, both the power LED and status LED light up.
The kit is programmed with the Water Tolerance configuration by default. See Water Tolerance on
page 53 for more information.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G17
Page 18
3.2Communication Between PC Host and Kit
PC Host
I2C Commands
through USB
EZ-Click
B1
B2
B3
B4
LED1
Prox
Loop
Buzz
Shield
PSoC 5LP
as USB-
I2C Bridge
MBR3
I2C Commands
LED2
LED3LED4LED5
The kit includes PSoC 5LP, an ARM-based PSoC that functions as a USB-I2C bridge between the
CY8CMBR3116 controller and the PC host (see Figure 3-6). The CY8CMBR3116 controller commu-
nicates with PSoC 5LP using an I
PC and EZ-Click.
Figure 3-6. Block Diagram - Communication Between PC Host and Kit
2
C interface, and the PSoC 5LP transfers the data over USB to the
Kit Operation
Cypress provides two USB-I
CY3280-MBR3 EVK uses EZ-Click for register configuration. BCP is the software provided by
Cypress that allows you to communicate over I
2
C software utilities: EZ-Click and Bridge Control Panel (BCP). The
2
C, SPI, or RX8 using your PC and USB. This application currently supports CY3240, MiniProg3, FirstTouch, FirstTouchRF, TrueTouchBridge, DVKProg1, and KitProg bridges. See Using PSoC 5LP as USB-I2C Bridge on page 70 for more details
on using the BCP.
You should install EZ-Click on the PC to evaluate the kit features. This software is part of the kit
installer, but it can also be downloaded from www.cypress.com/go/CY3280-MBR3. You can use
EZ-Click to configure the CapSense controllers using I
2
C communication over the USB-I2C bridge.
You can also use it to monitor raw count, baseline, SNR, and other CapSense sensor-related information directly.
3.3Configuring the CY8CMBR3116 Controller Using EZ-Click
Follow these steps to configure the CY8CMBR3116 controller:
1. Connect the CY3280-MBR3 EVK to the PC via the USB port using the USB cable.
2. Open EZ-Click from the default location: Start > All Programs > Cypress > EZ-Click <version>
> EZ-Click <version>.
3. Create a new project in EZ-Click by clicking New Project… in the File menu, as shown in
Figure 3-7.
Figure 3-7. Creating a New Project in EZ-Click
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G18
Page 19
Kit Operation
4. Enter an appropriate name for the project and choose a location to save your project. Select Tar -
get Device as ‘CY8CMBR3116-LQXI’ from the Product Selector. To launch the Product Selector,
click the Device Selector button, as shown in the following figure.
Figure 3-8. New Project Details
Figure 3-9. Choosing Part Number in Product Selector Guide
5. Ensure that the I
communication with the onboard PSoC 5LP USB-I
6. Connect the kit to EZ-Click by clicking the Select Target Device button () on the EZ-Click tool
bar. This opens a Select I2C Target window (Figure 3-10); select the following:
a. KitProg/<kit number> in the Ports window.
2
b. The I
C slave device in the Devices window.
Note: The CY8CMBR3116 has a slave address of 0x37 by default. If multiple slave devices
are connected, you can disconnect from one slave and connect to another by using the Con-nect/Disconnect button in the Select I2C Target window. See Figure 3-10.
c. Select the speed of the I
d. Choose the target device voltage by selecting the 3.3 V radio button.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G19
2
C selection jumpers J13 and J14 are shorted between pins 1 and 2 to allow
2
C communication as 400 kHz.
2
C bridge.
Page 20
Figure 3-10. Connecting the Kit Using EZ-Click
Kit Operation
7. Click OK. The I
2
C slave address of the connected device appears on the status bar at the bottom
of the EZ-Click window, as shown in Figure 3-11.
Figure 3-11. I
2
C Slave Address Display
8. Enable the button sensors in the CapSense sensor configuration tab, as shown in Figure 3-12.
See Pin Mapping Between CY8CMBR3116 and CY3280-MBR3 EVK on page 31 to learn about
the available button sensors and how they are connected to the CY8CMBR3116 device. In this
example, all four available button sensors on the kit are enabled.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G20
Page 21
Kit Operation
Figure 3-12. Enabling Button Sensors Using EZ-Click
Note: The CapSense buttons BTN1/CS3, BTN2/CS4, BTN3/CS5, and BTN4/CS6 on the CY3280MBR3 EVK correspond to Button4, Button5, Button6, and Button7 in EZ-Click, which map to pins
CS3, CS4, CS5, and CS6 respectively on the MBR3 device. Figure 3-14 shows the corresponding
four buttons for reference.
9. The sensor names can be modified if desired, as shown in Figure 3-13.
Figure 3-13. Changing Sensor Names
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G21
Page 22
Figure 3-14. Kit Buttons Corresponding to CapSense Sensor Pins
Kit Operation
10.Enable the corresponding LEDs in the Global configuration tab, as shown in Figure 3-15, to
view the LED output for each button touch. Ensure that the GPO logic level is Active Low
because the LEDs on the CY3280-MBR3 EVK are active low.
Note: LED1/GPO3, LED2/GPO4, LED3/GPO5, and LED4/GPO6 on the CY3280-MBR3 EVK
correspond to LED4, LED5, LED6, and LED7 in EZ-Click, which map to the general-purpose output (GPO) pins CS11/GPO3, CS12/GPO4, CS13/GPO5, and CS14/GPO6 respectively on the
MBR3 device.
If the ‘host control’ feature is disabled in the MBR3 device, the LEDs will be mapped to the corresponding CapSense sensors. This means, CS0 will be mapped to GPO0, CS1 will be mapped to
GPO1, and so on. If a sensor is active, the corresponding LED will be turned on even if it is not
enabled in EZ-Click. The Enable option in EZ-Click is used only for LED features such as duty
cycle, LED duration, and toggle. To disable an LED, you need to enable the ‘host control’ feature
and configure the GPO drive mode as Strong and GPO logic level as Active High.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G22
Page 23
Kit Operation
Figure 3-15. Global Configuration Tab
11. The LEDs can also be renamed, as shown in Figure 3-16.
Figure 3-16. Rename LEDs
12.Generate the configuration file by clicking the Generate Configuration File icon on the tool
bar or by pressing [Ctrl] + [G]. The status of configuration file generation is shown in the status
bar at the bottom of the EZ-Click window (see Figure 3-17).
Figure 3-17. EZ-Click Status Bar Showing Configuration Generation Status
13.Click the Apply Current Configuration icon on the tool bar in EZ-Click or press [Ctrl] + [L] to
download the generated configuration to the MBR3 device.
14.Wait for the message “Device configuration completed successfully” to be displayed on the status
bar, as illustrated in Figure 3-18.
Figure 3-18. EZ-Click Status Bar Showing Successful Device Configuration
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G23
Page 24
15.Touch the buttons on the kit to observe the features as enabled in the configuration.
Note: The Water Tolerance configuration file is preloaded into the kit. The kit supports the features
mentioned in Water Tolerance on page 53 by default. To learn more about the configurations, see
Configuration Files on page 46.
3.4Kit Features
The CY3280-MBR3 EVK includes the following features:
■ Four CapSense buttons of two different sizes – two buttons of 10-mm diameter (BTN1 and
BTN2) and two buttons of 11-mm diameter (BTN3 and BTN4)
■ LEDs corresponding to sensors indicating button touch
■ A buzzer
■ Shield electrode pin for water tolerance
2
■ I
C selection jumpers
■ Arduino-compatible headers
■ One proximity loop and a corresponding LED to indicate proximity state (on/off)
■ A host interrupt pin
■ Two slide switches on two CapSense buttons to vary trace capacitance and demonstrate Smart-
Sense Auto-Tuning
Kit Operation
Note: The CS15 pin of the MBR3 device is multiplexed for the CapSense button, host interrupt, and
shield electrode. Similarly, GPO7 is multiplexed for general-purpose output, host interrupt, and
buzzer output. All three features – host interrupt, buzzer, and shield electrode (water tolerance) cannot be enabled simultaneously. See Buzzer, Shield, and Host Interrupt Multiplexing Jumper on
page 39 for more details on CS15 and GPO7 pin connections.
3.4.1SmartSense Auto-Tuning Feature
The CY8CMBR3116 device features SmartSense Auto-Tuning, which is the Cypress proprietary
CapSense algorithm that compensates for system, manufacturing, and environmental changes while
providing feature-rich CapSense solutions.
■ Reduces design effort by eliminating tedious manual tuning
■ Adapts to variations in PCB, overlay, paint, and manufacturing that degrade touch-sensing per-
formance
■ Eliminates production-related manual tuning
■ Adapts to changes in system environment due to noise sources
■ Allows a platform design approach with different overlays, button shapes, and trace lengths
The CY8CMBR3116 also supports setting manual thresholds to override the auto-tuning mechanism, if required.
SmartSense Auto-Tuning is demonstrated using three methods on the kit. See Capacitance Varia-
tion Demonstration on page 41 for hardware details:
1. Using the SW1 slide switch to increase capacitance
a. Power on the kit using USB or an external power supply on pin 4 of the J1 header.
b. Touch BTN2 on the kit; the corresponding LED will turn on, providing visual feedback on each
button touch.
c. Increase the capacitance of BTN2 by sliding SW1 to add an additional 10-pF or 15-pF exter-
nal capacitance on the sensor, as shown in Figure 3-19; the LED turns on as if a touch
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G24
Page 25
Kit Operation
occurred due to the increase in capacitance. Now, press the reset switch, SW2, to reset the
board.
d. Touch BTN2 on the kit; the corresponding LED works normally. This demonstrates the Smart-
Sense Auto-Tuning algorithm, which automatically tunes for the increased CapSense button
capacitance.
Note: The SW1 switch has three positions: at the NC-BTN2 position, the button is directly connected to the CS4 pin on MBR3 and no additional capacitance is added. At the 10pF-BTN2 and
15pF-BTN2 positions, an additional trace capacitance of 10 pF and 15 pF respectively are added
to the CapSense button.The SW1 switch simulates changes in trace parasitic capacitance.
Figure 3-19. SW1 Slide Switch in NC-BTN2 Position
2. Using a short/long trace by adjusting the SW3 slide switch on the kit
a. Power on the kit using USB or an external power supply on pin 4 of the J1 header.
b. Touch BTN4 on the kit. The LED corresponding to BTN4 will turn on, providing visual feed-
back on each touch.
c. Increase the parasitic capacitance of BTN4 by sliding SW3 (see Figure 3-20) to add a longer
trace on BTN4.
d. The LED turns on as if a touch occurred due to the increase in capacitance. Now, press the
reset switch, SW2, to reset the board.
e. Touch BTN4 on the kit; the corresponding LED works normally and provides visual feedback
on each touch. This demonstrates the SmartSense Auto-Tuning algorithm, which automatically tunes for the increase in CapSense button capacitance due to the long trace.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G25
Page 26
Figure 3-20. SW3 Slide Switch in Long Trace Position
Kit Operation
3. Using the additional 1-mm overlay provided with the kit, as shown in Figure 3-21
a. Power on the kit using USB or an external power supply on pin 4 of the J1 header.
b. Touch BTN1 on the kit. The LED corresponding to BTN1 will turn on, providing visual feed-
back on each touch.
c. Place the additional 1-mm overlay, provided with the kit, on top of the board and press the
reset switch, SW2, to reset the board.
d. Touch BTN1 on the kit; the corresponding LED works normally and provides visual feedback.
This demonstrates the SmartSense Auto-Tuning algorithm, which automatically tunes for the
increase in CapSense button capacitance due to an increase in overlay thickness.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G26
Page 27
Figure 3-21. Board with Additional 1-mm Overlay Placed on the 2-mm Overlay
Kit Operation
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G27
Page 28
4.Hardware
The CY3280-MBR3 EVK is designed to demonstrate the features of the CY8CMBR3116 registerconfigurable CapSense controller with four CapSense buttons and a proximity sensor loop. The kit
includes five sensor LEDs, which can be used to demonstrate the direct LED control feature of the
CY8CMBR3116. It also contains two LEDs to indicate power and kit status. The CY8CMBR3116
controller supports multiple features, which are discussed in Functional Description on page 29.
The CY3280-MBR3 EVK has two communication options:
■ A USB interface for the USB-I
■ The I
4.1Board Details
The CY3280-MBR3 EVK consists of the following blocks:
■ CY8CMBR3116 silicon
■ PSoC 5LP USB-I
■ Power supply system
■ Four button sensors and one proximity loop
■ CY3280-MBR3 EVK LEDs: A power, status, and proximity LED and four CapSense LEDs
■ Capacitance variation demonstration
■ Arduino-compatible headers
■ Push button to reset the CY8CMBR3116
■ Buzzer, shield, and host interrupt pin multiplexing jumper
■ I
2
C interface on the kit to connect to an external I2C host, for example, the PSoC 4 Pioneer
Kit (CY8CKIT-042).
❐ Two-position slide switch to select long/short trace for BTN4
❐ Three-position slide switch to add capacitance on BTN2; the three positions of the slide switch
correspond to 10 pF, 15 pF, and no additional capacitance
2
C selection jumpers to select between onboard PSoC 5LP and external host.
2
C bridge
2
C bridge to communicate with EZ-Click.
See Figure 3-1 for the CY3280-MBR3 board details.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G28
Page 29
4.2Theory of Operation
CY8CMBR3116
P5LP
I2C-USB
Bridge
USB
Mini B
Four Red LEDs
(one for each
CapSense Button)
Proximity Red
LED
Power LED
Red
Status LED
Green
ESD Protection
IEC 61000-4-2
Level 4
LDO
Buzzer
Arduino Headers (From Baseboard)
Slide
Switch(SW1)
Proximity Sensor
VBUS
VADJ
1.8V/
3.3V/
4.7V
VDD
I2C_SDA/
SCL
I2C_SCL
HI/Buz
D+/D-
Variable Cp
(10pF, 15pF, 0pF)
Voltage
Control
Current
Sense
Buzzer
Shield
I2C
Host
Interrupt
I2C_SDA
Switch for
choosing a
longer parasitic
trace on BTN4
PolyZen
HI/
Shield
VDDIO2 =VDDIO3=VADJ
VDDIO0=VDDIO1=VBUS
VDD=VBUS
GND
Diode
V5.0
Jumper for
measuring Whole
Kit Current
Consumption
Reset SW
(SW2)
V4.6
V5.0_External
Slide
Switch(
SW3)
NO Load Res for
1.8V operation
Host
Interrupt
J11
J12
J15
J13 and J14
BTN2
BTN4
BTN1
BTN3
This section provides a block-level description of the CY3280-MBR3 EVK.
Figure 4-1. Block Diagram
Hardware
This kit can be powered using the USB Mini-B, the Arduino-compatible header, or an external power
supply. You can configure the input voltage (1.8 V, 3.3 V, 5 V, or external supply) while connecting
the device to EZ-Click. The voltage is controlled by using a low dropout (LDO) regulator, which can
provide regulated power of 1.8 V, 3.3 V, and 4.7 V to the CY8CMBR3116 device. The power to the
MBR3 device is controlled by the Power setting in EZ-Click; see Figure 3-10.
The CY3280-MBR3 EVK includes a status LED, a power LED, LEDs corresponding to all CapSense
buttons, and a proximity LED corresponding to the proximity loop on the kit. It contains an onboard
PSoC 5LP, which acts as a USB-I
4.3Functional Description
4.3.1CY8CMBR3116 CapSense Controller
This kit also includes a reset button, which connects to the reset pin (XRES) of the CY8CMBR3116
device. All the unused pins of the device are brought out onto the Arduino header J2 on the kit to
enable you to test different types of self-designed sensors and observe the output on the oscilloscope.
Note: The kit operation voltage is 4.7 V when the kit is configured for 5 V.
The CY8CMBR3116 CapSense controller includes the following features:
■ SmartSense Auto-Tuning – Cypress' CapSense algorithm that continuously compensates for
system, manufacturing, and environmental changes.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G29
2
C bridge to support I2C communication using a PC host.
Page 30
Hardware
■ Proximity sensing – Supports configurability of sensors for proximity sensing.
■ Button sensor auto-reset – Prevents a stuck sensor when a metal object is placed close to that
sensor.
■ Flanking sensor suppression (FSS) – Eliminates false touches by distinguishing between signals
from closely spaced buttons.
■ Toggle (touch on/off) – Mimics the mechanical button functionality by toggling sensor output sta-
tus on every sensor activation.
■ LED-on time – Provides better visual feedback by enabling the general-purpose output (GPO) to
be on for a configurable period after the button is released.
■ Debounce control – Prevents false trigger by specifying the minimum time for which a sensor
must be touched for a valid ON status.
■ Buzzer signal output – Enables direct drive of a buzzer with configurable frequency.
■ Host-controlled GPO – Enables device GPOs to be controlled by the host (I
■ LED brightness control – Offers duty cycle configurability to control the brightness of the LEDs
2
C master).
connected to the GPOs.
■ Wake-on approach – Wakes the device from low-power and switches to the active state using
proximity sensors.
■ Water tolerance – Enables water-tolerant user interface applications. The shield electrode should
be enabled through the register map to prevent false touches under wet conditions. To prevent
false touches in streaming water conditions, both the shield electrode and guard sensor need to
be enabled. However, the MBR3 kit does not have the guard sensor loop. So, water tolerance
under streaming water conditions cannot be tested on the board.
2
■ I
C slave – An I2C interface with support for 50/100/400-kHz clock speeds and hardware slave
address comparison.
■ Host interrupt – Alerts the host processor upon touch detection; for every touch and release
event, an active low pulse of typically 250 µs is generated.
■ System diagnostics – Supports production testing and debugging.
See the CY8CMBR3116 datasheetfor more details on these features.
The CY3280-MBR3 EVK can be configured using EZ-Click. The kit includes three configuration files
with specific features described in Configuration Files on page 46. Additional configurations can be
generated and applied to the kit using this tool.
See the EZ-Click User Guide for additional details on how to generate more configurations to evaluate the features in this section using EZ-Click. This guide is available at the location <Install
Directory>\EZ-Click\<version>\Documentation.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G30
Page 31
4.3.1.1Pin Mapping Between CY8CMBR3116 and CY3280-MBR3 EVK
The CY8CMBR3116 device can be configured for 16 button sensors of which two sensors are configurable as proximity sensors. The kit demonstrates four button sensors and one proximity sensor.
Ta bl e 4 -1 maps the device pins to the physical sensors on the kit.
Table 4-1. Pin Mapping on the Kit
SensorDeviceKit
CS0/PS0
CS1/PS1
CS2/Guard
CS3CapSense button, controls GPO3Used as button BTN1 on the kit
CS4CapSense button, controls GPO4Used as button BTN2 on the kit
CS5CapSense button, controls GPO5Used as button BTN3 on the kit
CS6CapSense button, controls GPO6Used as button BTN4 on the kit
Routed to Arduino header; can be used for
external button/proximity sensor
Routed to Arduino header; can be used for
external button/guard sensor
Routed to Arduino header; can be used for
external button sensor
Connected to proximity LED on the kit; driven
by CS0/PS0
Routed to Arduino header; can be used for
external button sensor/GPO
Routed to Arduino header; can be used for
external button sensor/GPO
Connected to LED1 on the kit; driven by CS3
(BTN1)
Connected to LED2 on the kit; driven by CS4
(BTN2)
Connected to LED3 on the kit; driven by CS5
(BTN3)
Connected to LED4 on the kit; driven by CS6
(BTN4)
Connected to header J15 multiplexing buzzer,
shield, and host interrupt pin on the kit
Connected to header J15 multiplexing buzzer,
shield, and host interrupt pin on the kit
Hardware
4.3.2PSoC 5LP
An onboard PSoC 5LP is used as a USB-I2C bridge for communicating with the PC host. It also sets
the operating voltage applied to the target device. The MBR3 device can be operated at either 5.0 V,
3.3 V, and 1.8 V. By default, the onboard PSoC 5LP USB-I
for the MBR3 device. The PSoC 5LP connects to the USB port of the PC through a USB Mini-B connector and to the I
PSoC 5LP is a true system-level solution, providing an MCU, memory, analog, and digital peripheral
functions in a single chip. The CY8C58LPxx family offers a modern method of signal acquisition, signal processing, and control with high accuracy, high bandwidth, and high flexibility. Analog capability
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G31
2
C interface of the CY8CMBR3116 device.
2
C bridge sets 3.3 V as operating voltage
Page 32
spans the range from thermocouples (near DC voltages) to ultrasonic signals. For more information,
I/O Header
Protection
Device
5V_EXT
5.0 V
LDO
PSoC 5LP
Vdd, Vddio0, Vddio1
Vddio2 and
Vddio3
MBR3
VDD
SDA, SCL, Host
INT and MBR3
XRES
USB
PTC
ESD
Protection
Jumper for Current Measurement of
MBR3
Jumper for
Whole Kit
Current
Measurement
J11
J12
Control Lines
EN_CTRL, 3.3_CTRL,
1.8_CTRL
refer to the PSoC 5LP web page and datasheet.
4.3.3Power Supply System
The CY8CMBR3116 device supports operation from 1.71 V to 5.5 V. The CY8CMBR3116 device
has two modes of operation: internally regulated mode and externally regulated mode. Table 4-2 lists
the voltage ranges supported for both the operating modes.
Table 4-2. Operating Voltage Ranges for CY8CMBR3116 Device Modes
Operating Voltage RangeInternally Regulated Mode Externally Regulated Mode
1.71 V to 1.8 VNoYes
1.8 V to 1.89 VYesYes
1.89 V to 5.5 VYesNo
Note: See the MBR3 device datasheet for more details.
The power supply system on this board is versatile, allowing the input supply to come from the following sources:
■ 5-V power from the onboard USB Mini-B header (J10)
■ 5-V power from an Arduino board or an external supply using pin 4 of the J1 header
Hardware
The power system of this kit is designed to support 1.8-V, 3.3-V, and 4.7-V operation of the CY8CMBR3116 device. At 1.8 V, the kit can be operated in either internally regulated or externally regulated
mode. By default, the kit and example projects are designed to operate in internally regulated mode.
See Externally Regulated Operation Mode on page 33 to operate the kit in externally regulated
mode. The PSoC 5LP firmware configures the required voltage according to the selection made
while connecting to the USB-I
age and enabling the LDO regulator (U2–MIC 5219). When the kit is powered externally through the
J1 header, the kit operational voltage is regulated to 3.3 V.
When the board is powered using the Arduino header, a PolyZen protection device (U4) is added in
series with the 5-V external power line to protect against overvoltage and reverse-voltage scenarios.
The device can protect overvoltage and reverse voltage up to 12 V.
Figure 4-2. Power Supply Block Diagram with Protection Circuits
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G32
2
C bridge. This configuration is performed by monitoring the Vbus volt-
Page 33
Figure 4-3. Power Supply Section Schematic Snippet
Hardware
Figure 4-4. Protection from Overvoltage and Reverse Voltage from Arduino Header
4.3.3.1Externally Regulated Operation Mode
To operate the kit in externally regulated mode at 1.8 V, solder resistors R84 and R85 with 0- resistors. Select the Supply Voltage (V) parameter in EZ-Click, as shown in Figure 4-5.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G33
Page 34
Figure 4-5. Supply Voltage Parameter for Externally Regulated Mode
Hardware
Populating R84 shorts the VCCD and VDD pin of CY8CMBR3116 for the externally regulated mode.
Populating R85 ensures that the board is always powered at 1.8 V. This overrides the power settings
done from EZ-Click (see Figure 3-10).
Figure 4-6. R84 and R85 for Externally Regulated Operation at 1.8 V
Note: Do not configure the device with the Supply Voltage (V) parameter set to 1.8±5%, before
populating resistors R84 and R85. If you do so, EZ-Click will throw an error, as shown in Figure 4-7.
The kit will not be functional until the resistors R84 and R85 are populated.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G34
Page 35
Hardware
Figure 4-7. EZ-Click Error
To switch the kit operation from externally regulated mode to internally regulated mode, follow these
steps:
1. Select the Supply Voltage (V) parameter in EZ-Click, as shown in Figure 4-8 and apply the con-
figuration. This turns the internal regulator on.
Caution: You cannot apply any configuration if you remove resistors R84 and R85 before step 1.
Figure 4-8. Supply Voltage Parameter
2. Remove the USB cable connected to the kit.
3. Desolder (unpopulate) resistors R84 and R85 (Figure 4-6), which were previously loaded for
externally regulated mode operation.
4. Connect the USB cable to the kit and apply the EZ-Click configuration with the Supply Voltage (V)
parameter as 1.8-5.5, as shown in Figure 4-8.
Note: To operate the kit in internally regulated mode, the Supply Voltage (V) parameter should
be selected as 1.8-5.5, as shown in Figure 4-8.
4.3.3.2Protection Circuit
The power supply rail has reverse-voltage, overvoltage, and short-circuit protection features.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G35
Page 36
Hardware
■ The PTC resettable fuse is connected to protect the computer's USB ports from overcurrent; see
Figure 4-9.
Figure 4-9. USB Power Supply Section Schematic Snippet
■ D2 – A series protection diode to ensure there is no back power to the header; see Figure 4-3.
■ U4 – A PolyZen protection device (ZEN056V075A48LS) that protects the kit against overvoltage
and reverse voltage from the headers; see Figure 4-4.
Caution: There is no protection on the current measurement jumper, test points, and I/O pins. Do
not apply more than 5.5 V on these ports.
4.3.3.3Procedure to Measure the CY8CMBR3116 Current Consumption
This kit provides a way to measure the current consumption of both the whole kit and the CY8CMBR3116 device individually, without soldering. There are two separate jumpers on the board for this
purpose.
1. To measure current consumption of only the CY8CMBR3116 device, remove the power supply by
either disconnecting the USB cable or removing the power source at pin 4 of the J1 header and
connect an ammeter across J12. Now, power the kit again by either connecting the USB cable or
supplying power at pin 4 of the J1 header.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G36
Page 37
Figure 4-10. CY8CMBR3116 Device Current Consumption Measurement
Hardware
2. To measure the current consumption of the whole kit, remove board power and connect an
ammeter across J11. Now, power the kit again by connecting the USB cable.
Figure 4-11. Kit Current Consumption Measurement
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G37
Page 38
Note: Do not remove the current measurement jumper J12 while the kit is powered. This can damage the MBR3 silicon.
4.3.4Button Sensors and Proximity Loop Sensor
The kit has four CapSense buttons (two circular buttons of 10-mm diameter and two circular buttons
of 11-mm diameter) and one proximity loop onboard, as Figure 4-12 shows. These sensors can be
driven by the CY8CMBR3116 device to perform touch and proximity detection.
Figure 4-12. Button Sensor and Proximity Loop Connections on the Kit
Hardware
4.3.5CY3280-MBR3 Kit LEDs
The EVK has seven onboard LEDs. A green LED (D15) indicates the status of the USB-I2C bridge. A
red LED (D13) indicates the status of the power supplied to the board.
The kit also has an active-low red LED for each CapSense button and proximity loop. The CY8CMBR3116 drives these LEDs by driving the GPO low.
Figure 4-13 and Figure 4-14 detail the schematic of the LEDs.
Note: These LEDs are dim when working at 1.8 V compared to 3.3-V and 4.7-V operation.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G38
Page 39
Figure 4-13. Power and Status LED Connection
Figure 4-14. Sensor Indicator LEDs
Hardware
Note: The sensor indicator LEDs are connected to the adjustable voltage, VADJ, which is the output
of the LDO regulator (U2-MIC 5219). The anode of all the LEDs is connected to VADJ, which is high.
Therefore, these are all active-low LEDs.
4.3.6Buzzer, Shield, and Host Interrupt Multiplexing Jumper
The CS15 pin of the MBR3 device is multiplexed for the CapSense button, host interrupt, and shield
electrode. Similarly, GPO7 is multiplexed for general-purpose output, host interrupt, and buzzer output. All three features – host interrupt, buzzer, and shield electrode (water tolerance) cannot be
enabled simultaneously. These features can be enabled using the multiplexing jumper J15, which
has three combinations.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G39
Page 40
Hardware
Table 4-3. J15 Combinations
CombinationFeatures
ABuzzer on GPO7, Host Interrupt on CS15
BHost Interrupt on GPO7, Shield on CS15
CBuzzer on GPO7, Shield on CS15
Note: If water tolerance (shield) is not used and only buzzer or host interrupt features are used, then
the shield pin must be connected to ground by shorting pins 5 and 6 of jumper J15.
See the MBR3 device datasheet and the schematic for more details.
Figure 4-15. Buzzer, Shield, and Host Interrupt Connection
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G40
Page 41
Figure 4-16. Default J15
Hardware
Note: The kit is shipped with the combination/setting 'C' and the third jumper is connected vertically
so that it is not shorted to any other pin.
4.3.7Capacitance Variation Demonstration
The kit provides three methods to demonstrate parasitic capacitance variation on the button sensors
available on the kit, as shown in Figure 4-17. These methods are used to showcase the SmartSense
auto-tuning capability of the device. See SmartSense Auto-Tuning Feature on page 24 to learn the
procedure to test these methods using this kit.
The methods are:
■ Using the trace method: Button BTN4 (connected to the CS6 pin of CY8CMBR3116) is con-
nected to the SW3 slide switch, which can be used to provide two different routes between the
pin and the sensor pad. One route is longer than the other. Different trace lengths have different
parasitic capacitance; therefore, you can change the length of the trace to change the parasitic
capacitance on the sensor.
■ Using external capacitance: The SW1 switch is provided to add an extra capacitance of 10 pF or
15 pF on BTN2 (connected to the CS4 pin of the CY8CMBR3116).
■ Using an additional 1-mm overlay: An additional overlay of 1 mm is provided with this kit. You can
place this overlay over the sensors to change the parasitic capacitance.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G41
Page 42
Figure 4-17. Parasitic Capacitance Configuration
Hardware
4.3.8Arduino-Compatible Headers
The I/O headers J1–J4 comply with the Arduino UNO (R3) kit to support Arduino base boards. The
Arduino-defined signals include digital/analog signals from the CY8CMBR3116; system power signals are brought to the outer rows of headers J1–J4.
Pin maps of the Arduino-compatible headers J1–J4 are shown in the following tables. The pins connected between the Arduino board and the CY3280-MBR3 EVK appear in red. The pins shown in
blue are on the second row of the J2 connector; these are the unused pins of the CY8CMBR3116
device.
This kit also provides additional I
by older Arduino boards, such as the Arduino UNO R2 and Arduino Mega boards. These lines are
not connected (NC) by default and can be used by loading a 0- resistor on R71 and R72 and
removing both jumpers from headers J13 and J14.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G42
2
C lines on pins J2.9 (SDA) and J2.11 (SCL). These pins are used
Page 43
Table 4-4. J1 Arduino Header or Power Connector
Power Connector (J1)
PinArduino Board SignalCY3280-MBR3 EVK Signal
J1.1VINNC
J1.2GNDGND
J1.3GNDGND
J1.4V5.0V5.0
J1.5V3.3NC
J1.6RESETNC
J1.7IOREFNC
J1.8NCNC
Table 4-5. J2 Arduino Header
J2 Connector
PinArduino Board SignalCY3280-MBR3 EVK Signal
J2[1,3,5,7,]A0 – A3 NC
J2.9A4SDA (Default – NC)
J2.11A5SCL (Default – NC)
J2.2NCCS10
J2.4NCCS9
J2.6NCCS7
J2.8NCPS1
J2.10NCCS2/GAURD
J2.12NCGND
Hardware
Table 4-6. J3 Arduino Header
J3 Connector
PinArduino Board SignalCY3280-MBR3 EVK Signal
J3.1D8NC
J3.2D9NC
J3.3D10NC
J3.4D11NC
J3.5D12NC
J3.6D13NC
J3.7GNDGND
J3.8AREFNC
J3.9SDAJ3_SDA
J3.10SCLJ3_SCL
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G43
Page 44
Table 4-7. J4 Arduino Header
J4 Connector
PinArduino Board SignalCY3280-MBR3 EVK Signal
J4.1D0NC
J4.2D1NC
J4.3D2Host Interrupt
J4.4D3NC
J4.5D4NC
J4.6D5NC
J4.7D6NC
J4.8D7NC
Figure 4-18. Arduino Connectors Schematic Snippet
Hardware
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G44
Page 45
4.3.9Push Button to Reset CY8CMBR3116
The kit contains a mechanical reset push button, SW2, to reset the CY8CMBR3116 device, as
shown in Figure 4-19.
Figure 4-19. Push Button Reset Switch
4.3.10I2C Selection Jumpers
Hardware
The I2C communication lines (SCL and SDA) can be connected to either the onboard USB-I2C
bridge (PSoC 5LP) or to the I
2
C pin location on the Arduino header (J3.9 and J3.10). See
Figure 4-18 for the schematic snippet.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G45
Page 46
5.Configuration Files and Example Projects
This section documents the high-level design process to open, configure, generate, and apply configuration files to the CY3280-MBR3 EVK using EZ-Click. This kit provides three sample configurations. Each sample configuration file has different configuration settings, demonstrating various kit
and device features. By default, the kit is configured with the Water Tolerance sample configuration.
Table 5-1. Features in Configuration Files
ConfigurationFeatures
LED ToggleFour CapSense buttons, four LEDs, buzzer, and LED toggle
Proximity Detection
Water Tolerance
To use the sample configuration files, you need EZ-Click, which is installed along with the kit.
5.1Running Configuration Files and Host Projects
Four CapSense buttons, four LEDs, proximity loop, proximity LED, buzzer, and LED
brightness
Four CapSense buttons, four LEDs, water tolerance, flanking sensor suspension (FSS),
auto-reset
The EZ-Click configuration files and PSoC 4 host projects require administrator privileges if they are
run directly from the default install location (C:\Program Files\Cypress). If you do not have
administrator privileges, copy the Firmware folder from the default install location to any other location on your PC and use the files.
5.2Configuration Files
Follow these steps to run the configuration files and verify the features. Before running any of the
configuration files, short pins 1 and 2 on J13 and J14. This is required to short the I
tion lines (SCL and SDA) of the MBR3 device to the PSoC 5LP I
The jumper J15 should be in setting C, as shown in Figure 5-1.
2
C lines.
2
C communica-
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G46
Page 47
Figure 5-1. Jumpers J13, J14, and J15 Settings
5.2.1LED Toggle
This configuration file configures the CY8CMBR3116 for demonstrating the LED toggle (touch on/off)
and buzzer drive features for all four available button sensors.
5.2.1.1Loading LED Toggle Configuration
Configuration Files and Example Projects
1. Connect the CY3280-MBR3 EVK to the PC via the USB port using the USB cable. Ensure that
the status and power LEDs glow.
2. Open EZ-Click from the default location: Start > All Programs > Cypress > EZ-Click <version>
> EZ-Click <version>.
3. Click Open Project in the File menu. Figure 5-2shows the default location of the Load Project
action.
Figure 5-2. Load Project
4. Navigate to the project directory in the Open Project window.
5. Double-click the LED Toggle.cprj file to open it.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G47
Page 48
Configuration Files and Example Projects
6. Ensure that the I2C selection jumpers J13 and J14 are shorted between pins 1 and 2 to allow
communication with the PSoC 5LP onboard USB-I
2
C bridge.
7. Connect the kit to EZ-Click using the following steps.
a. Click the Select Target Device button () on the tool bar of EZ-Click.
b. Select 3.3 V as target power and 400 kHz as I
2
C speed; click OK to connect to the CY3280-
MBR3 EVK, which has the slave address of 0x37.
Figure 5-3. Connecting the Kit with the Customizer
8. Select Apply Current Config in the Configuration menu to apply the configuration to the kit, as
illustrated in Figure 5-4.
Figure 5-4. Apply Current Configuration
9. Wait until the message “Device configuration completed successfully” appears on the status bar
at the bottom of the EZ-Click window, as displayed in Figure 5-5.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G48
Page 49
Configuration Files and Example Projects
Figure 5-5. Successful Configuration Status Message
10.Verify the following features:
a. Toggle (touch on/off) feature: Touch any CapSense button; the respective LED toggles its sta-
tus.
b. Buzzer feature (frequency of 4 kHz and duration of 100 msecs): Touch any CapSense button;
the respective LED toggles along with an audio feedback for 100 msecs at a 4-kHz frequency.
Figure 5-6. Verify LED Toggle Feature
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G49
Page 50
5.2.2Proximity Detection
This configuration file configures the CY8CMBR3116 to demonstrate proximity detection, CapSense
buttons, LED brightness, and buzzer drive features.
5.2.2.1Loading Proximity Detection Configuration
1. Follow steps 1 to 4 as described in section 5.2.1.1 Loading LED Toggle Configuration.
2. Double-click the Proximity Detection.cprj file to open it.
3. Follow steps 6 to 9 as described in section 5.2.1.1 Loading LED Toggle Configuration to continue.
4. Verify the following features:
a. CapSense buttons: Touch any CapSense button; the corresponding LED turns on, detecting
your touch.
b. LED brightness feature (93 percent Active duty cycle and 7 percent Inactive duty cycle): The
LEDs are driven by a pulse width modulator (PWM); the percentage of active and inactive
duty cycles represent the PWM duty cycle for which the LEDs will be on. According to the configuration settings, when none of the CapSense buttons are touched, the LEDs glow with a
faint brightness with a PWM duty cycle of 7 percent. When a CapSense button is touched, the
LED glows with higher brightness, with a PWM duty cycle of 93 percent.
c. Buzzer feature (1-kHz frequency and 1-second duration): Touch a CapSense button or prox-
imity loop; the respective LED turns on along with an audio feedback for 1 second at a 1-kHz
frequency.
Configuration Files and Example Projects
Figure 5-7. LEDs with 7 Percent Inactive Duty Cycle
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G50
Page 51
Figure 5-8. LEDs with 93 Percent Brightness on Button Touch
Configuration Files and Example Projects
d. Proximity: Hover your hand/finger (3-cm distance) over the kit; the proximity LED lights up,
showcasing proximity detection.
The proximity sensor has three states: OFF, Proximity, and ON (or Touch). The buzzer is enabled
when the Proximity state becomes ON – when the proximity loop is touched. The change in Proximity state can be seen in the System Diagnostics tab in EZ-Click. In the System Diagnostics
tab, select Sensor1 from the drop-down list and click Start to monitor the sensor status and SNR
for the selected CapSense sensor.
Figure 5-9. Selecting Proximity Sensor in System Diagnostics
Figure 5-10. Proximity Sensor in Off State
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G51
Page 52
Figure 5-11. Proximity Sensor in Proximity State
Note: In the Proximity state, the LED brightness increases.
Figure 5-12. Proximity Sensor in ON State
Configuration Files and Example Projects
In this state, the buzzer is also enabled.
Note: The EZ-Click customiser tool computes the SNR. To establish a reliable noise range, the tool
should be allowed to collect data samples for at least 30 seconds before a button press or proximity
sensor state change. If sufficient noise samples are not collected, the EZ-Click tool reports an error
and extremely high values for SNR.
Figure 5-13. Verify Proximity Sensor
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G52
Page 53
5.2.3Water Tolerance
This configuration file configures the CY8CMBR3116 to demonstrate water tolerance, FSS, and the
button auto-reset feature. The Water Tolerance configuration is the factory default configuration for
the CY3280-MBR3 EVK.
5.2.3.1Loading Water Tolerance Configuration
1. Follow steps 1 to 4 as described in section 5.2.1.1 Loading LED Toggle Configuration.
2. Double-click the Water Tolerance.cprj file to open it.
3. Follow steps 6 to 9 as described in section 5.2.1.1 Loading LED Toggle Configuration to continue.
4. Verify the following features:
a. FSS feature: Touch any CapSense button; the corresponding LED turns on. Keep your finger
on the same button and touch any of the other buttons; the LED corresponding to the second
button does not turn on. Remove your finger from the first button and then touch the second
button again; the corresponding LED turns on.
Figure 5-14. Verify FSS Feature
Configuration Files and Example Projects
b. Button auto-reset feature (5 seconds): Touch any CapSense button; the corresponding LED
turns on. Do not release your finger; the LED turns off automatically after 5 seconds.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G53
Page 54
Figure 5-15. Auto-Reset Feature - LED Output on Button Touch
Configuration Files and Example Projects
Figure 5-16. Auto-Reset Feature - LED Output Five Seconds After Button Touch
Note: For the buzzer and LED effect features, use a voltage setting of 5 V or 3.3 V for optimal
performance.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G54
Page 55
Configuration Files and Example Projects
c. Water tolerance feature: Place the additional 1-mm overlay on top of the 2-mm overlay. Place
water droplets on top of the CapSense buttons using the water dropper provided with the kit.
Observe that the LEDs do not turn on indicating that none of the CapSense buttons were triggered due to water.
Figure 5-17. Verify Water Tolerance - Without Finger
Touch a CapSense button and observe that it is triggered even in the presence of water droplets.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G55
Page 56
Figure 5-18. Verify Water Tolerance - With Finger
Configuration Files and Example Projects
Note: The board does not have a guard sensor loop and cannot detect false touches in streaming
water conditions. Therefore, while testing the board for water tolerance failure, ensure that the water
droplets placed on one CapSense button do not come in contact with water droplets placed on
another CapSense button.
Note: If the liquid in the dropper has significant conductivity, false touch may occur when the dropper
touches the overlay on the board. This is not observed with clean water.
Water Tolerance Failure Demonstration: In the existing Water Tolerance configuration, uncheck the
Enable Shield check box in the Global Configuration tab.
Figure 5-19. Water Tolerance Failure Demonstration
Now, click the 'Generate Config File' icon to generate the configuration; apply it to the board by clicking the 'Apply Current Config File’ icon.
Press the reset switch, SW2, on the board and place water droplets on the CapSense button using
the water dropper; observe that the LED turns on as if the button has been touched.
Note: The MBR3 SmartSense algorithm constantly updates baseline measurements, which may
compensate for small droplets of water such that water tolerance failure is not observed. Therefore,
a sufficient volume of water (one full dropper) is required to demonstrate water tolerance failure without the shield enabled.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G56
Page 57
5.3PSoC 4 Host Example Projects
In this section, you learn how to use the CY3280-MBR3 EVK as an Arduino shield with boards compatible with the Arduino UNO form factor. The example projects in this section use the CY8CKIT-042
PSoC 4 Pioneer Kit as the baseboard. You can mount the CY3280-MBR3 EVK directly on top of the
PSoC 4 Pioneer Kit, as displayed in Figure 5-20.
The kit can be used with other Arduino boards in a similar fashion. To begin, configure your kit for
communication with the embedded host. On the CY3280-MBR3 EVK:
■ Change the jumper position on header J13 to connect pins J13-2 and J13-3.
■ Change the jumper position on header J14 to connect pins J14-2 and J14-3.
■ Change the jumper position of J15 to position A; see Figure 5-21.
Connect the two kits such that the USB ports of both kits align with each other. When the USB ports
are aligned, the J1, J2, J3, and J4 headers on the PSoC 4 Pioneer Kit connect to J1, J2, J3, and J4
headers on the CY3280-MBR3 EVK.
Note: The J2 header on the PSoC 4 Pioneer Kit is a dual-row header and has three extra pins for
which there are no corresponding pins on the CY3280-MBR3 EVK.
Figure 5-20. Final Mounted Kit
Configuration Files and Example Projects
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G57
Page 58
Configuration Files and Example Projects
Figure 5-21. Jumper Location on the Kit
Two example projects showcase how to configure the MBR3 device and how to communicate with
the device. To open these projects, you need PSoC Creator 3.3 CP3 or later. Download and install
the software from www.cypress.com/PSoCCreator, if required.
To verify these projects, you need a PSoC 4 Pioneer Kit.
See Running Configuration Files and Host Projects on page 46 for information on how to access the
example projects.
5.3.1Host_LED_Toggle_Buzzer_PSoC4_Pioneer_Kit
5.3.1.1Project Description
This example project uses PSoC 4 as the I2C master (host) to configure the CY8CMBR3116 device.
This project shows how to write data to the CY8CMBR3116 device using I
In this project, PSoC 4 loads the 128-byte configuration data to the MBR3 device using I
nication. The 128-byte configuration data of the LED Toggle configuration is sent to the MBR3
device.
This project can be used to learn the process of configuring the device using an external host. See
Configuring the MBR3 Device From the PSoC 4 Pioneer Kit on page 68 for details
2
C communication lines.
2
C commu-
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G58
Page 59
Figure 5-22. PSoC Creator Schematic
Configuration Files and Example Projects
5.3.1.2Hardware Connections
Connect the CY3280-MBR3 EVK to the PSoC 4 Pioneer Kit, as discussed in PSoC 4 Host Example
Projects on page 57.
Ensure that the jumper J15 is connected in position A (see Figure 5-21). Table 5-2 shows the pin
connections used for I
CY8CMBR3116 device I
Table 5-2. Pin Connections
Component Pin NamePort Pin Used
\SCB:scl\P4[0]
\SCB:sda\P4[1]
FAIL_LEDP0[3]
Ensure that I
2
C selection jumpers J13 and J14 are shorted on pins 2 and 3, as shown in Figure 5-21.
2
C communication; the corresponding pins of the EVK are connected to the
2
C pins.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G59
Page 60
5.3.1.3Flow Chart
Start
Initialize I2C Master
component
Configure and load
toggle and buzzer
feature to MBR3
Configuration was
loaded to MBR3
successfully?
MBR3 drives the
LEDs and
buzzer on touch
Yes
The RGB LED on
CY8CKIT-042 blinks
continuously indicating
I2C write error
No
Figure 5-23 shows the flow chart of the code implemented in main.c.
Figure 5-23. Project Flow Chart
Configuration Files and Example Projects
5.3.1.4Build and Program the PSoC 4 Project
Follow these steps to open and program code examples:
1. Launch PSoC Creator from the Start menu.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G60
2. On the Start Page, expand CY3280-MBR3 under Examples and Kits > Kits and select Host_LED_Toggle_Buzzer_PSoC4_Pioneer_Kit.cywrk from the list of example projects, as
shown in Figure 5-24.
3. Select a location to save the project and click OK.
Page 61
Figure 5-24. Navigating to the Project
Configuration Files and Example Projects
4. Build the code example by choosing Build > Build <Project name> or by selecting Build <proj-
ect name> in the menu options obtained by right-clicking on the project name in the Workspace
Explorer to generate the hex file (see Figure 5-25).
Figure 5-25. Building the Project from PSoC Creator
5. To program, connect the PSoC 4 Pioneer Kit to a computer using the USB cable connected to the
USB port/J10 of the PSoC 4 Pioneer Kit.
6. Choose Debug > Program in PSoC Creator (see Figure 5-26).
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G61
Page 62
Configuration Files and Example Projects
Figure 5-26. Programming the Device from PSoC Creator
7. The CY8CKIT-042 is detected as “KitProg/<serial number>” and is seen in the Select Debug Target window. If the PSoC 4 device is not yet acquired, PSoC Creator opens the Programming window. Select the KitProg and click the Port Acquire button (see Figure 5-27).
Figure 5-27. Acquiring the Device from PSoC Creator
8. After the device is acquired, it is shown in a tree structure below the KitProg. Click the Connect
button (see Figure 5-28).
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G62
Page 63
Figure 5-28. Connecting the Device from PSoC Creator
Configuration Files and Example Projects
9. Click OK to exit the window and start programming.
5.3.1.5Verify Output
Ensure that the EVK is connected to the PSoC 4 Pioneer Kit. Touch any CapSense button on the kit;
the corresponding LED toggles, with audio feedback through the buzzer (see Figure 5-29). If an I
write error occurs while loading the configuration to the MBR3 device, the RGB LED on the PSoC 4
Pioneer Kit blinks in blue continuously indicating an I
2
C write error.
2
C
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G63
Page 64
Figure 5-29. Verify Output
Configuration Files and Example Projects
5.3.2Host_Interrupt_LED_ON_Time_PSoC4_Pioneer_Kit
5.3.2.1Project Description
This example project uses PSoC 4 as the I2C master (host) to implement the LED-on time feature on
the CY3280-MBR3 EVK using the host interrupt and host-controlled GPOs feature. This project also
shows how to read the status register of the device with an I
device.
In this project, PSoC 4 loads the following configuration:
■ Four button sensors enabled
■ Host interrupt enabled
■ Host-controlled GPOs
On every touch and release, the device issues a host interrupt (active-low pulse of 250-µs duration)
to the PSoC 4 Pioneer Kit. Upon receipt of the interrupt, PSoC 4 sends an I
read the button status register (0xAA-0xAB). Depending upon the content of the register, PSoC 4
controls the onboard RGB LED. See Tab le 5 -4 for the expected RGB output. Also, it detects if the
host interrupt was generated because of a touch or a release. If a button is released, the corresponding RGB LED keeps glowing for one second before going off. This is implemented using the
counter (TCPWM component) available in PSoC 4.
2
C master upon an interrupt from the
2
C read command to
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G64
Page 65
Figure 5-30. PSoC Creator Schematic
Configuration Files and Example Projects
5.3.2.2Hardware Connections
Connect the CY3280-MBR3 EVK to the PSoC 4 Pioneer Kit, as shown in Figure 5-20. Ensure that
the jumper J15 is connected in position A (see Figure 5-21). No specific hardware connection is
required for this project because all connections are hard wired.
Ta bl e 5 -3 lists the pin connections used for I
are connected to the CY8CMBR3116 device I
Table 5-3. Pin Connections
Component Pin NamePort Pin Used
\SCB:scl\P4[0]
\SCB:sda\P4[1]
HostInt_PinP0[7]
2
C communication; the corresponding pins of the EVK
2
C pins.
BlueP0[3]
GreenP0[2]
RedP1[6]
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G65
Page 66
5.3.2.3Flow Chart
Initialize I2C, Counter and
Interrupt components
Start
Turn off all LEDs on Host
Wait for 1sec for MBR3 to
bootup
Configure MBR3
Is MBR3
configured
successfully?
Turn off all LEDs on
MBR3
Is host interrupt
flag set?
Reset host interrupt flag
Read sensor status
Is read
successful?
Turn on/off MBR3 LEDs
Is any LED
active?
Update host RGB LEDs
Is counter
expired?
Turn off all LEDs
Initialize counter interrupt flag
Reset LED status flag
Yes
Blink blue LED
continuously
No
Yes
No
Yes
Blink Red LED
continuously
No
Yes
Start Counter
No
Yes
No
Is any button
active?
Yes
Stop counter
Figure 5-31 shows the flow chart of the code implemented in main.c.
Figure 5-31. Project Flow Chart
Configuration Files and Example Projects
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G66
Page 67
5.3.2.4Build and Program the PSoC 4 Project
Follow these steps to open and program code examples:
1. Launch PSoC Creator from the Start menu.
2. On the Start Page, expand CY3280-MBR3 under Examples and Kits > Kits and select Host_In-terrupt_LED_ON_Time_PSoC4_Pioneer_Kit.cywrk from the list of example projects.
3. Follow steps 3 to 9 as described in Build and Program the PSoC 4 Project on page 60 to continue.
5.3.2.5Verify Output
Ensure that the EVK is connected to the PSoC 4 Pioneer Kit. Touch a CapSense button. Observe
that the corresponding LED on the CY3280-MBR3 EVK turns on; the RGB LED also turns on based
on the button touched according to Table 5-4. Remove the finger from the CapSense button.
Observe that the corresponding LED on the CY3280-MBR3 EVK turns off immediately but the RGB
LED turns off one second after removing the finger (see Figure 5-32).
Table 5-4. RGB LED Mapping on PSoC 4 Pioneer Kit with Button Sensors on CY3280-MBR3 EVK
Button Sensor TouchedLED Connection on PSoC 4 Pioneer Kit
BTN1Green LED
BTN2Red LED
BTN3Blue LED
BTN4All three LEDs
Configuration Files and Example Projects
Note: When the LED is on and a touch is detected before the one-second elapse time, the touch is
not processed.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G67
Page 68
Figure 5-32. Verify Output
Configuration Files and Example Projects
5.3.3Configuring the MBR3 Device From the PSoC 4 Pioneer Kit
The MBR3 device can be configured as required from an external host such as the CY8CKIT-042
PSoC 4 Pioneer Kit. This can be done using the configuration files generated by EZ-Click. Follow
these steps to configure the MBR3 device from an external host:
1. Open EZ-Click.
2. Create a new project and select the CY8CMBR3116 device in the Product Selector Guide.
3. Configure the features as needed, considering the kit pin mapping (see Pin Mapping Between
CY8CMBR3116 and CY3280-MBR3 EVK on page 31).
4. Generate the configuration file.
5. Navigate to the EZ-Click project directory and look for <file name>.h file inside the directory.
6. Open <file name>.h either from within PSoC Creator or using any text editor such as WordPad.
7. Copy and paste the 128-byte array CY8CMBR3116_configuration[128] in <filename>.h to the
LED Toggle.h file located in the MBR3_Configuration folder.
Note: When configuring the MBR3 device from an external host such as the PSoC 4 Pioneer Kit,
ensure that a blank configuration or a slave address of 0x00 is not sent to the device. If this happens, see Restoring to Factory Default Slave Address from 0x00 on page 74 to revert the kit back
to factory default. The valid slave address for the MBR3 device is from 0x08–0x77.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G68
Page 69
Configuration Files and Example Projects
Figure 5-33. Configuration.C File
8. Build the project (see steps 3 to 8 in Build and Program the PSoC 4 Project on page 60) and pro-
gram it on to the PSoC 4 Pioneer Kit; verify the functionality on the CY3280-MBR3 EVK.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G69
Page 70
6.Advanced Topics
6.1Using PSoC 5LP as USB-I2C Bridge
The PSoC 5LP on the CY3280-MBR3 EVK serves as a USB-I2C bridge, which can be used to communicate with USB-I
installed along with PSoC Programmer during kit installation. BCP works with I
bridges, which communicate with slave devices. This application currently supports CY3240, MiniProg3, FirstTouch, FirstTouchRF, True-TouchBridge, DVKProg1, and KitProg bridges.
The following steps describe how to use the USB-I
and CY8CMBR3116 device.
1. Open BCP from Start > All Programs > Cypress > Bridge Control Panel <version number>.
2. Connect the CY3280-MBR3 EVK to your PC via a USB port using the USB cable.
3. Ensure that the I
2
I
C communication between PSoC 5LP and the MBR3 device. Connect jumper J15 in setting C,
as shown in Figure 5-1.
4. Select the KitProg in the BCP to use the USB-I
‘Connected’ and ‘Powered’ tabs turn green, as shown in Figure 6-1.
Figure 6-1. KitProg USB-I
2
C software such as Bridge Control Panel. Bridge Control Panel (BCP) is
2
C bridge, which can communicate between BCP
2
C selection jumpers J13 and J14 are shorted between pins 1 and 2 to enable
2
C functionality. On successful connection, the
2
C Connected in Bridge Control Panel
2
C, SPI, and RX8
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G70
Page 71
Advanced Topics
5. EZ-Click generates an IIC file, which can be used in the BCP software. Click File > Open File
and navigate to the EZ-Click project directory in <Install_Directory>\CY3280-MBR3 EVK\<version>\Firmware\Config Files\ and open the required project and select the
IIC file.
Figure 6-2. Opening IIC File
Figure 6-3. LED Toggle.iic File
Note: The location of the LED Toggle.iic file is shown as reference. Any IIC file can be used.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G71
Page 72
Advanced Topics
6. The MBR3 device is in a deep-sleep state until a CapSense or I2C activity occurs. When receiving an I
sleep. This I
pliant devices on the bus. An I
resend the I
2
C command while in deep sleep, MBR3 will NACK the request and begin to wake from
2
C approach is in lieu of I2C clock stretching, which may corrupt non-stretching com-
2
C command until the MBR3 device wakes and acknowledges. Two dummy write
2
C command sent from BCP may not be acknowledged. Therefore,
operations to the MBR3 device are sufficient before sending the 128-byte configuration. To send
a dummy write, edit each write command in the IIC file with the prefix “w 37 0 p w 37 0 p”.
7. From the BCP, transfer the 128-byte configuration data to the MBR3 device; to do this, place the
cursor on the command to be sent to the MBR3 device and click the Send button on the GUI or
press the Enter key on your keyboard. The log shows if the transaction is a success or failure. A
“+” after each byte indicates that the transaction is a success and a “–” indicates that it is a failure
(see Figure 6-4).
8. Send both I
2
C commands in the IIC file to see the configuration in effect on the CY3280-MBR3
kit.
9. Press the reset switch, SW2, on the kit. The configuration specified by 128 bytes in the first command will take effect.
Note: See LED Toggle on page 47 for more details and expected output of the LED Toggle con-
figuration.
Figure 6-4. Writing to I
2
C Slave in BCP
10.Read five bytes of data from the register offset address 0x00 of the MBR3 device. The log shows
if the transaction is a success or a failure.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G72
Page 73
Figure 6-5. Reading from I2C Slave in BCP
Advanced Topics
The command format to communicate with this kit using the BCP is as follows:
■ Write data command format: To write ‘N’ bytes of data after the register offset address, use this
format to send data.
wSlave address Register offsetData to write (N bytes)p
■ Read data command format: To read ‘N’ bytes of data beginning with the register offset address,
use this format to receive data.
wSlave address Register offsetrSlave address
write ‘N’ number of x’s with
spaces
p
Notes:
■ The Write/Read transaction with an MBR3 device requires specifying an offset address to the
MBR3 device from which the data reading/writing should start. The MBR3 device automatically
increments the register address for every byte after the offset address. Therefore, a Read/Write
transaction with an MBR3 device starts with an I
2
C write operation to specify the register offset to
the MBR3 device.
■ All bytes in the IIC file are in hex format.
The status box below the editor window shows the offset register content, where:
■ w – Write command.
■ Address – Slave device address (in hex). Default address for the device on this kit is 0x37.
■ Register offset – Offset address of the configuration register you want to write. See the datasheet
for the list of registers and their offset addresses.
■ Data – Write ‘N’ byte data here to write sequentially beginning with the offset address.
■ r – Read command.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G73
Page 74
■ x – Reserved symbol. Each ‘x’ in the command signifies that 1 byte of data should be read.
■ p – Stop command
6.2Restoring to Factory Default Slave Address from 0x00
When configuring the MBR3 device from an external host such as the CY8CKIT-042 PSoC 4 Pioneer Kit, ensure that either a blank configuration (128 bytes of 0x00) or a slave address of 0x00 is
not programmed into the MBR3 silicon. The valid slave address for MBR3 is 0x08–0x77 (8–119).
If a slave address is configured to the MBR3 device, the kit becomes unusable because it cannot be
reconfigured from EZ-Click. In such a situation, follow these steps to restore the slave address to the
default slave address 0x37.
1. Disconnect the CY3280-MBR3 kit from the external host or CY8CKIT-042.
2. Change the I
3. Change the J15 setting to setting C.
4. Launch BCP, as explained in steps 1 to 4 in 6.1 Using PSoC 5LP as USB-I2C Bridge.
5. Click File > Open and navigate to the Water Tolerance configuration project directory and open
Water Tolerance.iic in BCP.
6. Change "37" next to w to "00" in both the IIC commands. Also, edit the IIC commands with
dummy write operations and send the configuration to the MBR3 device, as explained in step 6 of
Using PSoC 5LP as USB-I2C Bridge on page 70.
2
C selection jumpers J13 and J14 in positions 1 and 2.
Advanced Topics
Figure 6-6. Restore Factory Default Slave Address in BCP
7. Both the I
ACK'ed (acknowledged). If any I
2
C commands are sent one after another. Ensure that all bytes of the I2C command are
2
C command is NACK'ed (not acknowledged), send the I2C
commands again. See Figure 6-4 for ACK and NACK indications.
8. After both the commands are successfully sent to the MBR3 device, that is, all bytes are ACK'ed,
press the reset switch (SW2) on the CY3280-MBR3 EVK.
9. The kit will become operational again and exhibit the "Water Tolerance" output. Refer to Water
Tolerance on page 53. The kit will also be recognized with the slave ID of 0x37 in EZ-Click.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G74
Page 75
Advanced Topics
6.3Connecting External CapSense Sensors to the CY3280-MBR3 EVK
In some situations, it is required to connect external sensors to the CY3280-MBR3 EVK to evaluate
the sensor performance. The CY3280-MBR3 EVK provides an option to connect up to five external
sensors to header J2, as shown in Figure 6-7. In Figure 6-7, four CapSense button sensors and one
proximity sensor is connected to the kit. The driven shield signal from the CY8CMBR3116 controller
can also be connected to the external shield electrode by connecting a wire from pin 4 (HI/SHIELD)
in header J15 to the external shield electrode. This will allow users to test proximity and liquid tolerance performance of external sensors with the driven shield signal.
Figure 6-7. External CapSense Sensors Connected to Header J2
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G75
Page 76
A.Appendix
A.1Schematic
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G76
Page 77
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G77
Page 78
No Load
No Load
P5LP_XRES
P5LP3_1
P5LP2_4
P5LP_VDD
P5LP_VDD
VTARG
1206R
D15
Status LED Green
21
0603
R83
4.7K
0805
R62
330 ohm
0402
C35
100 pF
0603
R41
4.7K
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *G78
Page 79
VCCD
NOTE: Keep VCCD and
CMOD cap near U2.
And keep the CMOD
Cap Trace thick like
power Trace
NOTE: Load R84 and R85 only during 1.8V externally regulated mode of operation.
WARNING: When R84 is loaded DO NOT operate the kit at
any voltage more than 1.8V i.e. 3.3V or 5V.Otherwise
the CY8CMBR3116 silicon will get damaged.