[En-Nut-Discussion]Problem with ADC

Tommaso Fabbri atfabbri at gmail.com
Mon May 22 10:51:56 CEST 2006


Hi,
i have some questions about the adc converter of ethernut:

how can i obtain tha vault value?
Harald has written to me that i can obtain it with this operation:
Vadc = ADCRead() * Vref / 1024
is right?because i found diffent answers in the last discussions.
Cn i set the aref with this fuction: void *ADCSetRef* (adc_ref_t reference)?

how can i set the sampling frequency?
 and the last question is: int *ADCBufRead*
(u_short<http://www.ethernut.de/api/group__xgNutOS.html#ga1>*buf,
u_short <http://www.ethernut.de/api/group__xgNutOS.html#ga1> *read) int *
ADCBufWrite* (u_short <http://www.ethernut.de/api/group__xgNutOS.html#ga1>*buf,
u_short <http://www.ethernut.de/api/group__xgNutOS.html#ga1> *write) void *
ADCBufInit* (u_short <http://www.ethernut.de/api/group__xgNutOS.html#ga1>*buf)

what do these fuctions do?
with a buffer what can i do?
thanks for your helps.
Tommaso



More information about the En-Nut-Discussion mailing list