11 years, 2 months ago.

Data conversion using read funtion

Hi,

I have used the read function to read the equivalent digital float value of an analog signal. However I have a question on the hardware aspect!

1. ADC is a hardware ckt, so at any given time it can sample the analog input, and convert to digital value! 2. Is the conversion done only when read function is executed?

Regards, Manas

1 Answer

11 years, 2 months ago.

Hi Manas,

Yes, when you call the read() function of AnalogIn, the ADC sample sequence is started, read and returned as part of that action. So conversion is only done when the read() function is executed.

Simon

Accepted Answer