This is an old revision of the document!
The ADuCM_demo_cn0414 project provides a solution to control a PLC or DCS input system using the EVAL-CN0414-ARDZ and the EVAL-ADICUP3029. It uses an ADC with 4 differential voltage channels and 4 current channels and boasts low power Open-Wire Detection capabilities and HART communication. It has a 32kb EEPROM memory that can also be used to identify the board and is controlled via a command line interface (CLI).
The ADuCM_demo_cn0414 project uses EVAL-CN0414-ARDZ to provide a complete, fully isolated and highly flexible, four channel analog input system. The EVAL-CN0414-ARDZ is suitable for programmable logic controllers (PLC) and distributed control system (DCS) applications that require multiple voltage inputs. It boasts open wire detection and has HART-compatible, 4 mA to 20 mA current inputs, all protected from transient overvoltage or overcurrent events, suitable for the most harsh industrial environments.
The circuit can be divided into the following parts: the ADC, the input channels, the HART modem and the memory. ! MAYBE LINK TO APP NOTE
The ADC is the core of the EVAL-CN0414-ARDZ shield. It is an AD4111 with 8 single or 4 differential voltage channels and 4 current channels. The input channels in this application are configured as 4 differential voltage channels and the current channels. The application maintains 8 internal registers, one for each channel, that are updated periodically, on a timer interrupt, with the latest conversion results. This way, on a single read, the user can have the data on a channel without waiting for a conversion. ! MARKS DIAGRAM Alternatively the user can request a burst read of up to 2000 samples returned at the ADC output data rate. The application uses the ADCs Open-Wire Detection capabilities for the voltage channels. When activated this option also tracks the state of the channel connection on every read and gives a warning when a channel is disconnected.
The EVAL-CN0414-ARDZ is HART capable. When this option is activated the current channels can be used to transmit or receive HART messages or command zero and receive response. The system is capable of receiving messages asynchronously using a GPIO interrupt.
The system also includes an EEPROM memory that communicates with the controller via I2C and can be used to store data or identification information for the board. The memory can be used to uniquely identify the board in a system of 4 similar boards (EVAL-CN0414-ARDZ or EVAL-CN0418-ARDZ) controlled by the same EVAL-ADICUP3029.
The following is a list of items needed in order to replicate this demo.
The configuration parameters can be found in the config.h file.
vref - Reference voltage of the ADC. If the internal reference is used this value must be 2.5V. If an external reference is used then this value must be the value of the external reference.
Referece | vref value |
---|---|
internal | 2.5 |
external | Actual reference voltage |
/* Reference voltage of the ADC */ float vref = 2.5;
! - make sure this is correct for your application Once the hardware and software is configured, user needs to follow on screen instructions to run Visible Light Detection\Measurement demo.
Following is the UART configuration.
Select COM Port Baud rate: 9600 Data: 8 bit Parity: none Stop: 1 bit Flow Control: none
! - Make sure you point out which app is correct and then talk about the data that gets output. (Pictures are great) and link over to the app page so customers can figure out how to download/install it. If it's not Bluetooth compatible remove this section
! - Make sure you talk about how to display the data, and link over to the Wi-Fi wiki page for more details. It the example isn't Wi-Fi enabled delete this section.
We recommend not opening the project directly, but rather import it into CrossCore Embedded Studios and make a local copy in your workspace.
The source code and include files of the !file_name_of_demo can be found here:
! - This will be either a link to a Git repository or a pack file somewhere, but make sure this is accessible to the customer. We want them to take our code and use it because that means they are going to use our hardware, and we get paid when that happens.
The official tool we promote for use with the EVAL-ADICUP3029 is CrossCore Embedded Studio. For more information on downloading the tools and a quick start guide on how to use the tool basics, please check out the Tools Overview page.
For more detailed instructions on importing this application/demo example into the CrossCore Embedded Studios tools, please view our How to import existing projects into your workspace section.
For more detailed instructions on importing this application/demo example into the CrossCore Embedded Studios tools, please view our How to configure the debug session section.
! - Add text, picture, images, that describe the project structure. Any software flow diagrams or decision trees can be added her to help customers understand how the applications are structures.
End of Document