This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:eval:user-guides:circuits-from-the-lab:cn0548 [24 Nov 2021 03:14] – [PyADI-IIO] Harvey John De Chavez | resources:eval:user-guides:circuits-from-the-lab:cn0548 [04 Feb 2022 08:10] (current) – [Flashing the Firmware/Program] Harvey John De Chavez | ||
---|---|---|---|
Line 8: | Line 8: | ||
==== Features ==== | ==== Features ==== | ||
- | * Absolute maximum input rating of 80V, 20A | + | * Absolute maximum input rating of 80V, 14A |
* Configurable voltage and current setting | * Configurable voltage and current setting | ||
* 16-bit ADC resolution with adjustable output data rate | * 16-bit ADC resolution with adjustable output data rate | ||
Line 19: | Line 19: | ||
\\ | \\ | ||
==== Simplified Block Diagram ==== | ==== Simplified Block Diagram ==== | ||
- | {{: | + | \\ |
- | \\ \\ \\ | + | {{ : |
- | ------------ | + | \\ |
===== Onboard Configuration ===== | ===== Onboard Configuration ===== | ||
{{: | {{: | ||
\\ \\ \\ | \\ \\ \\ | ||
==== Configuring the Input Voltage Polarity and Current Direction ==== | ==== Configuring the Input Voltage Polarity and Current Direction ==== | ||
- | Before using the CN0548, the user must know the expected inputs and configure the board accordingly. The polarity as well as the direction of the inputs is an important aspect that should be noted by the user. Below is a table showing the maximum input rating depending on the configuration. \\ | + | Before using the CN0548, the user must know the expected inputs and configure the board accordingly. The polarity as well as the direction of the inputs is an important aspect that should be noted by the user. Below is a table showing the maximum input rating depending on the configuration. |
- | {{ : | + | | |
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |||
+ | \\ | ||
Jumper connections P12 and P13 configure the input current setting while jumpers P7 and P14 configure the input voltage setting. For a unipolar and unidirectional setting, the jumpers should be shorted to the GND pin. On the other hand, it should be connected to the 2.048V pin for a bipolar and bidirectional setting, | Jumper connections P12 and P13 configure the input current setting while jumpers P7 and P14 configure the input voltage setting. For a unipolar and unidirectional setting, the jumpers should be shorted to the GND pin. On the other hand, it should be connected to the 2.048V pin for a bipolar and bidirectional setting, | ||
Line 37: | Line 44: | ||
==== Configuring the Absolute Input Voltage Range ==== | ==== Configuring the Absolute Input Voltage Range ==== | ||
The CN0548 is equipped with a precision wide voltage range gain selectable attenuating difference amplifier allowing it to have an adjustable input voltage range feature. The onboard jumpers P1, P3, P10, P8, P9, P11 should be configured accordingly to the desired maximum voltage range for a finer voltage resolution. | The CN0548 is equipped with a precision wide voltage range gain selectable attenuating difference amplifier allowing it to have an adjustable input voltage range feature. The onboard jumpers P1, P3, P10, P8, P9, P11 should be configured accordingly to the desired maximum voltage range for a finer voltage resolution. | ||
- | \\ \\ {{ : | + | \\ \\ |
- | \\ Shown here is guide on how to configure the gain jumpers. Using this guide, it can be inferred that the above sample jumper configuration corresponds to a maximum input voltage range of 16V. | + | {{ : |
- | {{ : | + | \\ Shown here is guide on how to configure the gain jumpers. Using this guide, it can be inferred that the above sample jumper configuration corresponds to a maximum input voltage range of 16V. \\ |
+ | |||
+ | {{ : | ||
+ | \\ \\ \\ \\ | ||
+ | ^ **Max Range** | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
\\ | \\ | ||
+ | \\ | ||
+ | \\ \\ | ||
==== Chip Select ==== | ==== Chip Select ==== | ||
As mentioned in the Features section earlier, the CN0548 has a remappable Chip Select feature allowing the board to be stacked with other shields. By default, jumper P15 is shunted but this can be modified accordingly depending on the shields stacked and the user's application. \\ | As mentioned in the Features section earlier, the CN0548 has a remappable Chip Select feature allowing the board to be stacked with other shields. By default, jumper P15 is shunted but this can be modified accordingly depending on the shields stacked and the user's application. \\ | ||
Line 46: | Line 64: | ||
{{ : | {{ : | ||
\\ | \\ | ||
- | ------------ | + | |
=====Demo Requirements===== | =====Demo Requirements===== | ||
Line 77: | Line 95: | ||
- Connect the ADICUP3029 to the PC host via micro-USB cable. | - Connect the ADICUP3029 to the PC host via micro-USB cable. | ||
- From the PC, open //My Computer// and look for the DAPLINK drive, if you see this then the drivers are complete and correct. {{ : | - From the PC, open //My Computer// and look for the DAPLINK drive, if you see this then the drivers are complete and correct. {{ : | ||
- | - Download the .hex file from the provided link below. Simply drag and drop the .hex file to the DAPLINK drive in order to upload the program to the ADICUP3029. The DS2 (red) LED will blink rapidly. It will stop blinking and will stay ON once the uploading is done. | + | - Download the .hex file from the provided link below. Make sure to use the hex file corresponding to the input mode you configured. Simply drag and drop the .hex file to the DAPLINK drive in order to upload the program to the ADICUP3029. The DS2 (red) LED will blink rapidly. It will stop blinking and will stay ON once the uploading is done. |
- Disconnect then reconnect the EVAL-ADICUP3029 to the host computer. | - Disconnect then reconnect the EVAL-ADICUP3029 to the host computer. | ||
\\ | \\ | ||
Line 86: | Line 104: | ||
<WRAP round 80% download> | <WRAP round 80% download> | ||
- | Prebuilt CN0548 Hex File | + | |
- | * {{ : | + | Prebuilt CN0548 Hex File |
+ | * [[repo> | ||
+ | * [[repo> | ||
Complete CN0548 Source Files | Complete CN0548 Source Files | ||
* [[repo> | * [[repo> | ||
</ | </ | ||
- | \\ | ||
- | ====PyADI-IIO | + | ===Using CrossCore Embedded Studio==== |
+ | - Open CrossCore Embedded Studio and import the project into your workspace as detailed in [[: | ||
+ | - Once ready, you can opt to generate your own .hex file and use the first method to program the EVAL-ADICUP3029 or you can use a debug session by following the quickstart guide. | ||
- | [[/ | ||
- | ===Installing | + | ===Code Snippet from the CCES Project=== |
- | - There are minimal variations in installing | + | In case you want to generate your own hex file to be used, there are two attributes from the AD7798/ |
- | - Upon performing the OS-specific steps, we will also be needing the matplotlib package for the plotting of data: < | + | \\ {{ : |
- | < | + | It is important to set the polarity of the ADC according to your configuration and application. When the polarity is set to unipolar, effectively restricting the user to follow the polarity of the terminals, the maximum bit resolution of the ADC is used in its conversion compared as to when the polarity is set to bipolar where the bit resolution is equal to (n-1) bits where n is the maximum bit resolution of the ADC. |
+ | \\ \\ | ||
+ | The other important attribute is the gain. The gain attribute corresponds to the internal gain of the ADC. A user can apply an internal gain to the ADC allowing the differential ADC input to be amplified. This feature can come in handy when dealing with small signals but the user must take precaution as applying an internal gain effectively decreases the input rating of the board. It is highly recommended to read and consult the datasheet of the ADC before creating a customized hex file. | ||
+ | \\ \\ | ||
+ | |||
+ | ---- | ||
+ | ====PyADI-IIO | ||
+ | PyADI-IIO | ||
+ | |||
+ | <note tip> | ||
+ | Not yet familiar with PyADI-IIO? | ||
+ | </ | ||
\\ | \\ | ||
Line 108: | Line 139: | ||
===Starting a new session === | ===Starting a new session === | ||
- | - Download the given python script below and note where the file is located, you may opt to relocate the file to a different folder or directory. Using a terminal, navigate to the location of the file and run the script. < | + | - Download the given python script below and note where the file is located, you may opt to relocate the file to a different folder or directory. Using a terminal, navigate to the location of the file and run the script. < |
- Upon running the script, some general reminders regarding the board usage will be displayed. Make sure to read these reminders before proceeding. Press the //Enter// key to proceed. {{ : | - Upon running the script, some general reminders regarding the board usage will be displayed. Make sure to read these reminders before proceeding. Press the //Enter// key to proceed. {{ : | ||
- As mentioned earlier, the board has a memory feature that allows the user to quickly configure the sample code using the configuration from the last session. The user can decide whether to reuse the previous setting or set up a new configuration. The next items will discuss the program flow given that no session record file is found i.e. first run of the sample code. {{ : | - As mentioned earlier, the board has a memory feature that allows the user to quickly configure the sample code using the configuration from the last session. The user can decide whether to reuse the previous setting or set up a new configuration. The next items will discuss the program flow given that no session record file is found i.e. first run of the sample code. {{ : | ||
Line 121: | Line 153: | ||
===Memory Feature=== | ===Memory Feature=== | ||
- | {{ : | + | {{ : |
\\ | \\ | ||
==== Video Guides ==== | ==== Video Guides ==== | ||
Line 135: | Line 167: | ||
<WRAP round 80% download> | <WRAP round 80% download> | ||
- | * {{ : | + | [[https:// |
- | * {{ : | + | * Schematic |
- | * {{ : | + | * Bill of Materials |
- | * {{ : | + | * Gerber Files |
+ | * Allegro Project | ||
</ | </ | ||
- | \\ | + | |
- | ------------ | + | |
===== Registration ===== | ===== Registration ===== | ||
<WRAP round tip 80% > | <WRAP round tip 80% > | ||
- | Receive software update notifications, | + | Receive software update notifications, |