Both sides previous revisionPrevious revisionNext revision | Previous revision |
resources:eval:user-guides:eval-adicup3029:reference_designs:demo_ad7124-8 [12 Aug 2020 10:44] – [Available commands] Andrei Drimbarean | resources:eval:user-guides:eval-adicup3029:reference_designs:demo_ad7124-8 [08 Mar 2021 02:27] (current) – [Obtaining the Source Code] adding in .Hex files Zuedmar Arceo |
---|
* PC or Laptop with a USB port | * PC or Laptop with a USB port |
* Software | * Software |
* [[https://github.com/analogdevicesinc/EVAL-ADICUP3029/tree/master/projects/ADuCM3029_demo_cn0414 | ADuCM3029_demo_ad7124_8PMDZ demo application]] FIXME - LINK | * [[https://github.com/analogdevicesinc/EVAL-ADICUP3029/tree/master/projects/ADuCM3029_demo_ad7124_8PMDZ | ADuCM3029_demo_ad7124_8PMDZ demo application]] |
* CrossCore Embedded Studio (2.9.1 or higher) | * CrossCore Embedded Studio (2.9.1 or higher) |
* ADuCM302x DFP (3.2.0 or higher) | * ADuCM302x DFP (3.2.0 or higher) |
===== Setting up the Hardware ===== | ===== Setting up the Hardware ===== |
| |
- Connect **EVAL-AD7124-8-PMDZ** board to the **EVAL-ADICUP3029**. FIXME - PICTURE | - Connect **EVAL-AD7124-8-PMDZ** board to the **EVAL-ADICUP3029**. {{ :resources:eval:user-guides:eval-adicup3029:reference_designs:ad7124_pmod_unplug.jpg |}} |
- Connect a micro-USB cable to P10 connector of the EVAL-ADICUP3029 and connect it to a computer. The final setup should look similar to the picture below. FIXME - PICTURE | - Connect a micro-USB cable to P10 connector of the EVAL-ADICUP3029 and connect it to a computer. The final setup should look similar to the picture below. {{ :resources:eval:user-guides:eval-adicup3029:reference_designs:ad7124_pmod_plug.jpg |}} |
| |
===== Configuring the Software ===== | ===== Configuring the Software ===== |
| |
The software needs no configuration. FIXME - IIO MENTION IF CASE | The software needs no configuration. |
| |
===== Outputting Data ===== | ===== Outputting Data ===== |
| Register read | //**arr**// | Read an ADC register of a specific address.\\ <//addr//> = Address of the register to be read in hexadecimal base. | **arr 2a** - Read register 0x2A | | | Register read | //**arr**// | Read an ADC register of a specific address.\\ <//addr//> = Address of the register to be read in hexadecimal base. | **arr 2a** - Read register 0x2A | |
| Register write | //**awr**// | Write an ADC register of a specific address with a new value.\\ <//addr//> = Address of the register to be written in hexadecimal base.\\ <//val//> = New value of the register. | **arw 9 8002** - Write 0x8002 to register 0x9. | | | Register write | //**awr**// | Write an ADC register of a specific address with a new value.\\ <//addr//> = Address of the register to be written in hexadecimal base.\\ <//val//> = New value of the register. | **arw 9 8002** - Write 0x8002 to register 0x9. | |
| Get data | //**ags**// | Get a number of samples per enabled channels. If the operation takes too long press 'q' to abort.\\ <//no//> = Number of samples (maximum 2048). If sample rate is smaller than 3200 setting the argument 0 means continuous streaming. | | | | Get data | //**ags**// | Get a number of samples per enabled channels. If the operation takes too long press 'q' to abort.\\ <//no//> = Number of samples (maximum 2048). If sample rate is smaller than 3000 setting the argument 0 or no argument means continuous streaming. | | |
| Enable channels | //**aces**// | Choose ADC channels to be activated.\\ <//mask//> = 16-bit mask of the channels to be activated. Can be hexadecimal or binary.\\ A bit of 1 means activated the channel, a bit of 0 means deactivate\\ the channel. | **aces 0xAAAA** - activate every other channel. '0x' is necessary for hexadecimal interpretation. | | | Enable channels | //**aces**// | Choose ADC channels to be activated.\\ <//mask//> = 16-bit mask of the channels to be activated. Can be hexadecimal or binary.\\ A bit of 1 means activated the channel, a bit of 0 means deactivate\\ the channel. | **aces 0xAAAA** - activate every other channel. '0x' is necessary for hexadecimal interpretation. | |
| Get enabled channels | //**aceg**// | Get enable status of ADC channels. Returns a hexadecimal 16-bit mask where bits of 1 represent enabled channels, and bits of 0 represent disabled channels. | | | | Get enabled channels | //**aceg**// | Get enable status of ADC channels. Returns a hexadecimal 16-bit mask where bits of 1 represent enabled channels, and bits of 0 represent disabled channels. | | |
{{ :resources:eval:user-guides:eval-adicup3029:reference_designs:ad71248pmdz_terminal_sample.png |}} | {{ :resources:eval:user-guides:eval-adicup3029:reference_designs:ad71248pmdz_terminal_sample.png |}} |
| |
===== Obtaining the Source Code ===== | ===== Obtaining the Software ===== |
| |
We recommend not opening the project directly, but rather import it into CrossCore Embedded Studios and make a local copy in your workspace. | There are two basic ways to program the ADICUP3029 with the software for the AD7124-8 PMOD. |
| - Dragging and Dropping the .Hex to the Daplink drive |
| - Building, Compiling, and Debugging using CCES |
| |
The source code and include files of the **ADuCM3029_demo_ad7124_8PMDZ** can be found here: | Using the drag and drop method, the software is going to be a version that Analog Devices creates for testing and evaluation purposes. This is the EASIEST way to get started with the reference design |
| |
<WRAP round 80% download> | Importing the project into CrossCore is going to allow you to change parameters and customize the software to fit your needs, but will be a bit more advanced and will require you to download the CrossCore toolchain. |
| |
[[https://github.com/analogdevicesinc/EVAL-ADICUP3029/tree/master/projects/ADuCM3029_demo_cn0414| ADuCM3029_demo_ad7124_8PMDZ at Github]] FIXME - LINK | The software for the **ADuCM3029_demo_ad7124_8PMDZ** can be found here: |
| |
[[| ADuCM3029_demo_ad7124_8PMDZ.HEX]] FIXME - LINK | <WRAP round 80% download> |
| Prebuilt AD7124-8 PMOD Hex File |
| * [[https://github.com/analogdevicesinc/EVAL-ADICUP3029/releases/download/Latest/ADuCM3029_demo_ad7124_8PMDZ.hex| ADuCM3029_demo_ad7124_8PMDZ.Hex]] |
| Complete AD7124-8 PMOD Source Files |
| * [[https://github.com/analogdevicesinc/EVAL-ADICUP3029/tree/master/projects/ADuCM3029_demo_ad7124_8PMDZ| ADuCM3029_demo_ad7124_8PMDZ Source Code]] |
| |
</WRAP> | </WRAP> |