Specifications

80 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev. *B
Code Examples
5.9 Joystick
5.9.1 Description
This project is used to control the mouse cursor movement using the joystick onboard. The joystick
movements are digitized using an ADC and the change in ADC values are used to decipher the
direction of movement.The USBFS module is used to enumerate as a mouse device and the mouse
is controlled based on the ADC value and direction of movement. The following user modules are
used in the project:
DUALADC: It is used to get the samples that will be used as reference values for horizontal and
vertical movement of the joystick. DUALADC is used to sample two input voltages simultane-
ously. Both the horizontal and vertical movements of the joystick are monitored simultaneously to
detect any minimal change in position of joystick.
LCD: It is used to display the message.
PGA: Two PGAs are used at unity gain to supply two inputs to DUALADC
USBFS: This module is used to transmit the data to control the mouse pointer based on the joy-
stick movement.
5.9.2 Hardware Connection
Connect P0.3 (P03 on J4) to JSV(J2).
Connect P0.4 (P04 on J4) to JSH(J2).
Figure 5-79. Hardware Connection