Cypress CY4636 Bedienungsanleitung

CY4636
WirelessUSB™ LP Keyboard Mouse
Reference Design Kit User Guide
Doc. # 001-70355 Rev. *A
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com

2 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2011-2012. The information contained herein is subject to change without notice.
Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a
Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted
nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an
express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components
in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user.
The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such
use and in doing so indemnifies Cypress against all charges.
Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by
and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty
provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create
derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom
software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as
specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this
Source Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials
described herein. Cypress does not assume any liability arising out of the application or use of any product or circuit
described herein. Cypress does not authorize its products for use as critical components in life-support systems where a
malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product
in a life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies
Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.
NX2LP is a trademark and EZ-USB is a registered trademark of Cypress Semiconductor Corp. All other trademarks or
registered trademarks referenced herein are property of the respective corporations.
Flash Code Protection
Cypress products meet the specifications contained in their particular Cypress PSoC Data Sheets. Cypress believes that its
family of PSoC products is one of the most secure families of its kind on the market today, regardless of how they are used.
There may be methods, unknown to Cypress, that can breach the code protection features. Any of these methods, to our
knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can
guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as ‘unbreakable’.
Cypress is willing to work with the customer who is concerned about the integrity of their code. Code protection is constantly
evolving. We at Cypress are committed to continuously improving the code protection features of our products.

CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A 3
Contents
1. Introduction 5
1.1 Kit Contents .................................................................................................................5
1.2 PSoC Designer™ ........................................................................................................5
1.3 PSoC Programmer ......................................................................................................5
1.4 Additional Learning Resources....................................................................................6
1.4.1 References.......................................................................................................6
1.5 Document History ........................................................................................................7
1.6 Documentation Conventions .......................................................................................7
2. Getting Started 9
2.1 Introduction ..................................................................................................................9
2.2 Kit Installation ..............................................................................................................9
2.3 PSoC Designer ..........................................................................................................13
2.4 PSoC Programmer ....................................................................................................14
2.5 Installation of Battery level and Link Quality Application ...........................................15
2.6 Install Hardware.........................................................................................................15
3. Kit Operation 17
3.1 Introduction ................................................................................................................17
3.2 Bridge ........................................................................................................................17
3.3 Mouse ........................................................................................................................19
3.4 Keyboard ...................................................................................................................21
4. Hardware 25
4.1 Bridge ........................................................................................................................25
4.1.1 Functional Description....................................................................................26
4.1.2 Power Supply System ....................................................................................32
4.2 Mouse ........................................................................................................................33
4.2.1 Functional Description....................................................................................34
4.2.2 Power Supply System ....................................................................................39
4.3 Keyboard ...................................................................................................................40
4.3.1 Functional Description....................................................................................41
4.3.2 Power Supply System ....................................................................................46
5. Code Examples 47
5.1 Project1- LP_RDK_Bridge .........................................................................................47
5.1.1 Project Description .........................................................................................47
5.1.2 Device Configurations ....................................................................................47
5.1.3 Firmware Architecture ....................................................................................50
5.1.4 Verify Output ..................................................................................................63
5.2 Project2- LP_RDK_Mouse.........................................................................................64
5.2.1 Project Description .........................................................................................64

4 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
Contents
5.2.2 Device Configurations....................................................................................64
5.2.3 Firmware Architecture....................................................................................67
5.2.4 Verify Output .................................................................................................. 76
5.3 Project3- LP_RDK_Keyboard.................................................................................... 77
5.3.1 Project Description......................................................................................... 77
5.3.2 Device Configurations....................................................................................78
5.3.3 Firmware Architecture....................................................................................80
5.3.4 Verify Output .................................................................................................. 92
Appendix 93
A.1 Schematic ................................................................................................................. 93
A.2 Board Layout ............................................................................................................ 96
A.3 WirelessUSB 2-Way HID Protocol Overview ............................................................ 99
A.3.1 Radio Channel Management ........................................................................ 99
A.3.2 Pseudo-Noise Codes .................................................................................... 99
A.3.3 Chip Error Correction ....................................................................................99
A.3.4 Automatic Acknowledgment ........................................................................100
A.3.5. Network ID ..................................................................................................100
A.3.6 Manufacturing ID ........................................................................................100
A.3.7 Channel Selection Algorithm .......................................................................100
A.3.8 Protocol Modes ...........................................................................................101
A.3.9 Packet Structures .......................................................................................102
A.3.10 Bind and Reconnect Timing ........................................................................105
A.3.11 Back Channel Support for NumLk/ScrLk/Caps Lock ..................................107
A.3.12 Signature Byte ............................................................................................108
A.3.13 Encryption ...................................................................................................108
A.4 Manufacturing Test Support, MTK ..........................................................................110
A.4.1 Introduction .................................................................................................110
A.4.2 MTK Block Diagram ....................................................................................110
A.4.3 MTK Serial Protocol ....................................................................................110
A.4.4 MTK RF Protocol ........................................................................................112
A.4.5 MTK DUT source Code Porting ..................................................................112
A.4.6 Accessing MTK in the DUT .........................................................................112
A.5 Regulatory Testing Results ....................................................................................113
A.5.1 Introduction .................................................................................................113
A.6 Power Considerations ............................................................................................113
A.6.1 RDK Keyboard ............................................................................................113
A.6.2 RDK Mouse ................................................................................................114
A.7 Software Users Guide ............................................................................................116
A.7.1 Introduction .................................................................................................116
A.7.2 Software Code Modules ..............................................................................116
A.8 Bill of Materials .......................................................................................................123

CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A 5
1. Introduction
Thank you for purchasing the CY4636 WirelessUSB™ LP keyboard-mouse reference design kit
(RDK). The CY4636 WirelessUSB LP RDK is described in the Help guides and code examples are
provided to enable you to immediately use the kit.
The CY4636 kit provides an exemplary implementation of a 2:1, bi-directional wireless desktop
keyboard and mouse to single wireless receiver. The RDK helps jump start your keyboard and
mouse development using the WirelessUSB LP (CYRF6936) radio system-on-chip.
WirelessUSB LP is the next generation WirelessUSB device, with high data throughput and low
power designed to operate in 2.4 GHz ISM band. WirelessUSB LP has many powerful features that
allow users to create unique radio applications.
Schematics, source code, firmware, and RF gerber files are provided as an accelerated starting
point for PC human interface devices (HID) designers wishing to cut the cord on their HID
applications. Getting Started chapter on page 9 describes the installation and configuration of the
CY4636 Reference Design Kit. Kit Operation chapter on page 17 describes the kit operation.
Hardware chapter on page 25 describes the hardware operation. Code Examples chapter on
page 47 describes the code examples provided along with the kit. The Appendix on page 93 section
provides the schematics, bill of materials (BOM), and protocols associated with the CY4636 RDK.
1.1 Kit Contents
This kit provides:
■CYRF6936 WirelessUSB LP transceiver
■ADNS-3040 optical sensor mouse
■WirelessUSB LP 101 multimedia keyboard
■Small form factor bridge
■Batteries - 4 numbers
■CY4636 Reference Design Kit CD/DVD-ROM
Visit http://www.cypress.com/shop for more information. Inspect the contents of the kit. If any parts
are missing, contact your nearest Cypress sales office for further assistance.
1.2 PSoC Designer™
PSoC Designer is the PSoC integrated design environment (IDE) that enables you to customize
your PSoC application. The latest PSoC Designer includes many new features, bug fixes, and
support for new PSoC devices. After installation, you can get more information about PSoC
Designer in the PSoC Designer IDE Guide at:
<Installed_directory>\Cypress\PSoC Designer\<Version>\Documentation

6 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
Introduction
1.3 PSoC Programmer
PSoC Programmer offers the user a simple GUI that connects to programming hardware to program
and configure PSoC devices.
<Install_directory>:\Cypress\Programmer\<ver>\Documents
1.4 Additional Learning Resources
Visit www.cypress.com for additional learning resources in the form of datasheets, technical
reference manual, and application notes.
1.4.1 References
■CYRF6936 – WirelessUSB™ LP 2.4 GHz Radio SoC:
http://www.cypress.com/?rID=14284
■CY7C601xx, CY7C602xx – enCoRe™ II Low-Voltage Microcontroller:
http://www.cypress.com/?rID=13556
■CY7C63310, CY7C638xx – enCoRe™ II Low Speed USB Peripheral Controller:
http://www.cypress.com/?rID=14212
■CY7C603xx – enCoRe™ III Low Voltage - http://www.cypress.com/?rID=13558
■ADNS-3040 - Ultra Low-Power Optical Mouse Sensor:
http://www.avagotech.com/docs/AV02-0150EN
■CY4636_RDK_Kit Schematic.pdf – http://www.cypress.com/?docID=23090
■MiniProg – http://www.cypress.com/?rID=37459
■PSoC Designer training - This is a web-based course that provides an overview of PSoC and its
design tools. It is the first of a multi-part series of modules designed to provide you with the nec-
essary training to enable you to quickly take advantage of PSoC technology, develop your
embedded applications, and get to market fast.
http://www.cypress.com/?rID=40543

CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A 7
Introduction
1.5 Document History
1.6 Documentation Conventions
Revision PDF Creation
Date Origin of
Change Description of Change
** 07/14/2011 CSAI Initial version of kit guide
*A 04/03/2012 ELIN Updated kit documents for CY4636 with the OOB review
comments.
Table 1-1. 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.
[Bracketed, Bold]Displays keyboard commands in procedures:
[Enter] or [Ctrl] [C]
File > Open Represents menu paths:
File > Open > New Project
Bold Displays commands, menu paths, and icon names in procedures:
Click the File icon and then click Open.
Times New Roman Displays an equation:
2 + 2 = 4
Text in gray boxes Describes cautions or unique functionality of the product.

8 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
Introduction

CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A 9
2. Getting Started
2.1 Introduction
This chapter describes the installation and configuration of the CY4636 WirelessUSB LP RDK.
2.2 Kit Installation
To install the kit software, follow these steps:
1. Insert the kit CD/DVD in the CD/DVD drive of your PC. The CD/DVD is designed to auto-run and
the kit installer startup screen appears.
To download the latest kit installer, go to http://www.cypress.com/go/CY4636. Download the kit
installer ISO file and create an installer CD/DVD or extract the ISO using WinRar and install the
executables.
2. Click Install CY4636 WirelessUSB LP RDK to start the installation.
Figure 2-1. Kit Installer Startup Screen
Note If auto-run does not execute, double click the cyautorun.exe file in the root directory of the CD.

10 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
Getting Started
Figure 2-2. Root Directory of the CD/DVD
3. The InstallShield Wizard screen appears. The default location for setup is shown on the
InstallShield Wizard screen. You can change the location for setup using Change.
4. Click Next to launch the Kit installer
Figure 2-3. InstallShield Wizard
Inhaltsverzeichnis
Andere Cypress Tastatur Handbücher


















