PS2 Joystick Demo
demo File: ps2_joystick_demo.mdl
The demo showing how to use SPI module to interface with PS2 joystick.
|Data format, 8bit and first bit is LSB.|
|SPI clock frequency is 164.063kHz (Note: we tried to increase the speed but the reading value seem not stable).|
|Clock polarity low and data capture on 2nd edge.|
The demo test with following hardware:
|aMG F4 Connect board 2|
|aMG CLCD 2|
A simple connection for pin adapter.
Push the button on Joystick and observe status on LCD. When button pressed, status will be 1.