cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

Gintaras
New Contributor II

Hi,

I had to enable the continuous scanning myself in HAL library to get the ADC running continuously.

I have modified the library mtb_shared\mtb-hal-cat1\latest-v1.X\COMPONENT_CM4\source\cyhal_adc.c

in function cy_rslt_t cyhal_adc_configure(cyhal_adc_t *obj, const cyhal_adc_config_t *config)

Line 1103:

if(config->continuous_scanning)
{
obj->continuous_scanning = true;
obj->conversion_complete = false;
Cy_SAR_StartConvert(obj->base, CY_SAR_START_CONVERT_CONTINUOUS);
}

Before it was like  shown below:

Line 1103:

if(obj->continuous_scanning)
{
obj->conversion_complete = false;
Cy_SAR_StartConvert(obj->base, CY_SAR_START_CONVERT_CONTINUOUS);
}

 

BR,

Gintaras

0 Likes
1 Reply
Vasanth
Moderator
Moderator

Hi Gintaras,

Thanks for reporting the issue. Let's check this at our side and get back to you.

Best Regards,
Vasanth 

0 Likes
Top labels