[En-Nut-Discussion] ADCInit bug?

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Tue Aug 15 17:13:35 CEST 2006


Hi all,

long time ago this bug was reported:

> If I don't call ADCSetPrescale( ) after ADCInit(), then the ADC does not 
> return valid data. Yet ADCInit() includes a call to ADCSetPrescale(), so 
> it should not be needed for the default prescaler of 64. I am  using 4.0.2.

I now stumbled into the same problem. Although the adc driver is my own
code, I don't understand the problem.

Does anybody experienced the same problems and found a reason or
explenation what's going wrong?

So instead of simply caling ADCInit(); I call:

ADCInit();
ADCSetPrescale(ADC_PRESCALE_DIV64);
...

With older NutOS Version this was not necessary. Obviously the ADC code
does not have changed much in the last time.

Any suggestions?

Best regards,

Ole Reinhardt


-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list