Cypress CY4636 User Manual

Wirelessusb lp keyboard mouse reference design kit
Table of Contents

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CY4636 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress CY4636

  • Page 1 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...
  • Page 2 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.
  • Page 3: Table Of Contents

    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 Project2- LP_RDK_Mouse..................64 5.2.1 Project Description ..................64 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 4 Power Considerations ....................113 A.6.1 RDK Keyboard ....................113 A.6.2 RDK Mouse ....................114 Software Users Guide ....................116 A.7.1 Introduction ....................116 A.7.2 Software Code Modules ................116 Bill of Materials .......................123 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 5: Introduction

    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.
  • Page 6: Psoc Programmer

    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...
  • Page 7: Document History

    Click the File icon and then click Open. Displays an equation: Times New Roman 2 + 2 = 4 Text in gray boxes Describes cautions or unique functionality of the product. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 8 Introduction CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 9: Getting Started

    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. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 10 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 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 11 5. On the Product Installation Overview screen, select the installation type that best suits your requirement. The drop-down menu has three options - Typical, Complete and Custom. 6. Click Next to start the installation. Figure 2-4. Installation Type Options CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 12 9. Wait until all the packages are downloaded and installed successfully. Figure 2-5. Installation Page 10.Click Finish to complete the installation. Figure 2-6. Installation Completion Page CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 13: Psoc Designer

    File > Open Project/Workspace on PSoC Designer 5.2 menu to work with the existing project. Figure 2-7. PSoC Designer Interconnect View 3. To experiment with the code examples go to Code Examples chapter on page CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 14: Psoc Programmer

    8. Once programming is successful, Programming Succeeded appears in the Actions Pane. 9. Close PSoC Programmer. Note: For more details on PSoC Programmer, go to the Programmer user guide at: <Installed_directory>\Cypress\Programmer\<ver>\Documents. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 15: Installation Of Battery Level And Link Quality Application

    2. The application unloads and does not auto run at startup. 3. Delete the WirelessUSB.exe application. Install Hardware This kit does not require any hardware installation. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 16 Getting Started CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 17: Kit Operation

    ■ (internet, mail, and so on) and power keys. Bridge The LP RDK Bridge is programmed through the USB connector using a Cypress USB adapter board PDC-9241. Figure 3-1. Cypress USB Programming Adapter 1. Connect the LP RDK bridge to the USB adapter board; connect the MiniProg to the ISSP Header...
  • Page 18 10.The green LED turns ON and remains ON during Ping Mode. In normal operation, Ping Mode is a very short period. The user may not notice this period. 11. The red and green LED blink alternately in the Manufacturing Test mode. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 19: Mouse

    PSoC MiniProg and a USB cable (A to Mini B). Programming can be done using PSoC Programmer. After the programming is complete, place the jumper on J1. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 20 6. After the mouse is bound with the bridge dongle, it works smoothly with the system. The green LED turns on when the dongle receives data from mouse. It remains on for 250 ms after the last received data packet. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 21: Keyboard

    Kit Operation Keyboard The CY4636 RDK uses an enCoRe™ II LV controller for the RDK keyboard. This section presents the RDK keyboard assembly. Figure 3-6. Keyboard Plastic Figure 3-7. Exploded Keyboard Keyboard PCB Figure 3-7 shows the keyboard with the top removed. The radio/enCoRe II LV board (PDC-9265) is shown in the upper right hand corner.
  • Page 22 The battery compartment cover is also shown. The CY4636 keyboard can be programmed using a PSoC MiniProg or ICE Cube. Remove the jumper from J3. Connect your computer to the keyboard's ISSP Connector (J2) using the PSoC MiniProg and a USB cable (A to Mini B).
  • Page 23 The green LED turns on and remains on if a key is pressed and held (because the keyboard sends Keep Alive packets). CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 24 Kit Operation CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 25: Hardware

    Reference Design Kit. This bridge may be plugged into the USB port on a PC to provide Wireless USB bridge functionality. The CY4636 RDK uses an enCoRe II controller for the LP RDK bridge. The architecture is designed to be modular for extendability and maintainability. It can also be easily ported from one hardware platform to another assuming the use of an enCoRe II microprocessor with USB hardware support.
  • Page 26: Functional Description

    Toys ■ VOIP and wireless headsets ■ White goods ■ Consumer electronics ■ Home automation ■ Automatic meter readers ■ Personal health and entertainment ■ CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 27 Differential RF signal to and from antenna Connect to GND Connect to GND = 2.4 V to 3.6 V. Typically connected to VREG Connect to GND CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 28 PMU inductor/diode connection, when used. If not used, connect to GND VBAT = 1.8 V to 3.6 V. Main supply. BAT(0-2) Connect to GND PMU boosted output voltage feedback CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 29 ■ General purpose - Barcode scanners, POS terminal, consumer electronics, toys, remote con- ■ trols, and security dongles Figure 4-4. Chip CY7C63803 Schematic View   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 30 GPIO Port 1 bit 6. Configured individually. Alternate function is SMISO signal of the SPI bus TTL volt- P1.6/SMISO age thresholds. Although Vreg is not available with the CY7C63310, 3.3 V I/O is still available. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 31 3. The green LED turns ON and remains on during Ping Mode (in normal operation, Ping Mode is a very short period and you may not notice this period). CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 32: Power Supply System

    Figure 4-8. Power Supply System Structure for the Bridge   VBUS (5 V) Figure 4-9. Schematic View of the Power Supply System Structure for the Bridge   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 33: Mouse

    Figure 4-10. Mouse Block Diagram   Antenna Buttons C hip CYRF6936 Ra dio Chip Scroll Whe el C Y7C6032 3 Optical Sens or ISSP header CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 34: Functional Description

    12 MHz oscillator, and an antenna. The following figure shows the different functional blocks on the CY4636 mouse board. Figure 4-11. Functional Blocks of the Mouse CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 35 1.3 V to a number of subsystems, a switch mode pump (SMP) that generates normal operating voltages off a single battery cell, and various system resets supported by the M8C. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 36 P2[5] P2[3] Direct switched capacitor block input P2[1] Direct switched capacitor block input. Ground connection. P1[7] I2C Serial Clock (SCL). P1[5] I2C Serial Data (SDA). CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 37 The ADNS-3040 is capable of high-speed motion detection of up to 20 ips and 8G. In addition, it has an on-chip oscillator and LED driver to minimize external components. Figure 4-14. Schematic View of the Optical Sensor CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 38 In-System Serial Programmer (ISSP) is used to program the mouse. Programming can be done using the Mini- Prog programmer device. Figure 4-15. Schematic View of the ISSP Header   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 39: Power Supply System

    Figure 4-17. Schematic view of the Buttons and Wheel   4.2.2 Power Supply System The CY4636 mouse board has power sources from the battery supply terminal and ISSP on the board. Figure 4-18. Power Supply System Structure for the Mouse board  ...
  • Page 40: Keyboard

      Keyboard The CY4636 WirelessUSB™ LP Keyboard-Mouse Reference Design Kit uses a enCoRe II LV controller for the RDK keyboard. The architecture is designed to be modular for extendibility and maintainability. It is also designed so that it can easily be ported from one hardware platform to another assuming the use of an enCoRe II LV microprocessor.
  • Page 41: Functional Description

    Chip CYRF6936 Figure 4-22. Schematic View of the CYRF6936 Chip   Refer to the pin details of the CYRF6936 chip in Table 4-1 on page CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 42 General-purpose wireless applications - Remote controls, barcode scanners, POS terminal, con- ■ sumer electronics, and toys Figure 4-23. Schematic View of the CY7C60123 Chip   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 43 GPIO port 1 bit 5. Configured individually Alternate function is SMOSI signal of the SPI P1.5/SMOSI bus. GPIO port 1 bit 6. Configured individually Alternate function is SMISO signal of the SPI P1.6/SMISO bus. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 44 GPIO port 4. Configured as a group (nibble) P4.3 GPIO port 4. Configured as a group (nibble) Ground No connect No connect No connect No connect CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 45 ISSP header (J2) is used to program the keyboard. Programming can be done using the MiniProg programmer device. Figure 4-25. Schematic View of the ISSP Header   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 46: Power Supply System

    Figure 4-26. Schematic View of the Bind Button 4.3.2 Power Supply System The CY4636 keyboard has power sources from the battery supply terminal and ISSP header on the board. Figure 4-27. Power Supply System Structure for the Keyboard  ...
  • Page 47: Code Examples

    Module is used for timing. The following section includes a screenshot of the device editor showing the User Module mapping and a description of resources and User Modules. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 48 This parameter is set to 1. USB Clock ■ This parameter is set to Internal (24 MHz). USB Clock /2 ■ This parameter is set to Enable. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 49 The block starting at address 0x1FC0 has been changed from W: Full (Write protected) to U: Unprotected. This location of Flash has been dedicated to saving non-volatile ses- sion key for the encrypt code module. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 50: Firmware Architecture

    The additional user code decrements application countdown timers and checks for USB activity to detect a USB suspend condition. Flash. The module includes routines to write to the enCoRe II flash to Encryption key. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 51 Check the Bind Button ■ The bridge checks the Bind button frequently. If this button is pressed, the bridge goes into the bind state. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 52 The manufacturing test code in this bridge is compatible with the CY3631 Manufacturing Test Kit offered by Cypress Semiconductor. See the mfgtest module for a description of how this test mode is executed. See the CY3631 Manufacturing Test Kit documentation for a description of the test operation.
  • Page 53 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 54 Therefore, it takes 226 µs for the bridge to process a keyboard report. 5.1.3.10 USB Interface USB Descriptors. The USB Descriptors can be viewed/edited with the USB Setup Wizard. Device/Config Descriptors ■ CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 55 LP RDK bridge to work on different BIOS versions that do not correctly support the USB Report Protocol. Only standard 101 (104) keys are sent using this format over endpoint 1. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 56 Mouse data uses Report ID 1. The mouse report include delta x, delta y, and scroll wheel data. Figure 5-5. Mouse HID Report Descriptor (Report ID 1 - Endpoint 2) CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 57 Figure 5-7. Keyboard's Power Keys HID Report Descriptor (Report ID 3 - Endpoint 2) Report ID 4 is used to send the mouse battery level and link quality report. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 58 Report ID 5 is used to send the keyboard battery level and link quality report. Figure 5-9. Keyboard's Battery/Link Quality Report Descriptor (Report ID 5-Endpoint 2) CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 59 The RadioParams HID report is a vendor-defined HID report for communicating several radio parameters of the WirelessUSB LP HID devices. The HID Report Page is defined as: Cypress WirelessUSB HID RadioParams Report Page (0xFF01 - Vendor Defined) CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 60 When the bridge receives a control endpoint request from the host with the parameters listed in the following table, it returns an 8-byte RadioParams report over the control endpoint. Control endpoint request for RadioParams report are listed here. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 61 PC via the endpoint 1 while the Multi Media key reports are sent via the endpoint 2 with Report ID 2. Figure 5-12. Example keyboard CATC Trace (Standard and MM Keys)   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 62 The second part of the trace shows the Z- wheel being moved down and up. Figure 5-13. Example Mouse CATC Trace   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 63: Verify Output

    4. Press any key on the keyboard or make mouse movements, the green LED turns ON when the dongle receives data from mouse or keyboard. 5. The green LED turns ON and remains ON if a key is pressed and held. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 64: Project2- Lp_Rdk_Mouse

    8-bit timer. The third module is a 10-bit ADC used to measure the bat- tery voltage. The ADC is the module that requires two analog blocks in addition to one digital block. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 65 Disable must be set to Yes. The trip voltage is typically set to the lowest value of 2.45 V. LVD Throt- tleBack must be disabled. The watchdog timer is typically enabled. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 66 Note: When building the mouse firmware, make certain to check that the text image size does not occupy this block. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 67: Firmware Architecture

    Due to inefficiency in the handling of compiler defined registers at interrupt level, code was added to this module to improve the efficiency of interrupt handling in C modules to maintain modularity. Refer to the isr module for more details. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 68 This turns off the pull-up for the button thereby essentially disabling the button. The port module pro- vides an interface to treat ports, using the pull up feature, in a special way by caching the drive data for the port. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 69 See the optical/mouse modules. This method prevents the compiler from pushing all of its vir- tual registers onto the stack when a function is called at interrupt context. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 70 The battery level is measured when exiting the idle state. If there is a change in the battery level, then it will be reported in the active state. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 71 Control Panel for this test to execute properly. If the letters are drawn erratically with uneven sides or excessive amounts of space in between them, then check this setting or its equiva- lent (based upon your PC operating system). CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 72 When z-wheel motion is detected, the mouse module is notified for collection and reporting of the data. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 73 The manufacturing test code in this mouse is compatible with the CY3631 Manufacturing Test Kit offered by Cypress Semiconductor. See the mfgtest module for a description of how this test mode is executed. See the CY3631 Manufacturing Test Kit documentation for a description of the test operation.
  • Page 74 Packet Format 1. When there is only X, Y delta data, the transmitted packet is two bytes. Table 5-8. Packet Format 1 Byte 1 Byte 2 X Delta (8 bits) Y Delta (8 bits) CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 75 308 CPU clock cycles for this portion. Therefore, the Latency2 equals to 25.667 µs for the 12 MHz CPU. Consequently, the total latency for a motion interrupt is: Latency1 + Latency2 = 27.750 µs CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 76: Verify Output

    The red LED stops blinking on binding the mouse with the bridge. 3. Press any switch ON the mouse the green LED turns ON when the dongle receives data from the mouse. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 77: Project3- Lp_Rdk_Keyboard

    RAM Usage (Bytes) KEYBOARD_MULTIMEDIA_SUPPORT KEYBOARD_TEST_MODES KEYBOARD_BATTERY_VOLTAGE_SUPPORT KEYBOARD_FAST_SCAN ENCRYPT_DATA* MOUSE_EMULATION_MODE MFG_TEST_CODE MFG_TX_MODES *The ENCRYPT_DATA option requires 64 bytes extra ROM space to store the non-volatile session key. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 78: Device Configurations

    The second module is a programmable interval timer. The following is a screen shot of the Device Editor showing the User Module mapping. Further description of resources and User Modules follow the diagram. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 79 Capture Clock /N. This parameter is set to 6. Capture Edge. This parameter is set to Latest. Bit Capture Prescaler ■ This parameter is set to 1. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 80: Firmware Architecture

    5.3.3 Firmware Architecture Figure 5-18. Firmware Architecture Model   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 81 See the documentation in the mod- ule for requirements on configuring the enCoRe II LV block. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 82 Battery Module. The battery monitor circuit is implemented using the Low Voltage Interrupt (LVI) on the LP radio. Following is an explanation of the process to measure the battery voltage. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 83 It is implemented this way to improve button-reporting latency. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 84: Keyboard_Multimedia_Support

    KEYBOARD_FAST_SCAN. This configuration definition is used to selectively compile in the Cypress Semiconductor fast scan algorithm. Fast Scan is used to minimize the time it takes for the CPU to scan the key matrix which in turn reduces the current consumption.
  • Page 85: Mouse_Emulation_Mode

    The following transmission packet formats are implemented in this RDK. The report formats show the application payload and the radio protocol overhead with example packet headers. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 86 Example The following reports would be sent if a user presses an 'a' on the keyboard. The down key packet sent from the keyboard to the bridge is shown in Table 5-16. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 87 Example The following reports are sent if a user presses 'Volume Increase' (Hot Key 8) key on the keyboard. The following table shows the 'Volume Increase' down key packet sent from the keyboard to the bridge. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 88 An Application Report Header of 0xFC indicates that this report is a Keep Alive Report. The following table shows an example of a Keep Alive reports sent from the keyboard to the bridge. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 89 5-19. It appears that the key (RowY, ColumnB) has been pressed as well when it has not since the other keys electrically connect RowY to ColumnB. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 90 19 CPU clock cycles for this portion. Therefore, the Latency2 equals to 1.583 µs for the 12 MHz CPU. Consequently, the total latency for a button interrupt is Latency1 + Latency2 = 3.667 µs. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 91 0x00E9, // Volume Up 0x00E2, // Mute 0x00B7, // Stop 0x00EA, // Volume Down 0x022A, // WWW Favorites 0x0225, // WWW Forward 0x0224, // WWW Back CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 92: Verify Output

    4. The green LED turns ON and remains ON if a key is pressed and held (due to the keyboard's sending Keep Alive packets). CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 93: Appendix

    0402 0402 0402 0402 0402 0.047 uFd 0.047 uFd 0.047 uFd 0.047 uFd 0.047 uFd 0.047 uFd Power Supply 0805 4.7 uFd 0805 2.2 uFd CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 94 NO LOAD NO LOAD ADNS-3040 MID_SW Z-wheel1 SW PUSHBUTTON Z-wheel2 GND1 GND2 RT_SW ENCODER SW PUSHBUTTON 0603 NO LOAD 0603 NO LOAD PCB: PDC - 9302 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 95 HDR 1x5 RA USB A RA 4 Pin HDR Programming header NO LOAD NO LOAD NO LOAD Jumpers Orientation Pins 1&3, 2&4 =E2 Pins 1&2, 3&4 =E3 CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 96: Board Layout

    Board Layout Figure A-5. Bridge Top Figure A-6. Bridge Bottom CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 97 Figure A-7. Mouse Top Figure A-8. Mouse Bottom CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 98 Figure A-9. Keyboard Top Figure A-10. Keyboard Bottom CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 99: Wirelessusb 2-Way Hid Protocol Overview

    WirelessUSB LP supports a separate SOP and Data threshold. The RDK uses an SOP threshold of '4'. The data threshold is set to the default value of '4'. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 100: Automatic Acknowledgment

    This algorithm reduces the possibility of multiple bridges selecting the same channels in the same order at the same time. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 101: Protocol Modes

    HID (both devices use the bridge's Manufacturing ID to calculate these fields). If a defined* period of time CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 102: Packet Structures

    CONNECT_REQ = 0x1, // Connect Request Packet Type CONNECT_RESP= 0x 2, // Connect Response Packet Type PING_PACKET = 0x 3, // Ping Packet Type DATA_PACKET = 0x 4, // Data Packet Type CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 103 MID 3 MID 4 Byte 1 Device Type - 0x1 PIN - This is a 3-bit field specifying the PIN element of the Network ID. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 104 Device ID - This is 1-bit field containing the least significant bit of the Device Type. The Device ID field is used in 2:1 systems to distinguish between the HID devices. Byte 2-N Data Byte 0-N - This is byte-aligned application data. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 105: Bind And Reconnect Timing

    Mode (at 1.8 ms/channel 'hopping' frequency of the HID and the bridge's 320 ms/channel, the two will 'meet' on the same channel at least 13 times in any 320 ms period). CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 106 19 times before it times out and exits Reconnect Mode. The keyboard tries to send the data for up to 5 seconds, and the mouse tries for 2 seconds, causing the HID to re-enter Reconnect Mode multiple times if necessary. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 107: Back Channel Support For Numlk/Scrlk/Caps Lock

    NumLk/ScrLk/Caps Lock data, the bridge goes into 'transmit' mode by enabling its transmitter to send the data. After sending the Data CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 108: Signature Byte

    Data Encryption Key and stores the key in NVRAM. After receiving both halves of the Data Encryption Key the HID may begin transmitting encrypted data to the bridge. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 109 The measurement shows that the average Icc in test mode is 3.33 mA if encryption is dis- abled. If encryption is enabled, the average Icc increases to 3.66 mA. Figure A-14. Encryption Key Management   CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 110: Manufacturing Test Support, Mtk

    All remaining serial commands only affect the current setting and are not stored (reset across power cycles). Table A.4-1 describes the serial port protocol in the PC to tester direction. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 111 The serial port settings for the MTK Tester are shown in Table A-3. Neither software nor hardware handshake is supported. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 112: Mtk Rf Protocol

    Mouse: Apply a jumper across the ISSP header pins 4/5 and install the batteries. Keyboard: Same as mouse. Bridge: Press the button while plugging it into the USB port. The LEDs should blink. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 113: Regulatory Testing Results

    It is accomplished by changing the KEYBOARD_TEST_MODE_PERIOD define in the config.h file to 50. The following is the results of RDK keyboard current measurement CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 114: Rdk Mouse

    19 hours per day with the 3030/3040 sensor in 'rest3' state ■ 5 days per week as above, 2 days per week 24 hours in 'rest3' state ■ CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 115 The RDK mouse uses two AA cells and enables the PMU function. Therefore, it is able to access approximately 2850-mAh battery capacity, which yields a battery life estimate of 338 days or 11 months. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 116: Software Users Guide

    IsOpenForWrite() Public for write access This method is used to report if the handle open to the HID device allows IsOpenOverlapped() Public for overlapped I/O. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 117 This method simply returns TRUE, it is expected that this routine will be ValidateHidDevice() Protected overridden by the application where the actual validation will be handled. CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 118 HID device, opens a handle to the HidDeviceArrival() Protected device, adds the new HID device to the list, and registers event notification for this new HID device CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 119 This method overrides the default WindowProc to call OnTrayNotifica- WindowProc() Protected tion for messages targeting the system tray icon or OnTaskbarCreated if the system tray is being restarted CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 120 HIDNotification() Public adds or removes the icon from the system tray when the first or last HID device is added or removed CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 121 HID device; the Message() updated value is stored in the device-specific configuration information for the HID device CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 122 This method creates a new HID device, initializes it, and adds it to the list of NewHidDevice() Protected existing HID devices This method removes the HID device from the list and deletes the HID DeleteHidDevice() Protected device CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 123: Bill Of Materials

    CRYSTAL 12.00MHZ HC49 SMD eCERA GF-1200008 Cypress Semi- PRINTED CIRCUIT BOARD PDC-9263-*B conductor LABEL 1 Serial Number XXXXXX LABEL 2 PCA# 121-26305 ** LP RDK Keyboard CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 124 PDC-9265-*B ductor LABEL1 Serial Number LABEL2 PCA # 121-26504 *A NO LOAD COMPONENTS - DO NOT INSTALL CAP 47UF 6.3V CERAMIC X5R 1210 Panasonic ECJ-4YB0J476M CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 125 IC WIRELESS MICROCONTROLLER Cypress Semi- CY7C60323-PVXC SSOP28 conductor CRYSTAL 12.00MHZ HC49 SMD eCERA GF-1200008 Cypress Semi- PRINTED CIRCUIT BOARD PDC-9302-*C conductor LABEL1 Serial Number CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...
  • Page 126 MOUSE SENSOR PLASTIC SPACER Unknown Mouse LED 3MM RED DIFFUSED TH Lite-On LTL-4261N Recycled BTC LED CLIP Unknown Mouse LENS Stuart Lens 5042-8121 Recycled BTC Z-WHEEL Unknown Mouse CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A...

Table of Contents