Both sides previous revisionPrevious revision | |
resources:tools-software:linux-drivers:iio-adc:axi-adc-hdl [18 Mar 2021 17:54] – [Supported Boards] Michael Hennerich | resources:tools-software:linux-drivers:iio-adc:axi-adc-hdl [13 Jun 2022 13:11] (current) – [Driver testing] Michael Hennerich |
---|
</xterm></WRAP> | </xterm></WRAP> |
| |
| === External Synchronization === |
| |
in_voltage0_test_mode:off | The [[resources:fpga:peripherals:jesd204:jesd204_tpl_adc|ADC TPL HDL]] core supports the [[resources:fpga:peripherals:jesd204:jesd204_tpl_adc#External_synchronization|EXT_SYNC]] feature, allowing to synchronize multiple channels within a ADC or across multiple instances. |
| This feature can also synchronize between the [[resources:fpga:peripherals:jesd204:jesd204_tpl_adc|ADC TPL HDL]] and [[resources:fpga:peripherals:jesd204:jesd204_tpl_dac|DAC TPL HDL]] core. |
| |
| There are two device attributes which allows controlling this feature: |
| ''sync_start_enable'' and ''sync_start_enable_available'' reading the |
| later returns the available modes which depend on HDL core synthesis |
| parameters. The options are explained below. Reading 'sync_start_enable' |
| returns either 'arm' while waiting for the external synchronization |
| signal or 'disarm' otherwise. |
| |
| * ''arm'': Setting this key will arm the trigger mechanism sensitive to an external sync signal. Once the external sync signal goes high it synchronizes channels within a ADC, and across multiple instances. This key has an effect only the EXT_SYNC synthesis parameter is set. |
| |
| * ''disarm'': Setting this key will disarm the trigger mechanism sensitive to an external sync signal. This key has an effect only the EXT_SYNC synthesis parameter is set. |
| |
| * ''trigger_manual'': Setting this key will issue an external sync event if it is hooked up inside the fabric. This key has an effect only the EXT_SYNC synthesis parameter is set. |
| |
| == Example: == |
| |
| <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
| <xterm> |
| root@analog:/sys/bus/iio/devices/iio:device3# **cat sync_start_enable_available** |
| **arm disarm trigger_manual** |
| root@analog:/sys/bus/iio/devices/iio:device3# **cat sync_start_enable** |
| **disarm** |
| root@analog:/sys/bus/iio/devices/iio:device3# **echo arm > sync_start_enable** |
| root@analog:/sys/bus/iio/devices/iio:device3# **cat sync_start_enable** |
| **arm** |
| root@analog:/sys/bus/iio/devices/iio:device3# **echo trigger_manual > sync_start_enable** |
| root@analog:/sys/bus/iio/devices/iio:device3# **cat sync_start_enable** |
| **disarm** |
| </xterm></WRAP> |
===== Buffer management ===== | ===== Buffer management ===== |
| |