|
Hello all,
I am evaluating a nanoCore12 (40 pin) with docking module. I would like to measure at a fixed rate 6 analog values. The A/D example available, show how 1 channel is measured, however the sampling rate is not considered. I must sample the 6 channels, at or faster than 600sample/s; it is important for the sampling rate to be consistent.
Any hints / examples?
I have tried timing the board and have questions. If I set up the A/D to take 1 measurement (A.ADC_Start (WAIT, ADC_MODE_8ONCE)), start it and then read, for every sample, a conversion takes about 9 microseconds. If I set up the A/D for A.ADC_Start (WAIT, ADC_MODE_8CONTINUOUS), I can get A/D values in less than 2microseconds; it seems too fast... How do I know if I get a new converted value, or if I just keep many times the last converted value, until it gets overwritten by a new conversion? The documentation talks about a Done function for the A/D (A.ADC_Done (status)), however the compiler does not like it (ie the function does not seem to be in the library)?
Daniel
|