Hi all,
I wrote a minimal FFT implementation, nothing special, just eye candy. Now I want to sample a audio signal with a sample frequency of 44100 Hz. The obvious newbie way to do this:
void timerTick() {
// Ticks every 1/44100 s
static int pInput;
input[pInput++] = - 0.51;
if(pInput > 31) {
ticker.detach();
pInput = 0;
done = true;
}
}
Although the ticker works fine at generating the correct tick frequency this approach yields a sample frequency of about 24000Hz due to the slow conversion.
I searched the forum and found the ADC full library, but that doesn't compile for the LPC11U24, probably because it accesses some LPC1738 specific SFR's.
Therefore, being new to this microcontroller. Does someone have a small example snippet that sets up the ADC on the LPC11U24.
Thanks in advance,
KK .
Hi all,
I wrote a minimal FFT implementation, nothing special, just eye candy. Now I want to sample a audio signal with a sample frequency of 44100 Hz. The obvious newbie way to do this:
Although the ticker works fine at generating the correct tick frequency this approach yields a sample frequency of about 24000Hz due to the slow conversion.
I searched the forum and found the ADC full library, but that doesn't compile for the LPC11U24, probably because it accesses some LPC1738 specific SFR's.
Therefore, being new to this microcontroller. Does someone have a small example snippet that sets up the ADC on the LPC11U24.
Thanks in advance,
KK .