This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:eval:user-guides:ev-cog-ad3029lz:example_project:joystick_example [20 Sep 2017 06:30] – Sumanth Karanth | resources:eval:user-guides:ev-cog-ad3029lz:example_project:joystick_example [14 Jan 2021 05:24] (current) – use / interwiki links Robin Getz | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This document explains about the hardware and software setup, which is required to interface a joystick with the EV-COG-AD3029LZ using MCP23S17 as an interfacing expander chip. The entire setup is made simple with the use of AD-GEAR-DISPLAY1Z, | + | This document explains about the hardware and software setup, which is required to interface a joystick with the EV-COG-AD3029LZ using MCP23S17 as an interfacing |
{{: | {{: | ||
Line 21: | Line 21: | ||
{{: | {{: | ||
+ | * The joystick and the I/O expander-MCP23s17 are embedded on the AD-GEAR-DISPLAY1Z. | ||
==== Board Interface ==== | ==== Board Interface ==== | ||
Line 39: | Line 40: | ||
| - |GPA4 | SW5 | | | - |GPA4 | SW5 | | ||
+ | * A0, A1 and A2 of the I/O expander are connected to the ground. | ||
+ | |||
+ | * RESET_N of the I/O expander is connected to EXT_VDD_OUT of the COG board. | ||
+ | |||
+ | ===== Software Details ===== | ||
+ | This section contains software related information about AD-GEAR-DISPLAY1Z and the EV-COG-AD3029-LZ and the application. Links are provided to the user guides, BSPs, software tool chains and the example project at the end of this page. | ||
+ | |||
+ | ==== Application files ==== | ||
+ | |||
+ | The example project provided consists mainly of the following, | ||
+ | - mcp23s17_3.c | ||
+ | - mcp23s17.h | ||
+ | - SPI_PE.h | ||
+ | - adi_spi_pe.h | ||
+ | - IAR project files( *.eww, *.ewt, *.ewt) | ||
+ | * The application uses the ADuCM302x-Rel 2.0.0 driver BSP for IAR. | ||
+ | * IAR Embedded Workbench 7.60.1 or higher is advised to be used. | ||
+ | |||
+ | ==== Application flow ==== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * All the APIs for using the I/O expander is within the mcp23s17_3.c with supporting definitions found in SPI_PE.h and adi_spi_pe.h. A separate driver file to use the I/O expander is yet to be created. | ||
+ | |||
+ | ==== IDE Setup and example application ==== | ||
+ | |||
+ | This section covers the various steps involved in getting the joystick_example application code to run on EV-COG-AD3029LZ after the hardware setup is done. | ||
+ | |||
+ | Following are the steps involved, | ||
+ | - Download and install IAR Embedded Workbench 7.60.1 or higher. | ||
+ | - Download the joystick_example project from {{: | ||
+ | - The joystick_example project is also available on [[Link to bitbucket has to be put here|Bitbucket]]. | ||
+ | - Import the source into IAR workspace and run the application software to generate interrupts by joystick press. | ||
+ | |||
+ | ===== References and Links ===== | ||
+ | |||
+ | * [[adi> | ||
+ | * [[/ | ||
+ | * [[http:// | ||
+ | * Schematics of EV-COG-AD3029LZ and AD-GEAR-DISPLAY1Z are found in the Docs folder of the joystick_example project. | ||