Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADC library sampling rate on Teensy 3.2 #20

Open
pmartinet opened this issue Jan 19, 2017 · 0 comments
Open

ADC library sampling rate on Teensy 3.2 #20

pmartinet opened this issue Jan 19, 2017 · 0 comments
Labels

Comments

@pmartinet
Copy link

Hi,
I'm working on Teensy 3.2, and using ADC lib to sample A2 pin input (ADC1).
I read the samples and pass them (collected in array of 2048 samples) to arm_cfft_radix4_f32 function in order to perform fft.
I need to know the frequency step of the 1024 samples of FFT and the frequency of the 1024-th fft element.

My ADC setup code is:
adc->setReference(ADC_REFERENCE::REF_1V2, ADC_1); adc->setAveraging(16); adc->setResolution(16); adc->setConversionSpeed(ADC_CONVERSION_SPEED::VERY_HIGH_SPEED); adc->setSamplingSpeed(ADC_SAMPLING_SPEED::VERY_LOW_SPEED);

Thanks in advance.
Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants