Bug in system_adc_read_fast SDK version 2.0.0(656edbf)

honio
Posts: 2
Joined: Fri Feb 10, 2017 12:57 am

Bug in system_adc_read_fast SDK version 2.0.0(656edbf)

Postby honio » Thu Feb 16, 2017 5:39 pm

Hi,

i was using the ADC API from your SDK version 2.0.0(656edbf) (NONOS).
If i read the documentation and the .h file i see that the argument adc_num in:

Code: Select all

void   system_adc_read_fast   (uint16   *adc_addr,   uint16   adc_num,   uint8   
adc_clk_div)


is a 16bit unsigned integer. Interestingly it behaves though like a uchar8 parameter. From 1 to 255 the
function works propperly and gives the correct results. Whenever i set the parameter higher than 255 the function
stays in a endless loop and the system restarts with the watchdog.
Could you please check and give a patch for the adc_num limitation of 255?

Thanks

Who is online

Users browsing this forum: No registered users and 2 guests