Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I use a modify version of AnalogIn 2 Example to sampling audio from a Nordic nFR52 DK SAADC:
include the mbed library with this snippet
#include "mbed.h" AnalogIn input(A0); int main() { uint16_t samples[40000]; printf("Recording start:\n\r"); for(int i=0; i<40000; i++) { samples[i] = input.read_u16(); wait(0.000125f); } printf("Recording stop and result:\n"); for(int i=0; i<40000; i++) { printf("%d ",samples[i]); } }Why the code stop to work with 40000 samples but it's working with 8000?
Thanks in advance
Marco