CY3668 Wirelessusb(TM)-NL Development Kit Guide
Total Page:16
File Type:pdf, Size:1020Kb
CY3668 WirelessUSB™-NL Development Kit Guide Doc. # 001-76173 Rev. *D Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): 408.943.2600 http://www.cypress.com Copyrights Copyrights © Cypress Semiconductor Corporation, 2012-2013. 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. WirelessUSB™, enCoRe™, and PSoC Designer™ are trademarks and PSoC® is a registered trademark of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are property of the respective corporations. 2 WirelessUSB-NL Development Kit Guide, Doc. # 001-76173 Rev. *D Contents 1. Introduction 5 1.1 Kit Contents .................................................................................................................5 1.2 PSoC Designer™ 5.3 ..................................................................................................5 1.3 Additional Learning Resources....................................................................................5 1.4 Documentation Conventions........................................................................................6 1.5 Document Revision History ........................................................................................6 2. Getting Started 7 2.1 Install Software ............................................................................................................7 3. Kit Operation 9 3.1 Install Hardware...........................................................................................................9 3.1.1 Default Jumper Settings...................................................................................9 3.2 Programming and Emulation Procedures..................................................................10 3.2.1 Programming Steps........................................................................................10 3.2.2 Emulation Steps .............................................................................................12 4. Hardware 13 4.1 System Block Diagram ..............................................................................................13 4.2 Functional Description ...............................................................................................14 4.2.1 Voltage Regulator...........................................................................................15 4.2.2 MCU Power Selection ....................................................................................16 4.2.3 WirelessUSB-NL Radio Header .....................................................................17 4.2.4 USB Mini-B Connecter ...................................................................................17 4.2.5 ICE Header ....................................................................................................18 4.2.6 enCoRe II/enCoRe V Programming Selector.................................................19 4.2.7 MCU Header ..................................................................................................20 4.2.8 MCU Reset Button .........................................................................................21 4.2.9 Logic Analyzer Header...................................................................................22 4.2.10 ISSP Header ..................................................................................................22 4.2.11 I2C Header.....................................................................................................23 4.2.12 Potentiometer.................................................................................................23 4.2.13 LEDs ..............................................................................................................23 4.2.14 Push-button Switches ....................................................................................23 4.2.15 LCD Brightness Adjust ...................................................................................25 4.2.16 16×2 LCD Module ..........................................................................................25 5. Enhanced AgileHID™ Protocol 3.0 27 5.1 Overview....................................................................................................................27 5.2 Protocol Functions .....................................................................................................27 5.2.1 Protocol API Use............................................................................................28 5.2.1.1 Master (Bridge) ................................................................................28 WirelessUSB-NL Development Kit Guide, Doc. # 001-76173 Rev. *D 3 Contents 5.2.1.2 Slave (Mouse/Keyboard) .................................................................28 5.2.2 Requirements.................................................................................................29 5.2.2.1 Header Files ....................................................................................29 5.2.2.2 Software Interface ...........................................................................29 5.2.3 Type Declarations and Definitions .................................................................29 5.2.3.1 BACK_CHANNEL_SUPPORT ........................................................29 5.2.4 Protocol High Level Functions .......................................................................29 5.2.4.1 MasterProtocolInit............................................................................29 5.2.4.2 MasterProtocolDataMode................................................................30 5.2.4.3 MasterProtocolButtonBindMode......................................................30 5.2.4.4 CheckUsbIdle ..................................................................................31 5.2.4.5 CheckUsbSuspend..........................................................................31 5.2.4.6 SlaveProtocolInit..............................................................................32 5.2.4.7 SlaveProtocolSendPacket ...............................................................32 5.2.4.8 SlaveProtocolGetTxPkt ...................................................................32 5.2.4.9 SlaveProtocolButtonBind.................................................................32 5.2.4.10 RadioSendPacket............................................................................33 5.2.4.11 RadioReceivePacket .......................................................................33 5.3 Application Packet Format.........................................................................................33 5.3.1 Mouse Application Packet Header Format ....................................................33 5.3.2 Keyboard Application Packet Header Format................................................33 5.3.2.1 Standard 101 Keys Report ..............................................................34 5.3.2.2 Multimedia Keys ..............................................................................34