This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:fpga:altera:bemicro:ad5755 [05 Jan 2012 14:35] – Approved Andrei Cozma | resources:fpga:altera:bemicro:ad5755 [26 Jan 2021 01:21] (current) – update arrow links after their web site update Robin Getz | ||
---|---|---|---|
Line 13: | Line 13: | ||
====== Overview ====== | ====== Overview ====== | ||
- | This lab presents the steps to setup an environment for using the **[[adi> | + | This lab presents the steps to setup an environment for using the **[[adi> |
{{ : | {{ : | ||
- | For component evaluation and performance purposes, as opposed to quick prototyping, | + | {{page>common_sdp}} |
- | * a controller board, like the **[[resources/ | + | |
- | * an compatible Analog Devices SDP [[adi>sdp# | + | |
- | * corresponding PC software | + | |
- | The EVAL-SDP-CB1Z controller board is part of Analog Devices SDP providing USB 2.0 high-speed connectivity to a PC computer running specific component evaluation software. | + | |
Below is presented a picture of **SDP-B** Controller Board with the **EVAL-AD5755SDZ** Evaluation Board. | Below is presented a picture of **SDP-B** Controller Board with the **EVAL-AD5755SDZ** Evaluation Board. | ||
Line 35: | Line 31: | ||
* [[adi> | * [[adi> | ||
* [[adi>/ | * [[adi>/ | ||
- | * [[http://www.arrownac.com/solutions/ | + | * [[https://www.intel.com/content/ |
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
====== Getting Started ====== | ====== Getting Started ====== | ||
Line 47: | Line 42: | ||
Below is presented the list of required hardware items: | Below is presented the list of required hardware items: | ||
- | * Arrow Electronics [[http://www.arrow.com/bemicrosdk/|BeMicro SDK]] FPGA-based MCU Evaluation Board | + | * Arrow Electronics [[https://www.intel.com/content/www/ |
- | * [[http:// | + | * [[adi> |
* **EVAL-AD5755SDZ** evaluation board | * **EVAL-AD5755SDZ** evaluation board | ||
* Intel Pentium III or compatible Windows PC, running at 866MHz or faster, with a minimum of 512MB of system memory | * Intel Pentium III or compatible Windows PC, running at 866MHz or faster, with a minimum of 512MB of system memory | ||
Line 56: | Line 51: | ||
Below is presented the list of required software tools: | Below is presented the list of required software tools: | ||
- | * [[http:// | + | * [[http:// |
- | * [[https:// | + | * [[https:// |
- | * [[http:// | + | |
- | * {{: | + | |
The **Quartus II** design software and the **Nios II EDS** is available via the Altera Complete Design Suite DVD or by downloading from the web. | The **Quartus II** design software and the **Nios II EDS** is available via the Altera Complete Design Suite DVD or by downloading from the web. | ||
- | The **Micrium uC/Probe Trial** version is available via download from the web at [[http:// | + | After installation add to the “Path” system variable the entry "// |
+ | ===== Downloads ===== | ||
+ | * {{: | ||
===== Extract the Lab Files ===== | ===== Extract the Lab Files ===== | ||
- | Create a folder called “**// | + | Create a folder called “**// |
- | {{ : | + | {{ : |
====== ====== | ====== ====== | ||
Line 77: | Line 71: | ||
====== Quick Evaluation ====== | ====== Quick Evaluation ====== | ||
- | {{page> | ||
- | ====== | + | The next sections of this lab present all the steps needed to create a fully functional project that can be used for evaluating the operation of the ADI platform. It is possible to skip these steps and load into the FPGA an image that contains a fully functional system for the ADI platform evalution. |
- | {{page> | + | The first step of the quick evaluation process is to program the FPGA with the image provided in the lab files. Before the image can be loaded the **Quartus II Web Edition** tool or the [[https:// |
- | ====== NIOS II Software Design ====== | + | To load the FPGA image the first thing to do is to start a Nios2 Command Shell. To start the Nios II command shell on Windows platforms, on the Start menu, click ** All Programs **. On the **All Programs** menu, on the **Altera 13.0 Web Edition** submenu, on the **Nios II EDS 13.0** submenu, click ** Nios II 13.0 Command Shell **. The command shell is a Bourne-again shell (bash) with a pre-configured environment. |
- | {{page> | + | |
+ | {{ : | ||
- | ====== uC-Probe Interface ====== | + | After the shell was started up, the first thing is to change the current path to project' |
- | A notable challenge in embedded systems development is to overcome the lack of feedback that such systems typically provide. Many developers resort to blinking LEDs or instrumenting their code with //printf()// in order to determine whether or not their systems are running as expected. | + | ** cd /cygdrive/<//Disk Label//>/<// |
- | This section presents the steps required to install the **Micrium uC-Probe** software tool and to run the demonstration project for the ADI evaluation board. A description of the **uC-Probe** demonstration interface is provided. | + | |
- | ===== Configure uC-Probe ===== | + | {{ : |
- | Launch | + | To configure the **BeMicroSDK** and run the software application have to run a bash script called program_bemicro.sh, |
- | Select **uC-Probe** options. | + | {{ : |
- | * Click on the **uC-Probe** icon on the top left portion of the screen. | + | |
- | * Click on the **// | + | |
- | {{ : | + | If the last message is ** AD5755 OK **, it means that the configuration was successful and the PC is connected to the device through JTAG-UART. |
- | Set target board communication protocol as **//JTAG UART//** | + | The **AD5755** support |
- | * Click on the **// | + | |
- | * Select | + | |
- | {{ :resources:fpga:altera:bemicro:image067.png?400 }} | + | ^ **Command** ^ **Description** ^ |
+ | | **help?** | Display all available commands | | ||
+ | | **register? | ||
+ | | **register=** | Set a register value, the command has four arguments: register type, which can be data or control, register address, channel number and the desired value | | ||
+ | | **power?** | Display the power state of the dc-to-dc converters, DAC and internal amplifiers for the selected channel. The command has one argument | ||
+ | | **power=** | Set up the power state of the dc-to-dc converters, DAC and internal amplifiers for the selected channel. The command has two arguments: channel and 1 for ON and 0 for OFF | | ||
+ | | **range?** | Display the range of the selected channel. The command has one argument | ||
+ | | **range=** | Set the range of the selected channel. Has two argument: channel and range | | ||
+ | | **voltage?** | Display the output voltage of a specified channel. The command has one argument: channel | | ||
+ | | **voltage=** | Set the output voltage of a specified channel. The command using two arguments: channel and the desired value | | ||
+ | | **current? | ||
+ | | **current=** | Set the output current of a specified channel. The command using two arguments: channel and the desired value | | ||
- | Setup **//JTAG UART//** communication settings | + | <WRAP tip> |
- | * Select | + | |
- | * Press the **//Open File//** button to select | + | |
- | * Navigate | + | |
- | * Type the value **//1//** in the the **//Device Id//** window. | + | |
- | {{ : | + | ====== FPGA Design ====== |
+ | {{page> | ||
- | * Select **// | + | ====== NIOS II Software Design ====== |
+ | {{page> | ||
- | {{ : | ||
- | |||
- | * Press **// | ||
- | |||
- | ===== Load and Run the Demonstration Project ===== | ||
- | |||
- | * Click the **// | ||
- | |||
- | {{: | ||
- | |||
- | * Before opening the interface **uC-Probe** will ask for a symbols file that must be associated with the interface. If the lab was done according to the steps provided in the **Quick Evaluation** section, select the file **// | ||
- | |||
- | {{ : | ||
- | |||
- | * Run the demonstration project by pressing the **// | ||
- | |||
- | {{ : | ||
====== Demonstration Project User Interface ====== | ====== Demonstration Project User Interface ====== | ||
- | The following figure | + | This section |
- | + | The UART Terminal Interface can be started in two different way. First from Nios II command shell, | |
- | {{ : | + | |
- | + | ||
- | **Section A** is used to activate the board and monitor activity. The communication | + | |
- | + | ||
- | **Section B** is used to select the DAC channel. | + | |
- | + | ||
- | **Section C** is used to write data into the register selected by the Selection Slider. | + | |
- | + | ||
- | Options: | + | |
- | + | ||
- | * Write to DAC data register (individual channel write). | + | |
- | * Write to gain register (individual channel write). | + | |
- | * Write to gain register (all DACs). | + | |
- | * Write to offset register (individual channel write). | + | |
- | * Write to offset register (all DACs) . | + | |
- | * Write to clear code register (individual channel write). | + | |
- | + | ||
- | + | ||
- | **Section D** is used to read data from the register selected | + | |
- | + | ||
- | Options: | + | |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | * Read from Clear Code register (individual channel read). | + | |
- | * Read from Slew Rate control register (individual channel read). | + | |
- | * Read from Status register. | + | |
- | * Read from Main control register. | + | |
- | * Read from DC-to-DC control register. | + | |
- | + | ||
- | **Section E** is used to write data into the DAC n Control Register. | + | |
- | + | ||
- | Options: | + | |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | * Rset – Selects an internal or external current sense resistor for the selected DAC channel. | + | |
- | * DC-DC – Powers the dc-to-dc converter on the selected channel. | + | |
- | * OVRNG – Enables 20% overrange on voltage output channel only. No current output overrange available. | + | |
- | * Output Range – Selects the output range to be enabled. | + | |
- | + | ||
- | **Section F** is used to write data into the DC-DC Control Register. | + | |
- | + | ||
- | Options: | + | |
- | + | ||
- | * DC-DC Comp – Selects between an internal and external compensation resistor for the dc-to-dc converter. | + | |
- | * Phase – User programmable dc-to-dc converter phase (between channels). | + | |
- | * Frequency – DC-to-dc switching frequency. | + | |
- | * Max Voltage – Maximum allowed VBOOST_x voltage supplied by the dc-to-dc converter. | + | |
- | + | ||
- | **Section G** is used to write data into the Main Control Register. | + | |
- | + | ||
- | Options: | + | |
- | + | ||
- | * POC – The POC bit determines the state of the voltage output channels during normal operation. | + | |
- | * StartRead – Enable status readback during a write. | + | |
- | * EWD – Enable watchdog timer. | + | |
- | * WD Period – Select the timeout period for the watchdog timer. | + | |
- | * ShtCctLim – Programmable short-circuit limit on the VOUT_x pin in the event of a short-circuit condition. | + | |
- | * OutEn All – Enables the output on all four DACs simultaneously. | + | |
- | * DC-DC All – Powers up the dc-to-dc converter on all four channels simultaneously. | + | |
- | + | ||
- | **Section H** is used to write data into the Slew Rate Control Register. | + | |
- | + | ||
- | Options: | + | |
- | + | ||
- | * SE – Enable SE. | + | |
- | * SR Clock – Slew Rate Update Clock Options. | + | |
- | | + | |
- | **Section I** is used to write data into the Software Register. | + | <WRAP tip> |
- | Options: | + | If the nios2-terminal connected to the device the message ** AD5755 OK ** should appear at the Nios II Console. |
- | * User Bit – This bit is mapped to Bit D11 of the status register. | + | {{ : |
- | * Software Reset – Performs a reset of the AD5755. | + | |
+ | By using the command **help?**, can list out all the available commands for the current device, with a small description containing indications how to use them. | ||
+ | {{ : | ||
- | {{page> | + | The **AD5755** support the following commands, which can used to evaluate the **AD5755** converter: |
+ | ^ **Command** ^ **Description** ^ | ||
+ | | **help?** | Display all available commands | | ||
+ | | **register? | ||
+ | | **register=** | Set a register value, the command has four arguments: register type, which can be data or control, register address, channel number and the desired value | | ||
+ | | **power?** | Display the power state of the dc-to-dc converters, DAC and internal amplifiers for the selected channel. The command has one argument : channel | | ||
+ | | **power=** | Set up the power state of the dc-to-dc converters, DAC and internal amplifiers for the selected channel. The command has two arguments: channel and 1 for ON and 0 for OFF | | ||
+ | | **range?** | Display the range of the selected channel. The command has one argument : channel | | ||
+ | | **range=** | Set the range of the selected channel. Has two argument: channel and range | | ||
+ | | **voltage? | ||
+ | | **voltage=** | Set the output voltage of a specified channel. The command using two arguments: channel and the desired value | | ||
+ | | **current? | ||
+ | | **current=** | Set the output current of a specified channel. The command using two arguments: channel and the desired value | | ||
+ | ====== More information ====== | ||
+ | * [[ez> | ||
+ | * Example questions: {{rss> |