mirror of
https://github.com/apache/nuttx.git
synced 2025-12-16 17:56:38 +08:00
imxrt: add support for ADC triggering by an external signal
Config option IMXRT_ADCx_ETC can now be used to select an external HW trigger to be used instead of continous trigger. Continous trigger is used if IMXRT_ADCx_ETC = -1 (default option). Otherwise the source signal is routed through XBAR and used as a trigger. Hardware triggering is currently limited to maximum of 8 channels. HW trigger is automatically disabled if there are more than 8 channels. The external triggering was tested with PWM signal as a source. Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
@@ -87,6 +87,18 @@ ADC
|
||||
ADC driver with the successive approximation analog/digital converter. The lower-half of
|
||||
this driver is initialize by calling :c:func:`imxrt_adcinitialize`.
|
||||
|
||||
ADC module can use either continous trigger (next conversion is started as soon as the
|
||||
previous is finished) or hardware trigger. This option is selected by IMXRT_ADCx_ETC
|
||||
(x = 1, 2) config option. If IMXRT_ADCx_ETC = -1 then continous trigger is used. If
|
||||
corresponding XBAR number is put in IMXRT_ADCx_ETC then that signal is used to trigger
|
||||
the ADC conversion (for example PWM signal can be used as a source). For PWM XBAR options
|
||||
please refer to PWM chapter of this documentation.
|
||||
|
||||
Hardware triggering is currently limited to maximum of 8 channels. HW trigger is automatically
|
||||
disabled if there are more than 8 channels.
|
||||
|
||||
DMA is currently not supported for ADC modules.
|
||||
|
||||
CAN
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user