Skip to content

Commit 7a10187

Browse files
committed
projects: CN0531: Added readme doc
Signed-off-by: Joyce Velasco <[email protected]>
1 parent ea88102 commit 7a10187

File tree

2 files changed

+153
-0
lines changed

2 files changed

+153
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../../../../../projects/cn0531/README.rst

projects/cn0531/README.rst

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
CN0531 no-OS Example Project
2+
============================
3+
4+
.. contents::
5+
:depth: 3
6+
7+
Supported Evaluation Boards
8+
---------------------------
9+
10+
- :adi:`EVAL-CN0531-PMDZ`
11+
- :adi:`EVAL-ADICUP3029`
12+
13+
Overview
14+
---------
15+
16+
The EVAL-CN0531-PMDZ is a precision DAC module designed for applications
17+
such as medical instrumentation, test and measurement equipment,
18+
industrial control, and scientific research. It features a 20-bit DAC
19+
with minimal 1ppm accuracy and ±1 LSB Integral Non-Linearity (INL). It
20+
provides flexibility with support for multiple voltage references and
21+
power options, allowing use of onboard or external power supplies and
22+
voltage references. The module’s compatibility with the SPI Pmod
23+
interface enables versatile and precise analog output applications.
24+
25+
Applications
26+
-------------
27+
28+
- Instrumentation and measurement equipment
29+
- DC Sources and Power Supply Solutions
30+
- Analytical Instrument Solutions
31+
32+
Hardware Specifications
33+
-----------------------
34+
35+
Power Supply Requirements
36+
~~~~~~~~~~~~~~~~~~~~~~~~~
37+
38+
The EVAL-CN0531-PMDZ module requires a power supply that can be
39+
configured to use either onboard power converters or external power
40+
sources. The onboard converters can generate the necessary voltage
41+
levels from a single external input, which is usually supplied by a
42+
connected development platform. Alternatively, users can choose to
43+
supply power directly through external connections, which can be
44+
beneficial for integration into systems with existing power
45+
infrastructure. The module’s voltage range spans from -5V to +5V,
46+
allowing it to be flexible for use in various high-precision
47+
applications like scientific instrumentation and industrial control. The
48+
high power supply rejection ratio and low operating drift provided by
49+
the onboard voltage regulators enhance its stability and precision.
50+
51+
No-OS Build Setup
52+
-----------------
53+
54+
Please see: `https://wiki.analog.com/resources/no-os/build`
55+
56+
No-OS Supported Examples
57+
-------------------------
58+
59+
The initialization data used in the example is taken out from the
60+
`Project Data Source Path: <https://github.com/analogdevicesinc/no-OS/tree/main/projects/cn0531/src>`__
61+
62+
IIO example
63+
~~~~~~~~~~~
64+
65+
The IIO example code for the AD5791 DAC initializes SPI and UART
66+
interfaces, configuring essential peripherals for operation. It sets
67+
parameters like SPI mode, chip select, and speed, and establishes UART
68+
communication with specified baud rate and device ID. The AD5791 DAC is
69+
controlled via SPI and interfaced using IIO descriptors to integrate
70+
within the application. The main function manages the setup and
71+
execution of the IIO application, utilizing IIO buffers for data
72+
transfers, enabling efficient data operations with the DAC within a data
73+
acquisition system.
74+
75+
This project is an IIOD demo for EVAL-CN0531-PMDZ board. The project
76+
launches a IIOD server on the board so that the user may connect to it
77+
via an IIO client. Using IIO Oscilloscope, the user can configure the
78+
ADC and view the measured data on a plot.
79+
80+
If you are not familiar with ADI IIO Application, please take a look at:
81+
`IIO No-OS <https://wiki.analog.com/resources/tools-software/no-os-software/iio>`__
82+
83+
If you are not familiar with ADI IIO Oscilloscope Client, please take a
84+
look at:
85+
`IIO Oscilloscope <https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope>`__
86+
87+
The No-OS IIO Application together with the AD5791 no-OS drivers take
88+
care of all the back-end logic needed to setup the IIO server.
89+
90+
In order to build the IIO project, make sure you have the following
91+
configuration in the
92+
93+
`Makefile: <https://github.com/analogdevicesinc/no-OS/blob/main/projects/cn0531/Makefile>`__
94+
95+
.. code-block:: bash
96+
97+
IIOD=y
98+
99+
No-OS Supported Platform
100+
-------------------------
101+
102+
ADuCM Platform
103+
~~~~~~~~~~~~~~~
104+
105+
Hardware Used
106+
^^^^^^^^^^^^^
107+
108+
- :adi:`EVAL-CN0531-PMDZ`
109+
- :adi:`EVAL-ADICUP3029`
110+
111+
Connections
112+
^^^^^^^^^^^
113+
114+
+-----------+-------------------+-----------------------------+
115+
| **Pin | **EVAL-CN0531- | **EVAL-ADICUP3029 |
116+
| No.** | PMDZ Connector** | PMOD Header** |
117+
+-----------+-------------------+-----------------------------+
118+
| 8-1 | VCC (3.3V Power | +3.3V |
119+
| | Supply) | |
120+
+-----------+-------------------+-----------------------------+
121+
| 8-2 | GND (Ground) | DGND |
122+
+-----------+-------------------+-----------------------------+
123+
| 8-3 | UART_TX (Data | UART0_RX / GPIO11 |
124+
| | from CN0531 to | |
125+
| | ADICUP) | |
126+
+-----------+-------------------+-----------------------------+
127+
| 8-4 | UART_RX (Data | UART0_TX / GPIO10 |
128+
| | from ADICUP to | |
129+
| | CN0531) | |
130+
+-----------+-------------------+-----------------------------+
131+
| | | USB Type A connector |
132+
| | | (Used for power |
133+
| | | and programming) |
134+
+-----------+-------------------+-----------------------------+
135+
| | | Micro USB connector |
136+
| | | (Connects to debugger |
137+
| | | and UART) |
138+
+-----------+-------------------+-----------------------------+
139+
140+
Build Command
141+
^^^^^^^^^^^^^
142+
143+
.. code-block:: bash
144+
145+
# to delete current build
146+
make reset
147+
# to build the project
148+
make PLATFORM=aducm3029
149+
# to flash the code
150+
make run
151+
# to debug the code
152+
make debug

0 commit comments

Comments
 (0)