CONTENTS CHAPTER 1 INTRODUCTION OF THE CY8CMBR2016 EVK FEATURES ABOUT THE KIT GETTING HELP... 4

C CONTENTS CHAPTER 1 INTRODUCTION OF THE CY8CMBR2016 EVK................................................................. 2 1.1 FEATURES ............
Author: Toby Neal
8 downloads 0 Views 3MB Size
C

CONTENTS CHAPTER 1

INTRODUCTION OF THE CY8CMBR2016 EVK................................................................. 2

1.1 FEATURES ...................................................................................................................................................................... 2 1.2 ABOUT THE KIT............................................................................................................................................................. 4 1.3 GETTING HELP ............................................................................................................................................................... 4 CHAPTER 2

CY8CMBR2016 EVK ARCHITECTURE ................................................................................ 5

2.1 LAYOUT AND COMPONENTS ........................................................................................................................................... 5 2.2 BLOCK DIAGRAM .......................................................................................................................................................... 6 2.3 KIT POWER .................................................................................................................................................................... 7 2.4 DEFAULT SWITCH AND JUMPER SETTINGS ..................................................................................................................... 8 CHAPTER 3

USING THE CY8CMBR2016 EVK .................................................................................... 11

3.1 USER INPUT/ OUTPUT .................................................................................................................................................. 11 3.2 HOST COMMUNICATION HEADER................................................................................................................................. 15 3.3 SENSOR MODULE HEADER .......................................................................................................................................... 16 3.4 POWER SUPPLY ............................................................................................................................................................ 16 CHAPTER 4

PROJECT EXAMPLES ..................................................................................................... 17

4.1 LEDS ........................................................................................................................................................................... 17 4.2 FIRMWARE FUNCTIONALITY ........................................................................................................................................ 19 CHAPTER 5

APPENDIX ........................................................................................................................ 21

5.1 REVISION HISTORY ...................................................................................................................................................... 21 5.2 COPYRIGHT STATEMENT .............................................................................................................................................. 21

1

Chapter 1

Introduction of the CY8CMBR2016 EVK The CY8CMBR2016 EVK, which consists of Center Board and Sensor Module, is designed to allow users to easily implement a matrix keypad user interface solution using Cypress CapSense/SmartSense Auto-tuning technology. The kit contains 16 capacitive touch buttons organized in a matrix-style format. The board will enable users to achieve quick-to-market designs in large solution applications such as fire alarm control panels, security systems, and door locks.

1.1 Features Figure 1-1 shows a photograph of the CapSense CY8CMBR2016 Evaluation kit.

Figure 1-1

Layout of the CapSense CY8CMBR2016 Evaluation kit

2

The key features of the board are listed below: •

4x4 Matrix Solution o Utilizes Cypress's industry leading CapSense technology with SmartSense Auto-tuning o Simultaneous key press enabled o Mechanical matrix interface enabled for backwards compatibility



SmartSense Auto-tuning Enabled o Auto-tuning for PCB manufacturing variance o Adaptive Threshold Auto-tuning for different overlays o SNR Optimization to obtain robust performance



Configurable Solution o Pin configurable buttons



Featured device o CY8CMBR2016-24LQXI CapSense Express



Expansion header o Host Communication Header o Sensor Module Header



Audio o Buzzer included for feedback



Switches and indicators o 16 LEDs o 1 Reset Push-button Switch



Connectors o USB Type mini-AB Port



System Ready o BOM included o Layout/Gerber files included

3

1.2 About the KIT •

The kit will come with the following contents: o Cypress CY8CMBR2016 EVK – Center Board o Cypress CY8CMBR2016 EVK – Sensor Module o Portable Battery-powered USB Charger (AA battery type) o USB A to Mini-B Cable o Acrylic Board (3mm and 1.5mm) o Quick Start Guide o System CD

Figure 1-2 shows the photograph of the Cypress CY8CMBR2016 EVK content.

Figure 1-2

CY8CMBR2016 EVK Package Contents

1.3 Getting Help Terasic Technologies provides design consulting services to customers in electronic system development to help accelerate their system from design to production. Here is information of how to get help if you encounter any problem: • •

Terasic Technologies TEL: +886-3-550-8800 Please call from 9am to 6pm, GMT+8 time zone. Email: [email protected]

4

Chapter 2

CY8CMBR2016 EVK Architecture This chapter describes the architecture of the CY8CMBR2016 EVK including block diagram and components.

2.1 Layout and Components The picture of the CY8CMBR2016 EVK is shown in Figure 2-1 and Figure 2-2. It depicts the layout of the board and indicates the locations of the connectors and key components.

Figure 2-1

The CY8CMBR2016 EVK PCB and Component Diagram (top view)

5

Figure 2-2 The CY8CMBR2016 EVK PCB and Component Diagram (bottom view) Note: For jumper setting and description, please refer to Section 2.4

2.2 Block Diagram Figure 2-3 shows the block diagram of the CapSense CY8CMBR2016 Evaluation kit.

Figure 2-3 Block Diagram of CY8CMBR2016 EVK

6

2.3 Kit Power The CY8CMBR2016 EVK comes with a preloaded factory configuration to demonstrate the features of the kit. The factory configurations allow users to see quickly if the kit is working properly. To power-up the board: 1.

Connect the Sensor Module onto the Sensor Module header (J20) of the Center board

2. Connect the USB A to Mini-B cable to a USB (Type A) host port and to the board, then setting power selection jumper to 3rd position and turn on the power switch (SW2). The power LED (D2) should immediately turn on. Alternatively, the board can be powered on by connecting the board using the portable battery-powered USB connector. Note: Users can also power-on the board by connecting a host board through the host communication header (J19). By setting the power selection jumper to different positions, the kit will be powered by 5V, 3.3V or VADJ of host board. 3. By setting the buzzer select jumper (J2) to short 2 and 3 pins to select buzzer of Sensor Module. Touch the CapSense button of Sensor Module as the corresponding LED will glow indicating which button you are touching. Also, a buzzer sound will activate whenever a button is pressed.

7

2.4 Default Switch and Jumper Settings

Figure 2-4 Jumper locations Table 2-1 describes the default jumper settings on the CY8CMBR2016 EVK and its description. Table 2-1 Default Jumper Setting and Description of Center Board Jumper

Default Setting

Description Select buzzer of Center board or buzzer of Sensor

Buzz Select

Module.

(J2) Enable/disable the on-board Buzzer. Buzz ON/OFF (J3)

8

Configure the Scan Rate between High, Medium, Low, and Continuous. This jumper configures the Scan Rate

rate at which the sensors are scanned – the higher

(J4,J5,J6)

the rate, faster the response and higher the power consumption. Configure the Sensitivity between High, Medium, and Low. This jumper tunes the sensitivity of all the

Sensitivity

sensors and helps set the smallest change in

(J7,J8)

capacitance desired to be sensed by the system.

MTS (J10)

ARST (J9,J11,J12)

Deep Sleep (J13)

O/P Select (J14,J15,J16)

Configure the Enable/Disable Multi-Touch Support (MTS). The MTS jumper enables/disables simultaneous key detections. This function can be used when at a given instance more than one key touch is required by the end application. Configure the Auto Reset (ARST) between 5s/20s/40s/disable, which indicates the maximum time a sensor can be active. The ARST sets the auto reset target for all the sensors, which helps reset stuck sensors. Enable/Disable Deep Sleep on board. This jumper is used to put the device in deep sleep. When the keys are not used this pin can be used to put the device to sleep to save power. Configure the Output Select between Keypad Scan Interface, Truth Table Interface, LED and Encoded General Purpose Output (GPO) output. This jumper helps select the output interface the user needs. Based on the system requirements, the user can select the required output mode.

Enable/disable the debug data out through the RS232 port. Debug (J17)

9

Select the power source from VCC5_HOST or VADJ_HOST or VCC3P3_HOST or VCC5_USB.

Power Select (J21,J22,J23)

Table 2-2 Default Jumper Setting and Description of Sensor Module Jumper

Default Setting

Description Enable/disable the buzzer of Sensor Module.

Buzz ON/OFF (J2) Enable/disable the 16 LEDs of Sensor Module. LED ON/OFF (J3)

10

Chapter 3

Using the CY8CMBR2016 EVK This section describes the detailed information of the components and connectors of the CapSense CY8CMBR2016 Evaluation kit.

3.1 User Input/ Output The user input/ output provides a versatile and reliable drop-in replacement for mechanical matrix solutions using an output truth table described on page 11. For demonstration purposes, these pins are connected to LEDs.



LEDs

(Note: The LED feature is only for demo purpose in the board and is not available in the CY8CMBR2016 device.) The CapSense Sensor Module Matrix Solution board consists of 16 red LEDs above the 4 x 4 Matrix CapSense touch buttons for user feedback. Multiplexing is used to reduce the number of pins needed to drive an LED. The 16 red LEDs are split into 4 rows and 4 columns which allow you to drive it using 4 row outputs and 4 column outputs. Figure 3-1 shows its arrangement.

11

Figure 3-1



LED Arrangement

Mechanical Matrix Truth Table Output

The table below lists the truth table for the 4x4 (16) button solutions. The dots indicate the connected terminals corresponding to the row and column LEDs illustrated above. The associated button location (1-16) is shown in Figure 3-2. The following GPO pins (GPO_0-GPO_7) share pin connection with LED column and row pins (LED-COL1-LED--COL4, LED-ROW1-LED-ROW4).

12

Table 3-1 Names and Description of the 5 pin Header

Figure 3-2

Button Location

13



Push-button

The CY8CMBR2016 EVK includes a reset push-button (SW1) to allow a system reset signal for designs loaded into the PSoC device. The push-button provides a high-logic level when it is pressed.



Audio Beep Buzzer

The CY8CMBR2016 EVK contains two audio beep buzzers: one is on the Center Board, the other is on the Sensor Module. There is an audible beep feedback for any button press.



4x4 Capacitive Button Matrix

4x4 (16) CapSense buttons are connected and laid out in a matrix-type fashion on the Sensor Module. The 16 CapSense buttons include 12 standard buttons marked with 0-9, * and # symbols. The remainder 4 buttons are unlabeled. Figure 3-3 illustrates the CapSense buttons matrix-type layout.

Figure 3-3 CapSense Buttons Layout

14

3.2 Host Communication Header The board provides 8 GPO interface pins for host communication plus one INT for generating an interrupt for the host controller. The GPO header shares a pin connection with the LED interface, and as a result only one can be used. Besides, there are BUZZ_CENTER, SLEEP and DEBUG signals on the header. Through the host communication header, the kit can be controlled by a host board. Figure 3-4 shows the block diagram for the Encoded Keyscan GPO interface.

Figure 3-4 Encoded Keyscan GPO Interface Block Diagram

15

3.3 Sensor Module Header Through the sensor module header, users can also design a different sensor module to connect it with the center board.

3.4 Power Supply The Cypress CapSense CY8CMBR2016 Evaluation kit’s power is provided through 5V power of the USB Type mini-AB connector or the host communication header including 5V, 3.3V and VADJ from a host board. By setting the Power Selection jumper to different positions, users can apply a specified power source to the kit.



Power Distribution System

Figure 3-5 shows the power distribution system on the Cypress CY8CMBR2016 EVK.

Figure 3-5 Power Distribution System

16

Chapter 4

Project Examples This chapter introduces examples of the CY8CMBR2016 EVK by using the capacitive touch buttons with Cypress’s CapSense/SmartSense Auto-tuning technology.

4.1 LEDs The first example project demonstrates the ability of the PSoC device to integrate CapSense, and LED driving capabilities. Note: the CY8CMBR2016 device does not support driving LEDs. The project example is for demonstration purposes only. The CapSense buttons are configured so that when a button is touched, its corresponding LED lights up. In addition, a buzzer sound will activate whenever a button is pressed.

4.2 Examples of Jumper Configurations Table 4-1 describes example A of jumper configuration on the CY8CMBR2016 EVK and its description Table 4-1 Example A of Jumper Configuration Jumper

Default Setting

Description Configure the MTS (Multi-Touch Support) to Enable

MTS (J10)

Configure the Scan Rate to Continuous Scan Rate (J4,J5,J6)

Configure the Auto Reset (ARST) to Disable ARST (J9,J11,J12)

17

Configure the Output Select to Factory LED O/P Select (J14,J15,J16)

Configure the Sensitivity to High (0.2pF) Sensitivity (J7,J8)

Disable the debug data out through the RS232 port

Debug (J17)

Table 4-2 describes example B of jumper configuration on the CY8CMBR2016 EVK and its description Table 4-2 Example B of Jumper Configuration Jumper

Default Setting

Description Configure the MTS (Multi-Touch Support) to Disable

MTS (J10)

Configure the Scan Rate to High Scan Rate (J4,J5,J6)

Configure the Auto Reset (ARST) to 5 seconds ARST (J9,J11,J12)

18

Configure the Output Select to Factory LED O/P Select (J14,J15,J16)

Configure the Sensitivity to Low (0.4pF) Sensitivity (J7,J8)

Enable the debug data out through the RS232 port, to use the UART port to see the debug data in Multi Debug (J17)

Chart Tool. The kit CD will include this tool.

4.3 Fir mware Functionality Below describes some of the features implemented in the LED example.



Multi-touch Support

Using the MTS jumper, you can enable/disable the MTS feature.



Auto Reset

The Sensor Auto Reset time can be controlled by the ARST jumper. When Auto Reset feature is enabled, if a key is pressed/active for more than 5, 20 or 40 seconds, the device resets the key.



Scan Rate

The firmware reads resistor values and reset sets the scan rate of the CapSense device. Scan Rate configuration: 1. Pin grounded – low 2. 1.5K(5%) ohms resistor to ground – medium 3. 5K (5%) resistor to ground – high 4. Pin connected to VDD or left floating – continuous

19



Deep Sleep Control

The Deep Sleep jumper setting sets the device to active or deep sleep modes. Deep Sleep configuration: 1. Pin grounded – Sleep state disabled 2. VCC_SYS – Sleep state enabled

Demonstration Setup Power on the board using an USB A to Mini-B cable (included) Check the functionality and demonstration features by adjusting the jumper settings.

20

Chapter 5

Appendix 5.1 Version V1.0

5.2

Revision Histor y Change Log Initial Version (Preliminary)

Copyright Statement

Copyright © 2011 Terasic Technologies. All rights reserved.

21

Suggest Documents