CY3280-MBR3 Evaluation Kit User Guide Doc. #: 001-89905 Rev. *B Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): +1.800.858.1810 Phone (Intnl): +1.408.943.2600 http://www.cypress.
Copyrights Copyrights © Cypress Semiconductor Corporation, 2014. 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.
Contents Safety Information 1. Introduction 1.1 1.2 1.3 1.4 1.5 1.6 1.7 32 Board Details .............................................................................................................32 Theory of Operation...................................................................................................33 Functional Description ...............................................................................................34 4.3.1 CY8CMBR3116 CapSense Controller ............................
Contents 5.2 5.3 Configuration Files.....................................................................................................51 5.2.1 LED Toggle.....................................................................................................52 5.2.2 Proximity Detection ........................................................................................55 5.2.3 Water Tolerance .............................................................................................
Safety Information 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.
Safety Information 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.
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-I2C bridge to communicate with the EZ-Click™ 2.
Introduction 1.1 Kit 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 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.2 Getting Started This kit guide helps to familiarize you with the CY3280-MBR3 EVK.
Introduction 1.3 Factory Default Configuration The kit installation folder includes three configuration files that demonstrate several features of the CY8CMBR3116 CapSense controller. The section, Configuration Files on page 51, provides more details. The CY3280-MBR3 EVK is configured with the Water Tolerance configuration by default. In this configuration, water tolerance, flanking sensor suppression (FSS), and auto-reset features are enabled for four CapSense buttons.
Introduction 1.7 Document Conventions Table 1-2. Document Conventions for Guides Convention Usage Courier New Displays file locations, user entered text, and source code: C:\...cd\icc\ Italics Displays file names and reference documentation: Read about the sourcefile.hex file in the PSoC Designer User Guide.
2. Kit Installation This chapter describes the CY3280-MBR3 EVK software installation and the prerequisites. 2.1 Before 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. Note: The kit contents are installed in the C:\Program Files\Cypress folder by default.
Kit Installation ■ 2.3 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. Install 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 3.
Kit Installation Figure 2-2. Default Path for EVK Installation 4. When you click Next, the CY3280-MBR3_Kit ISO installer automatically installs the required software, 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.
Kit Installation 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, as Figure 2-4 shows. Figure 2-4. Installation Page 8. Click Finish to complete the CY3280-MBR3 EVK installation, as illustrated in Figure 2-5. Figure 2-5.
Kit Installation 2.4 Uninstall 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 Manager; 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.
3. Kit Operation The CY8CMBR3116 CapSense controller is a register-configurable device that supports multiple features, as listed in Kit Features on page 28. 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.
Kit Operation Figure 3-2. CY3280-MBR3 EVK Bottom View Arduino headers Reset switch Slide switch SW3 (trace selection switch for BTN4) Kit current measurement jumper CY8CMBR3116 CapSense Express controller USB connector Slide switch SW1 (capacitance selector switch for BTN2) CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
Kit Operation 3.1 Powering 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 Table 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.
Kit Operation Figure 3-5. Device Manager View after KitProg is Installed 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.
Kit Operation 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 58 for more information. 3.2 Communication Between PC Host and Kit 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).
Kit Operation Figure 3-7. EZ-Click 2.0 Customizer Tool – Start Page 3.3 Configuring the CY8CMBR3116 Controller Using EZ-Click 2.0 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 the EZ-Click 2.0 customizer tool from the default location: Start > All Programs > Cypress > EZ-Click 2.0 > EZ-Click 2.0. 3. Create a new project in EZ-Click 2.0 by clicking New Project… in the File menu, as shown in Figure 3-8.
Kit Operation Figure 3-8. Creating a New Project in EZ-Click 2.0 4. Enter an appropriate name for the project and choose a location to save your project. Select Target Device as ‘CY8CMBR3116’ from the Product Selector. To launch the Product Selector, click the Device Selector button, as shown in the following figure. Figure 3-9. New Project Details CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
Kit Operation Figure 3-10. Choosing Part Number in Product Selector Guide 5. Ensure that the I2C selection jumpers J13 and J14 are shorted between pins 1 and 2 to allow communication with the onboard PSoC 5LP USB-I2C bridge. 6. Connect the kit to the EZ-Click customizer tool by clicking the Select Target Device button ( ) on the EZ-Click tool bar. This opens a Select I2C Target window (Figure 3-11); select the following: a. KitProg/ in the Ports window. b.
Kit Operation Figure 3-11. Connecting the Kit Using the EZ-Click 2.0 Customizer Tool 7. Click OK. The I2C slave address of the connected device appears on the status bar at the bottom of the EZ-Click window, as shown in Figure 3-12. Figure 3-12. I2C Slave Address Display 8. Enable the button sensors in the CapSense sensor configuration tab, as shown in Figure 3-13.
Kit Operation Figure 3-13. Enabling Button Sensors Using EZ-Click 2.0 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 the EZ-Click 2.0 customizer tool, which map to pins CS3, CS4, CS5, and CS6 respectively on the MBR3 device. Figure 3-15 shows the corresponding four buttons for reference. 9. The sensor names can be modified if desired, as shown in Figure 3-14. Figure 3-14.
Kit Operation Figure 3-15. Kit Buttons Corresponding to CapSense Sensor Pins 10.Enable the corresponding LEDs in the Global configuration tab, as shown in Figure 3-16, 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 the EZ-Click 2.
Kit Operation 11. The LEDs can also be renamed, as shown in Figure 3-17. Figure 3-17. 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-18). Figure 3-18. EZ-Click Status Bar Showing Configuration Generation Status 13.Click the Apply Current Configuration icon on the tool bar in the EZ-Click 2.
Kit Operation 3.
Kit Operation 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-20. SW1 Slide Switch in NC-BTN2 Position 2. Using a short/long trace by adjusting the SW3 slide switch on the kit a.
Kit Operation Figure 3-21. SW3 Slide Switch in Long Trace Position 3. Using the additional 1-mm overlay provided with the kit, as shown in Figure 3-22 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 feedback 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.
Kit Operation Figure 3-22. Board with Additional 1-mm Overlay Placed on the 2-mm Overlay CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
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 34.
Hardware 4.2 Theory of Operation This section provides a block-level description of the CY3280-MBR3 EVK. Figure 4-1. Block Diagram Arduino Headers (From Baseboard) J13 and J14 V5.0_External USB Mini B J11 V4.6 D+/D- Diode VBUS VDD=VBUS Voltage Control LDO Jumper for measuring Whole Kit Current Consumption I2C_SDA Host Interrupt VADJ 1.8V/ 3.3V/ 4.
Hardware 4.3 Functional Description 4.3.1 CY8CMBR3116 CapSense Controller The CY8CMBR3116 CapSense controller includes the following features: ■ SmartSense Auto-Tuning – Cypress' CapSense algorithm that continuously compensates for system, manufacturing, and environmental changes. ■ 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.
Hardware Table 4-1 maps the device pins to the physical sensors on the kit. Table 4-1. Pin Mapping on the Kit Sensor 4.3.
Hardware 4.3.3 Power 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 Range Internally Regulated Mode Externally Regulated Mode 1.71 V to 1.8 V No Yes 1.8 V to 1.89 V Yes Yes 1.89 V to 5.
Hardware Figure 4-3. Power Supply Section Schematic Snippet Figure 4-4. Protection from Overvoltage and Reverse Voltage from Arduino Header 4.3.3.1 Externally Regulated Operation Mode To operate the kit in externally regulated mode at 1.8 V, solder resistors R84 and R85 with 0-ohm resistors. Select the Supply Voltage (V) parameter on the EZ-Click customizer tool, as shown in Figure 4-5. CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
Hardware Figure 4-5. Supply Voltage Parameter for Externally Regulated Mode 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 the EZ-Click customizer tool (see Figure 3-11). 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.
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 on the EZ-Click customizer tool, as shown in Figure 4-8 and apply the configuration. 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 CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
Hardware 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.
Hardware 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. Figure 4-10. CY8CMBR3116 Device Current Consumption Measurement 2. To measure the current consumption of the whole kit, remove board power and connect an ammeter across J11.
Hardware Figure 4-11. Kit Current Consumption Measurement Note: Do not remove the current measurement jumper J12 while the kit is powered. This can damage the MBR3 silicon. 4.3.4 Button 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.
Hardware Figure 4-12. Button Sensor and Proximity Loop Connections on the Kit 4.3.5 CY3280-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.
Hardware Figure 4-14. Sensor Indicator LEDs 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.6 Buzzer, Shield, and Host Interrupt Multiplexing Jumper The CS15 pin of the MBR3 device is multiplexed for the CapSense button, host interrupt, and shield electrode.
Hardware Figure 4-15. Buzzer, Shield, and Host Interrupt Connection CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
Hardware Figure 4-16. Default J15 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.7 Capacitance 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.
Hardware Figure 4-17. Parasitic Capacitance Configuration 4.3.8 Arduino-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.
Hardware Table 4-4. J1 Arduino Header or Power Connector Power Connector (J1) Pin Arduino Board Signal CY3280-MBR3 EVK Signal J1.1 VIN NC J1.2 GND GND J1.3 GND GND J1.4 V5.0 V5.0 J1.5 V3.3 NC J1.6 RESET NC J1.7 IOREF NC J1.8 NC NC Table 4-5. J2 Arduino Header J2 Connector Pin Arduino Board Signal CY3280-MBR3 EVK Signal J2[1,3,5,7,] A0 – A3 NC J2.9 A4 SDA (Default – NC) J2.11 A5 SCL (Default – NC) J2.2 NC CS10 J2.4 NC CS9 J2.6 NC CS7 J2.8 NC PS1 J2.
Hardware Table 4-7. J4 Arduino Header J4 Connector Pin Arduino Board Signal CY3280-MBR3 EVK Signal J4.1 D0 NC J4.2 D1 NC J4.3 D2 Host Interrupt J4.4 D3 NC J4.5 D4 NC J4.6 D5 NC J4.7 D6 NC J4.8 D7 NC Figure 4-18. Arduino Connectors Schematic Snippet CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
Hardware 4.3.9 Push 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.10 I2C Selection Jumpers The I2C communication lines (SCL and SDA) can be connected to either the onboard USB-I2C bridge (PSoC 5LP) or to the I2C 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.
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 the EZ-Click 2.0 customizer tool. 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.
Configuration Files and Example Projects Figure 5-1. Jumpers J13, J14, and J15 Settings 5.2.1 LED 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.1 Loading LED Toggle Configuration 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 the EZ-Click 2.
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-I2C bridge. 7. Connect the kit to the EZ-Click 2.0 customizer tool using the following steps. a. Click the Select Target Device button ( ) on the tool bar of EZ-Click 2.0. b. Select 3.3 V as target power and 400 kHz as I2C speed; click OK to connect to the CY3280MBR3 EVK, which has the slave address of 0x37. Figure 5-3.
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 status. 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.
Configuration Files and Example Projects 5.2.2 Proximity Detection This configuration file configures the CY8CMBR3116 to demonstrate proximity detection, CapSense buttons, LED brightness, and buzzer drive features. 5.2.2.1 Loading 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.
Configuration Files and Example Projects Figure 5-8. LEDs with 93 Percent Brightness on Button Touch 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.
Configuration Files and Example Projects 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 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.
Configuration Files and Example Projects 5.2.3 Water 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.1 Loading 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.
Configuration Files and Example Projects Figure 5-15. Auto-Reset Feature - LED Output on Button Touch 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.
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.
Configuration Files and Example Projects Figure 5-18. Verify Water Tolerance - With Finger 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.
Configuration Files and Example Projects 5.3 PSoC 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.
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.0 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 51 for information on how to access the example projects. 5.3.
Configuration Files and Example Projects Figure 5-22. PSoC Creator Schematic 5.3.1.2 Hardware Connections Connect the CY3280-MBR3 EVK to the PSoC 4 Pioneer Kit, as discussed in PSoC 4 Host Example Projects on page 62. Ensure that the jumper J15 is connected in position A (see Figure 5-21). Table 5-2 shows the pin connections used for I2C communication; the corresponding pins of the EVK are connected to the CY8CMBR3116 device I2C pins. Table 5-2.
Configuration Files and Example Projects 5.3.1.3 Flow Chart Figure 5-23 shows the flow chart of the code implemented in main.c. Figure 5-23. Project Flow Chart Start Initialize I2C Master component Configure and load toggle and buzzer feature to MBR3 Configuration was loaded to MBR3 successfully? No The RGB LED on CY8CKIT-042 blinks continuously indicating I2C write error Yes MBR3 drives the LEDs and buzzer on touch 5.3.1.
Configuration Files and Example Projects Figure 5-25. Building the Project from PSoC Creator 4. 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. 5. Choose Debug > Program in PSoC Creator (see Figure 5-26). Figure 5-26. Programming the Device from PSoC Creator 6. The CY8CKIT-042 is detected as "KitProg/” and is seen in the Select Debug Target window.
Configuration Files and Example Projects Figure 5-27. Acquiring the Device from PSoC Creator 7. After the device is acquired, it is shown in a tree structure below the KitProg. Click the Connect button (see Figure 5-28). Figure 5-28. Connecting the Device from PSoC Creator 8. Click OK to exit the window and start programming. CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
Configuration Files and Example Projects 5.3.1.5 Verify 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 I2C 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 I2C write error. Figure 5-29. Verify Output 5.3.
Configuration Files and Example Projects Figure 5-30. PSoC Creator Schematic 5.3.2.2 Hardware 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. Table 5-3 lists the pin connections used for I2C communication; the corresponding pins of the EVK are connected to the CY8CMBR3116 device I2C pins.
Configuration Files and Example Projects 5.3.2.3 Flow Chart Figure 5-31 shows the flow chart of the code implemented in main.c. Figure 5-31.
Configuration Files and Example Projects 5.3.2.4 Build and Program the PSoC 4 Project Follow these steps to open and program code examples: 1. Launch PSoC Creator 3.0 (or later) from the Start menu. 2. Open the Host_Interrupt_LED_ON_Time_PSoC4_Pioneer_Kit.cywrk workspace by choosing File > Open > Project/Workspace and navigating to the directory in which your project was saved, as shown in Figure 5-24. 3. Follow steps 3 to 8 as described in Build and Program the PSoC 4 Project on page 71 to continue. 5.
Configuration Files and Example Projects Figure 5-32. Verify Output 5.3.3 Configuring 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 the EZ-Click 2.0 customizer tool. 2.
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 65) and program 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.
6. 6.1 Advanced Topics Using 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-I2C software such as Bridge Control Panel. Bridge Control Panel (BCP) is installed along with PSoC Programmer during kit installation. BCP works with I2C, SPI, and RX8 bridges, which communicate with slave devices. This application currently supports CY3240, MiniProg3, FirstTouch, FirstTouchRF, True-TouchBridge, DVKProg1, and KitProg bridges.
Advanced Topics 5. The EZ-Click customizer tool 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 \CY3280-MBR3 EVK\\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.
Advanced Topics 6. The MBR3 device is in a deep-sleep state until a CapSense or I2C activity occurs. When receiving an I2C command while in deep sleep, MBR3 will NACK the request and begin to wake from sleep. This I2C approach is in lieu of I2C clock stretching, which may corrupt non-stretching compliant devices on the bus. An I2C command sent from BCP may not be acknowledged. Therefore, resend the I2C command until the MBR3 device wakes and acknowledges.
Advanced Topics Figure 6-5. Reading from I2C Slave in BCP 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. w ■ Slave address Register offset Data 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.
Advanced Topics 6.2 ■ x – Reserved symbol. Each ‘x’ in the command signifies that 1 byte of data should be read. ■ p – Stop command Restoring 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).
A. A.1 Appendix Schematic CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
VTARG P5LP_VDD 1 P5LP3_1 R41 4.7K 0603 D15 2 0603 R62 1206R P5LP_VDD R83 4.7K No Load 0805 330 ohm Status LED Green P5LP2_4 P5LP_XRES 0402 C35 100 pF No Load CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
CS1/PS1 0402 0402 CS3 R51 560 ohm 4 330 ohm R80 19 CS4 CS5 20 21 I2C SDA CS8/ GPO0 CS3 R52 560 ohm CS6 17 R75 560 ohm CS9/ GPO1 CY8CMBR3116 16 CS7 PROX_LED R74 560 ohm 15 CMOD CS10/ GPO2 VCCD CS11/ GPO3 14 R76 560 ohm CS9 CS10 LED1 CS12/ GPO4 CS13/ GPO5 13 12 CS14/ GPO6 11 VSS 8 10 EPAD 7 NOTE: Keep VCCD and CMOD cap near U2. And keep the CMOD Cap Trace thick like power Trace VDD 25 0402 LED3 6 C7 0.1 uF LED4 1VCCD HI/SHIELD VDD C30 1.0 uF C33 0.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.
A.2 Pin Assignment Table Pin No. Pin Name Type Description Usage 1 CS0/PS0 I/O CapSense button/proximity sensor, controls Proximity loop. GPO0 2 CS1/PS1 I/O CapSense button/proximity sensor, controls Brought out to dual header through a 560-ohm GPO1 resistor. 3 CS2/GUARD I/O CapSense button/guard sensor, controls GPO2 Brought out to dual header through a 560-ohm resistor. 4 CS3 I/O CapSense button controls GPO3 BTN1 (10-mm diameter). 5 CMOD I/O External modulator capacitor.
A.3 Bill of Materials Item Qty Reference Description Manufacturer Manufacturer Part No. 1 6 C11,C13,C18,C19,C CAP CER 1UF 10V 10% X5R 0603 23,C33 TDK Corporation C1608X5R1A105K080AC 2 1 C4 CAP TANT 10UF 16V 10% 1206 AVX TAJA106K016R 3 1 C5 CAP CER 22UF 10V 20% JB 0805 TDK Corporation C2012JB1A226M125AB 4 9 C7,C12,C14,C15,C1 CAP CER 0.
Item Qty 30 1 Reference Description Manufacturer Manufacturer Part No. F1 PTC Resettable Fuses 15Volts 100Amps Bourns MF-MSMF050-2 PROTECTRON P9101-03-12-1 31 2 J13,J14 HDR, CONN, HEADER, MALE, 2.54mm, 3POS, GOLD, TH 32 2 J1,J4 2.54mm PITCH SINGLE ROW 8POS HEADER, 13mm MATING LENGTH PROTECTRON P9101-08-D32-1 33 1 J2 2.54mm PITCH SINGLE ROW 6POS HEADER, 13mm MATING LENGTH PROTECTRON P9101-06-D32-1 34 1 J3 2.
Revision History CY3280-MBR3 Evaluation Kit User Guide Revision History Document Title: CY3280-MBR3 Evaluation Kit User Guide Document Number: 001-89905 Revision Issue Date Origin of Change Description of Change ** 02/18/2014 SASH New kit guide *A 02/21/2014 SASH Updated EZ-Click images *B 03/10/2014 PAVA Updates to include support for externally regulated operating mode at 1.8 V CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev.