This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
playground:playground [10 Nov 2020 03:18] – [EV1HMC8362LP6G/EV1HMC8364LP6G User Guide] Aaron Paulo Heredia | playground:playground [05 Apr 2024 13:03] (current) – Edit Tinaco Mariel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ====Testing==== | + | |
- | ====Evaluating the HMC8362/ | + | |
+ | ===== Supported Devices ===== | ||
+ | * [[adi> | ||
- | {{: | + | ===== Evaluation Boards ===== |
- | [[#Pin Map|Pin Map link]] | + | * [[adi> |
- | A brand new test: blah blah blah | + | |
- | <WRAP tip>For help/ | + | ===== Description ===== |
+ | This is a Linux industrial I/O (IIO) subsystem driver, targeting single channel DAC. The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc). See IIO for more information. | ||
+ | See [[software: | ||
- | ====== | + | {{ : |
- | ====== . ====== | ||
- | ====== | + | ====== |
+ | ===== Status ===== | ||
- | ====== | + | ^ Source ^ Mainlined? ^ |
+ | | [[git.linux.org> | ||
+ | ===== Files ===== | ||
+ | ^ Function ^ File ^ | ||
+ | | driver | ||
+ | | include | ||
+ | | Documentation | ||
+ | ====== Hardware configuration ====== | ||
+ | ==== Device tree example ==== | ||
+ | The following example instantiates the ad8460 driver for an AD8460 device connected on the SPI bus to the chip-select line 0. | ||
+ | < | ||
+ | #include < | ||
+ | #include " | ||
+ | #include " | ||
+ | / { | ||
+ | clocks { | ||
+ | sync_ext_clk: | ||
+ | # | ||
+ | compatible = " | ||
+ | clock-frequency = < | ||
+ | clock-output-names = " | ||
+ | }; | ||
+ | }; | ||
+ | }; | ||
+ | & | ||
- | ====== Please select your scenario ====== | + | tx_dma: tx_dmac@44000000 { |
- | | + | compatible |
- | - [[#mbed microcontroller and AD5677R evaluation board|I am using my own microcontroller board that is mbed compatible and an AD5677R evaluation board]] | + | reg = < |
- | - [[#mbed microcontroller and AD5677R evaluation board|I am using my own microcontroller board that is not mbed compatible and an AD5677R evaluation board]] | + | interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>; |
- | | + | clocks = <& |
+ | #dma-cells = <1>; | ||
- | ====== SDP-K1 and AD5677R evaluation board ====== | + | adi, |
+ | # | ||
+ | #address-cells = <1>; | ||
+ | dma-channel@0 { | ||
+ | reg = <0>; | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | }; | ||
+ | }; | ||
+ | }; | ||
+ | }; | ||
- | ===== Hardware setup ===== | + | & |
- | * [[https:// | + | status = " |
- | * [[https:// | + | |
- | {{ : | + | |
- | - Connect the EVAL-AD5677R to the SDP-K1 controller board. | + | |
- | - Connect the SDP-K1 controller board to your computer over USB. | + | |
- | ===== Software setup ===== | + | ad8460: dac@0 { |
- | * [[https:// | + | compatible |
- | * [[https:// | + | reg = < |
- | * [[https:// | + | spi-max-frequency |
- | * [[https:// | + | adi, |
+ | adi,ilim-microamp = <100000 100000>; | ||
+ | adi,vlim-microvolt = <(-40000000) 40000000>; | ||
+ | adi,temp-lim-millicelsius = < | ||
- | The software stack is structured in the following way: | + | clocks |
- | {{ : | + | clock-names = " |
- | - | + | |
- | - This driver defaults to supporting the AD5686R. | + | |
- | - | + | |
- | - | + | |
- | - After a successful compile a binary will be downloaded to your computer - store this on your drive. | + | |
- | - Drag and drop this binary to the USB drive hosted by your controller board. | + | |
- | - Start up a serial terminal emulator (e.g. Tera Term) | + | |
- | - Find the com-port your controller board is connected on and select it. | + | |
- | - Set the baud-rate for 115200 | + | |
- | - Reset the controller board and connect. | + | |
- | - Use the menu provided over the terminal window to access the evaluation board. | + | |
- | ====== mbed microcontroller and AD5677R evaluation board ====== | + | |
- | ===== Hardware setup ===== | + | |
- | {{ : | + | |
- | * [[https:// | + | |
- | * [[https:// | + | |
- | ==== Quick start ==== | + | dma-names |
+ | dmas | ||
+ | }; | ||
+ | }; | ||
- | - Connect the SPI lines from the EVAL-AD5677R to the SPI lines of your microcontroller board. | + | </ |
- | - Connect your micrcontroller board to your computer. | + | |
+ | ====== Driver testing ====== | ||
+ | If the driver correctly detected the device, the " | ||
- | ===== Software setup ===== | + | < |
- | - Go to the link of the code provided above in the ' | + | root@linaro-ubuntu-desktop: |
- | | + | Library version: 0.24 (git tag: accb7b5) |
- | | + | Compiled with backends: local xml ip usb serial |
- | | + | IIO context created with local backend. |
- | | + | Backend version: 0.24 (git tag: accb7b5) |
- | | + | Backend description string: Linux analog 6.1.0-271638-g3dfbf1932ce9-dirty #348 SMP PREEMPT Fri Apr 5 16:48:16 CST 2024 armv7l |
- | - Find the com-port your controller board is connected | + | IIO context has 9 attributes: |
- | - Set the baud-rate for 115200 | + | hdl_system_id: |
- | | + | |
- | - Use the menu provided over the terminal window to access the evaluation board. | + | |
- | + | hw_mezzanine: | |
- | The software stack is structured in the following way: | + | |
- | {{ :resources: | + | |
- | + | | |
- | + | local, | |
- | + | uri: local: | |
- | + | IIO context has 4 devices: | |
- | Quick start steps: | + | |
- | - | + | 1 channels found: |
- | - | + | temp1: (input) |
- | - Go to the link of the code provided above in the ' | + | 3 channel-specific attributes found: |
- | - Ensure SDP-K1 controller board is selected (top right of online-compiler page). | + | |
- | | + | |
- | | + | |
- | | + | No trigger on this device |
- | | + | |
- | - Find the com-port your controller board is connected on and select it. | + | 9 channels found: |
- | | + | voltage5: vccoddr |
- | | + | 3 channel-specific attributes found: |
- | | + | |
- | | + | |
- | ====== Features ====== | + | |
- | | + | |
- | | + | 3 channel-specific attributes found: |
- | * Tiny Package: 3 mm × 3 mm 16-lead LFCSP or 16-lead TSSOP | + | |
- | | + | attr 1: raw value: 1382 |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | 3 channel-specific attributes found: |
- | | + | attr |
- | | + | |
- | | + | |
- | * −40°C to +105°C temperature range | + | voltage7: vrefn (input) |
- | + | 3 channel-specific attributes found: | |
- | ====== Introduction ====== | + | attr 0: label value: vrefn |
- | The AD568xR are quad, 12-/14-/16-bit buffered voltage-out | + | |
- | DACs. The devices include a 2.5V internal reference (enabled | + | |
- | by default) coupled with a gain select pin giving a full scale | + | voltage1: vccaux (input) |
- | output of 2.5V (GAIN=1) or 5V(GAIN=2). All devices operate | + | 3 channel-specific attributes found: |
- | from a single 2.7 V to 5.5 V supply, are guaranteed monotonic | + | |
- | by design and exhibit less than 0.1% FSR gain error and 2mV | + | |
- | offset error performance. The devices are housed in a 3mm X | + | |
- | 3mm LFCSP and TSSOP packages. | + | |
- | The part also incorporates a power-on reset circuit that ensures | + | 3 channel-specific attributes found: |
- | the DAC output powers up to zeroscale or midscale and | + | |
- | remains there until a valid write takes place. | + | |
- | {{ :playground:MainWindow.jpg? |}} | + | |
- | ===== Block Diagram ====== | + | voltage3: vccpint |
- | {{ :playground:ad5686r_block_diagram.png? | + | 3 channel-specific attributes found: |
- | ====== Pin Map ====== | + | |
- | {{:playground:16lfcsppinout.png? | + | attr |
- | ====== Quick Setup Connection Table ====== | + | |
- | ^ Mnemonic | + | |
- | | VOUTA | Analog Output Voltage from DAC A | | + | 3 channel-specific attributes found: |
- | + | | |
- | + | | |
- | ====== Level 1 Headline ====== | + | |
- | * [[/ | + | 2 device-specific attributes found: |
- | + | | |
- | + | | |
- | ===== Level 2 Headline ===== | + | No trigger on this device |
- | + | iio:device1: ad8460 | |
- | ==== Level 3 Headline ==== | + | 1 channels found: |
- | + | altvoltage0: | |
- | === Level 4 Headline === | + | 2 channel-specific attributes found: |
- | + | | |
- | == Level 5 Headline == | + | |
- | == Signal Picture == | + | 2 device-specific attributes found: |
- | {{:playground:cn0196_testshot.jpg? | + | |
- | + | | |
- | This is the CN-0196 Lab board. You can change the capacitors by resolder ones up to 50V specification instead of the used 25V electrolytic ones. | + | 5 debug attributes found: |
- | + | debug attr 0: apg_pattern_memory value: 0 0x2000 | |
- | =) | + | debug attr 1: shutdown_flag value: 0 |
+ | debug attr | ||
+ | debug attr | ||
+ | debug attr | ||
+ | No trigger on this device | ||
+ | | ||
+ | 0 channels found: | ||
+ | 2 device-specific attributes found: | ||
+ | | ||
+ | | ||
+ | No trigger on this device | ||
+ | </ |