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 [11 Jan 2022 12:08] – [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 22: | Line 22: | ||
{{ : | {{ : | ||
\\ | \\ | ||
- | ------------ | + | |
===== 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 38: | 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 47: | Line 64: | ||
{{ : | {{ : | ||
\\ | \\ | ||
- | ------------ | + | |
=====Demo Requirements===== | =====Demo Requirements===== | ||
Line 87: | 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> | ||
</ | </ | ||
+ | |||
+ | ===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. | ||
+ | |||
===Code Snippet from the CCES Project=== | ===Code Snippet from the CCES Project=== | ||
In case you want to generate your own hex file to be used, there are two attributes from the AD7798/ | In case you want to generate your own hex file to be used, there are two attributes from the AD7798/ | ||
\\ {{ : | \\ {{ : | ||
- | It is important to set the polarity of the ADC according to your configuration and application. When the polarity is set to unipolar, 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. | + | 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. | 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 ==== | ||
+ | PyADI-IIO is a python abstraction module for ADI hardware with IIO drivers to make them easier to use. This module provides device-specific APIs built on top of the current libIIO python bindings. These interfaces try to match the driver naming as much as possible without the need to understand the complexities of libIIO and IIO. | ||
- | [[/ | + | <note tip> |
- | + | Not yet familiar | |
- | ===Installing and Setting up the PyADI-IIO | + | </ |
- | - There are minimal variations in installing PyADI-IIO depending on your operating system. | + | |
- | - Upon performing the OS-specific steps, we will also be needing the matplotlib package for the plotting of data: < | + | |
- | < | + | |
\\ | \\ | ||
Line 118: | 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 131: | Line 153: | ||
===Memory Feature=== | ===Memory Feature=== | ||
- | {{ : | + | {{ : |
\\ | \\ | ||
==== Video Guides ==== | ==== Video Guides ==== | ||
Line 145: | 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, |