Skip to content

Commit

Permalink
Projects: ad2s1210: Add support for ad2s1210
Browse files Browse the repository at this point in the history
The AD2S1210 is a complete 10-bit to 16-bit resolution tracking
resolver-to-digital converter

Signed-off-by: Axel Haslam <[email protected]>
  • Loading branch information
ahaslam2 committed Dec 5, 2023
1 parent 53f6502 commit 16f222e
Show file tree
Hide file tree
Showing 18 changed files with 1,630 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
strategy:
matrix:
project:
- ad2s1210_iio
- ad4130_iio
- ad559xr_console
- ad5770r_console
Expand Down
1 change: 1 addition & 0 deletions .mbedignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ projects/ad590_console/
projects/adt7420_console/
projects/ad559xr_console/
projects/ad5933_console/
projects/ad2s1210_iio/
projects/evb_discovery_firmware/
17 changes: 17 additions & 0 deletions projects/ad2s1210_iio/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*.swp
*.profile*
build
app/no-OS
Visual*
Code*
.gitattributes
.vs/
*.sln
*.vgdbproj
*.TMP
*.user
scripts/__pycache__
tests/.pytest_cache
tests/__pycache__
tests/func/__pycache__
tests/output
7 changes: 7 additions & 0 deletions projects/ad2s1210_iio/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include ../../tools/scripts/generic_variables.mk

-include $(NO-OS)/tools/scripts/generic_variables.mk

include src.mk

-include $(NO-OS)/tools/scripts/generic.mk
65 changes: 65 additions & 0 deletions projects/ad2s1210_iio/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
Evaluation Boards/Products Supported
------------------------------------
EVAL-AD2S1210


Overview
--------
This is an IIO firmware application to evaluate the AD2S1210 device.
This code was developed and tested on SDP-K1 controller board: https://os.mbed.com/platforms/SDP_K1/
Use of the Mbed platform allows code to be ported to other Mbed supported target boards with little or no modifications.

Product details: AD2S1210.
Product Evaluation board details: EVAL-AD2S1210SDZ
User Guide for this code: https://wiki.analog.com/resources/tools-software/product-support-software/AD2S1210_mbed_iio_support
Communication Protocol: SPI


Hardware Setup
--------------
Required: SDP-K1, ADZS-BRKOUT, EVAL-AD2S1210 board and USB cable.
Plug in the EVAL-AD2S1210 board to the ASZS-BRKOUT, populate flywires to the
SDP-K1 board using the Arduino connector.

The connections are as follows:

SDPK1 BREAKOUT
DIGITAL-0 -> 96 A0
DIGITAL-1 -> 25 A1
DIGITAL-4 -> 48 SAMPLE
DIGITAL-5 -> 43 RES0
DIGITAL-6 -> 78 RES1
DIGITAL-10 -> 100 nWD
DIGITAL-11 -> 12 SDI
DIGITAL-12 -> 110 SDO
DIGITAL-13 -> 13 SCLK
POWER-GND -> 4 GIO
POWER-3v3 -> 116 VIO

2S1210-EVAL
J3 CS -> J3 GND



(refer to the software wiki page for connection setup).
Connect the SDP-K1 board to the PC using the USB cable and the AD2S1210 EVB to the
provided AC adapter.


How to Get Started
------------------
Mbed web/online compiler: https://studio.keil.arm.com/auth/login/
Import the code into the compiler and compile it to generate the executable binary file.
Drag and drop the binary file onto the USB drive hosted by the SDP-K1 controller board.
Find detailed instructions here: https://wiki.analog.com/resources/tools-software/product-support-software/pcg-fw-mbed-build-guide


Notes
-----
A detailed user guide on the SDP-K1 controller board is available here:
https://os.mbed.com/platforms/SDP_K1/
https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/SDP-K1.html.


Copyright (c) 2023 Analog Devices, Inc. All rights reserved.
Copyright (c) 2023 BayLibre, SAS
Loading

0 comments on commit 16f222e

Please sign in to comment.