CY8CKIT-031 PSoC® CapSense® Expansion Board Kit Guide, Doc. # 001-66474 Rev. *H
16
4.
Code Examples
Four code examples are provided with the kit.
■
■
■
(works only with MiniProg3)
■
(works only with MiniProg3)
The code examples work with the following development kits:
■
CY8CKIT-001 PSoC Development Kit (using PSoC 3 Processor module and PSoC 5LP
Processor module)
■
CY8CKIT-030 PSoC 3 Development Kit
■
CY8CKIT-050LP PSoC 5 Development Kit
The PSoC Development Kit (CY8CKIT-001) examples are named with the suffix
_KIT-001
;
the PSoC 3 Development Kit examples are named with the suffix
_KIT-030.
The code examples with
suffix _KIT-001 can be used to work with both CY8CKIT-009 (PSoC 3 processor module) and
CY8CKIT-010 (PSoC 5LP processor module). Similarly, code examples with suffix _KIT-030 can be
used to work with both CY8CKIT-030 and CY8CKIT-050 as well. See
with CY8CKIT-050 and CY8CKIT-010
for more details. Use the appropriate examples according to
development kit being used.
All code examples are available in the directory
<Install_Directory>:\PSoC CapSense EBK
\<version>\Firmware
.
4.1
Migrating the projects to use with CY8CKIT-050 and CY8CKIT-010
By default, the project works with PSoC 3. To use the project for PSoC 5LP, change the device to
CY8C5868AXI-LP035 (Project > Device selector). If CY8CKIT-001 project is being updated for use
with PSoC 5 processor module then apart from the changing the device, change the pin mapping of
CMOD pin from P2_7 to pin 15_5.
4.2
Code Example 1: BMM_USB
Note
The code example requires an USB cable to be connected from the PC to the USB connector
on the board.
4.2.1
Project Description
This example shows the CapSense Matrix Button Module (BMM) interfacing with the development
kit (CY8CKIT-001, CY8CKIT-030, or CY8CKIT-050LP) through the PSoC CapSense Expansion
Board. The example demonstrates the CapSense button matrix operation. When any button is
touched, the corresponding row and column LEDs turn on. This example also shows the calculator
application in the PC with the CapSense BMM as a keypad.