imxrt1064 ADC continuous conversion

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

imxrt1064 ADC continuous conversion

1,406件の閲覧回数
johannzimmerman
Contributor III

Hello everybody,

try in vain to operate the ADC2 in continuous mode.
I want to measure the ADC2 inputs 6,1,5,2 and 7 continuously.
My initialization:

uint8_t HAL_adc2_idx[ADC2_CH_MAX] = { 6, 1, 5, 2, 7};

ADC_GetDefaultConfig(&adcConfigStrcut);
adcConfigStrcut.enableOverWrite = true;
adcConfigStrcut.enableContinuousConversion = true;
ADC_Init(ADC2_ADDR, &adcConfigStrcut);
ADC_EnableHardwareTrigger(ADC2_ADDR, false);
ADC_DoAutoCalibration(ADC2_ADDR)
for(unsigned i = 0; i < ADC2_CH_MAX; i++)
{
adcChannelConfigStruct [ADC_HW_2].channelNumber = HAL_adc2_idx[i];
ADC_SetChannelConfig(ADC2_ADDR,i,&adcChannelConfigStruct[ADC_HW_2]);
}

I expected the results in every ADC-> R [x].
In ADC-> R [0] the value changes in all others is the value 0.
What am I doing wrong?
Can someone please help me there?
Thanks in advance.

0 件の賞賛
返信
3 返答(返信)

1,385件の閲覧回数
johannzimmerman
Contributor III

Hello Victor,
thanks for the explanation.
Can burst mode ADC be implemented on the IMXRT1064 (similar to the LPC4088 ADC)?
I really didn't understand how to use the registers Rx / HCx when measured.
If measured, only one ADC can be input at the same time. Or?

Regards
Johann

0 件の賞賛
返信

1,375件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Johann, 

Can burst mode ADC be implemented on the IMXRT1064 (similar to the LPC4088 ADC)?
The RT1064 ADC doesn't have the same IP as the LPC4088. 

If measured, only one ADC can be input at the same time. Or?
Could you please clarify this question? 

Regards, 
Victor 

0 件の賞賛
返信

1,387件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

I think that there's a misunderstanding of what Continuous Conversion actually does. Continuous conversion doesn't mean that it will make one conversion in one channel and then jump to the other channel and so on. Continuous conversions will take place in only one ADC channel.

Regards,
Victor  

0 件の賞賛
返信