64
CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
Code Examples
5.2
Project2- LP_RDK_Mouse
5.2.1
Project Description
This code example demonstrates various features and functions offered by the mouse. The mouse
is a three button mouse that includes left button, right button, and a center button along with a scroll
wheel for scrolling action.
5.2.1.1
ROM/RAM Usage
The following table shows the ROM/RAM usage. The top part exhibits the total ROM/RAM usage for
basic functions, which disables all the build options below. The bottom part exhibits the ROM/RAM
usage for individual build options.
Table 5-7. ROM/RAM Usage
5.2.2
Device Configurations
The enCoRe III LV is configured using the Device Editor in PSoC Designer. The mouse uses three
digital blocks and two analog blocks to support three separate user modules. The first module is an
SPI master for communicating with the optical sensor and the radio. The second module is a PWM
configured to operate as an 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.
Total ROM (Bytes)
Total RAM (Bytes)
Basic Function
5202
69
Build Option
ROM Usage (Bytes
RAM Usage (Bytes)
MOUSE_BATTERY_STATUS
708
2
MOUSE_TEST_CODE
522
0
MFG_TEST_CODE
448
0
MFG_TX_MODES
735
3