Hi,
I have a question about ADC reading in ble_app_uart__saadc_timer_driven__scan_mode in SDK 14.
Let's say I'm using a double buffer, and I have 3 ADC channels (so SAADC_SAMPLES_IN_BUFFER=3)
Now I look in p_event->data.done.p_buffer[ i ] . Is the following correct:
p_event->data.done.p_buffer[ 0 ] => Value of channel 0
p_event->data.done.p_buffer[ 1 ] => Value of channel 1
p_event->data.done.p_buffer[ 2 ] => Value of channel 2
I'm not sure because somehow I'm reading almost the same data from [0] and [2], and [1] is about x2 of the other too.
Data example:
201 | 420 | 201 |
199 | 418 | 201 |
201 | 416 | 199 |
201 | 414 | 200 |
199 | 413 | 196 |
194 | 409 | 195 |
197 | 413 | 197 |
198 | 414 | 196 |
195 | 410 | 192 |
197 | 413 | 199 |
198 | 416 | 196 |
198 | 417 | 199 |
197 | 413 | 198 |
200 | 415 | 197 |
200 | 417 | 198 |
197 | 415 | 197 |
196 | 410 | 195 |
196 | 409 | 194 |
195 | 411 | 194 |
200 | 415 | 199 |
Can you assist please?
Thanks