This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
resources:eval:user-guides:eval-adicup360:reference_designs:demo_cn0398 [20 Jun 2017 20:03] – added all about circuits video Brandon Bushey | resources:eval:user-guides:eval-adicup360:reference_designs:demo_cn0398 [12 Dec 2017 21:45] – Brandon Bushey | ||
---|---|---|---|
Line 3: | Line 3: | ||
The **ADuCM360_demo_cn0398** is a pH and moisture measurements demo project, for the EVAL-ADICUP360 base board with additional EVAL-CN0398-ARDZ shield, created using the GNU ARM Eclipse Plug-ins in Eclipse environment. | The **ADuCM360_demo_cn0398** is a pH and moisture measurements demo project, for the EVAL-ADICUP360 base board with additional EVAL-CN0398-ARDZ shield, created using the GNU ARM Eclipse Plug-ins in Eclipse environment. | ||
- | \\ | ||
===== General description ===== | ===== General description ===== | ||
Line 79: | Line 78: | ||
</ | </ | ||
- | \\ | + | ===== Demo Requirements ===== |
+ | |||
+ | The following is a list of items needed in order to replicate this demo. | ||
+ | * Hardware | ||
+ | * EVAL-ADICUP360 | ||
+ | * EVAL-CN0398-ARDZ | ||
+ | * pH probe with BNC connector | ||
+ | * Analog Moisture sensor | ||
+ | * PT100 RTD Probe | ||
+ | * 7V to 12V DC Power Supply | ||
+ | * Mirco USB to USB cable | ||
+ | * PC or Laptop with a USB port | ||
+ | * Software | ||
+ | * ADuCM360_demo_cn0398 software | ||
+ | * CrossCore Embedded Studio (2.7.0 or higher) | ||
+ | * ADuCM36x DFP (1.0.2 or higher) | ||
+ | * CMSIS ARM Pack (4.3.0 or higher) | ||
+ | * Serial Terminal Program | ||
+ | * Such as Putty or Tera Term | ||
===== Video ===== | ===== Video ===== | ||
Line 102: | Line 119: | ||
===== Setting up the hardware ===== | ===== Setting up the hardware ===== | ||
- | Plug the **EVAL-CN0398-ARDZ** | + | - To program the base board, set the jumpers/ |
+ | - Connect | ||
+ | - Connect the pH sensor | ||
+ | - Connect the RTD sensor | ||
+ | - Connect | ||
+ | <note important> | ||
+ | - Set the jumpers | ||
+ | - Plug in the USB cable from the PC to the EVAL-ADICUP360 base board via the Debug USB.(P14) | ||
- | {{: | ||
- | \\ | ||
- | |||
- | The ADuCM360_demo_cn0398 uses **UART** connection via **P0.6/ | ||
- | \\ | ||
- | \\ | ||
===== Obtaining the source code ===== | ===== Obtaining the source code ===== | ||
- | We recommend not opening the project directly, but rather import it into Eclipse | + | We recommend not opening the project directly, but rather import it into CCES and make a local copy in your workspace. |
The source code and include files of the **ADuCM360_demo_cn0398** can be found on Github: | The source code and include files of the **ADuCM360_demo_cn0398** can be found on Github: | ||
- | <WRAP round 40% download> | + | <WRAP round 80% download> |
+ | \\ | ||
+ | CrossCore Embedded Studio Application Source Code: | ||
+ | \\ | ||
+ | \\ | ||
[[https:// | [[https:// | ||
- | |||
</ | </ | ||
+ | <WRAP center round info 80%> | ||
+ | For more information on importing, debugging, or other tools related questions, please see the [[https:// | ||
+ | </ | ||
- | \\ | + | ===== Configuring |
- | ===== Importing | + | |
- | The necessary instructions on how to import the **ADuCM360_demo_cn0398** project form the projects examples | + | |
+ | * **Terminal refresh** | ||
+ | * **Moisture calculation formula** - // | ||
+ | ===== Outputting Data ===== | ||
+ | |||
+ | ==== Serial Terminal Output ==== | ||
+ | |||
+ | - In order to view the data, you must flash the program to the EVAL-ADICUP360. | ||
+ | - Once complete you will need to switch the USB cable from the DEBUG USB (P14) to the USER USB (P13). | ||
+ | - Then follow the UART settings below with the serial terminal program. | ||
+ | \\ | ||
+ | |||
+ | Following is the UART configuration. | ||
+ | Select COM Port | ||
+ | Baud rate: 115200 | ||
+ | Data: 8 bit | ||
+ | Parity: none | ||
+ | Stop: 1 bit | ||
+ | Flow Control: none | ||
\\ | \\ | ||
- | ===== Debugging | + | * The software will ask if you want to do a calibration, |
+ | * If [n] is selected, | ||
+ | * The data output refreshes in the console window at the rate of the " | ||
- | * A debug configuration must be set up for this project in order to have the possibility to program and to debug the **ADuCM360_demo_cn0398** project. To do this, follow the instructions from [[resources: | + | {{ :resources: |
- | * Make sure the target board is connected | + | ===== How to use the Tools ===== |
- | * Use step-by-step execution or directly run the program. | + | The official tool we promote for use with the EVAL-ADICUP360 is CrossCore Embedded Studio. |
- | + | ||
- | After completion of the steps above the program will remain written | + | ==== Importing ==== |
+ | |||
+ | For more detailed instructions on importing this application/ | ||
+ | |||
+ | ==== Debugging ==== | ||
+ | |||
+ | For more detailed instructions on importing this application/ | ||
- | \\ | ||
===== Project Structure ===== | ===== Project Structure ===== | ||
Line 154: | Line 201: | ||
\\ | \\ | ||
- | In the appropriate header files you can **configure** next **parameters**: | + | The **RTE** folder contains device and system related files: |
- | * **Zero point tolerance** - // | + | * **Device Folder** – contains low levels drivers for ADuCM360 microcontroller.(try not to edit these files) |
- | * **Terminal refresh** - // | + | * **system.rteconfig** - Allows |
- | * **Moisture calculation formula** - // | + | \\ |
+ | \\ | ||
- | + | // End of Document // | |
- | \\ | + | |
- | The **system** folder contains system related files (try not to change these files): | + | |
- | * **aducm360** – contains low levels drivers for ADuCM360 microcontroller. | + | |
- | * **cmsis** – contains files related to ADuCM360 platform, such as: // | + | |
- | * **cortexm** – contains files for system management (start-up, reset, exception handler). | + | |
- | \\ | + | |
- | \\ | + | |
- | \\ | + | |
- | + | ||
- | //End of Document// | + |