Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:eval:user-guides:ev-cog-ad3029lz:example_project:joystick_example [20 Sep 2017 06:30] Sumanth Karanthresources: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, which contains the joystick and the expander IC.+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 I/O expander chip. The entire setup is made simple with the use of AD-GEAR-DISPLAY1Z, which contains the joystick and the expander IC.
  
 {{:resources:eval:user-guides:ev-cog-ad3029lz:example_project:cog_joystick.png?600|}} {{:resources:eval:user-guides:ev-cog-ad3029lz:example_project:cog_joystick.png?600|}}
Line 21: Line 21:
 {{:resources:eval:user-guides:ev-cog-ad3029lz:example_project:cog_joystick_pin.png?600|}} {{:resources:eval:user-guides:ev-cog-ad3029lz:example_project:cog_joystick_pin.png?600|}}
  
 +* 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 ==== 
 +
 +{{:resources:eval:user-guides:ev-cog-ad3029lz:example_project:joystick_flow.png?800|}}
 +
 +* 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 {{:resources:eval:user-guides:ev-cog-ad3029lz:example_project:joystick_example.zip|}}
 +  - 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>media/en/dsp-documentation/processor-manuals/ADuCM302x-mixed-signal-control-processor-hardware-reference.pdf|ADuCM3029 Hardware Reference Manual]]
 +  * [[/resources/eval/user-guides/ev-cog-ad3029lz|EV-COG-AD3029LZ User guide with the BSP]]
 +  * [[http://ww1.microchip.com/downloads/en/DeviceDoc/20001952C.pdf|MCP23s17 Datasheet]]
 +  * Schematics of EV-COG-AD3029LZ and AD-GEAR-DISPLAY1Z are found in the Docs folder of the joystick_example project.
  
  
resources/eval/user-guides/ev-cog-ad3029lz/example_project/joystick_example.1505881811.txt.gz · Last modified: 20 Sep 2017 06:30 by Sumanth Karanth