ADC_ETC initial delay units?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ADC_ETC initial delay units?

399件の閲覧回数
gary_metalle
Contributor III

Hi.

I'm using the imxrt1052 ADC and ADC_ETC to measure a couple of supply voltages. I would like to add an initial delay so that the voltages stabilize to the ADC input before sampling. There is an initialDelay member to the adc_etc_trigger_config_t struct but it's not clear what the units are?

The reference manual says something about 'counter ticks', so I assume this is something to do with the ADC clock? Is there a register I can read this value from so that I can calculate a real delay in microseconds or milliseconds?

For now I've inserted a delay of 100000000U which is obviously a high number, indicating that whatever units this 'counter' is using, are quite small.

FYI: There are FETs used to only turn on the input to the ADC when I want to take a measurement, which is why I need a bit of time for the voltage to stabilize before sampling.

タグ(2)
0 件の賞賛
返信
0 返答(返信)