Time stamp required for analog channels

14 Mar 2011

We need to scan the analog channels and send through serial UART. There is a need to register the time stamp of each scan.How can we solve this? Do we need to have any additional hardware example RTC?Any work around using mbed firmware routines?

14 Mar 2011

Hi,

Use code like

//Declaration
Timer adc_timing;

//Setup
adc_timing.reset();
adc_timing.start();

//Usage (store microseconds alongside your sample).
Timing01[i]=adc_timing.read_us();

//Afterwards
adc_timing.stop();

Happy coding!