imxrt1064 ADC continuous conversion

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imxrt1064 ADC continuous conversion

1,439 Views
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 Kudos
Reply
3 Replies

1,418 Views
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 Kudos
Reply

1,408 Views
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 Kudos
Reply

1,420 Views
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 Kudos
Reply