Search found 75 matches
- Thu Mar 05, 2020 11:38 am
- Forum: General discussion
- Topic: Writing to an SD card very slow?
- Replies: 4
- Views: 5490
Writing to an SD card very slow?
Hi, i'm trying to write samples from an ADC to an SD card at 16,000HZ, but i am getting terrible SD card write speeds (around 8KB/s)? SD card: https://www.amazon.co.uk/Kingston-SDCS-32GB-MicroSDClass-Included/dp/B079GTYCW4 MCU: STM32 L452RE This code collects and writes samples to the SD card for 1 ...
- Thu Feb 13, 2020 2:39 pm
- Forum: General discussion
- Topic: SAI1 interface receive parameter?
- Replies: 2
- Views: 3674
Re: SAI1 interface receive parameter?
Yeah i've read these resources, its just that the parameter Size isn't documented anywhere, and i can't find documentation for hsai->XferSize or hsai->XferCount either so i'm sorta guessing here. Looking at the source, i think it depends on your data size as to how the HAL_SAI_Receive() behaves ...
- Thu Feb 13, 2020 12:14 pm
- Forum: General discussion
- Topic: SAI1 interface receive parameter?
- Replies: 2
- Views: 3674
SAI1 interface receive parameter?
Hi,
When using the SAI protocol i'm not sure what parameter to pass as Size for the HAL_SAI_Receive() function?
I posted a thread here but doesn't anyone know?
https://community.st.com/s/question/0D5 ... -parameter
When using the SAI protocol i'm not sure what parameter to pass as Size for the HAL_SAI_Receive() function?
I posted a thread here but doesn't anyone know?
https://community.st.com/s/question/0D5 ... -parameter
- Wed Jan 15, 2020 8:59 pm
- Forum: General discussion
- Topic: [HELP] Configuring the ADC to run at a higher sample rate.
- Replies: 1
- Views: 3797
Re: [HELP] Configuring the ADC to run at a higher sample rate.
Update: Using this code, if i change the adcConfiguration.Init.ClockPrescaler it does change the sample rate, but the channel is printing the the same numbers over the serial port continuously? // ADC configuration adcConfiguration.Instance = ADC1; adcConfiguration.Init.ClockPrescaler = ADC_CLOCK ...
- Wed Jan 15, 2020 8:44 pm
- Forum: General discussion
- Topic: [HELP] Configuring the ADC to run at a higher sample rate.
- Replies: 1
- Views: 3797
[HELP] Configuring the ADC to run at a higher sample rate.
Hi, I'm working on a project where i need to sample a microphone at a sample rate of >16,000Hz. Using the built in analogRead() i can manage a sample rate of ~9000Hz. See below is the sequence of commands i'm using to try to configure the ADC prescaler to DIV1 to increase its speed, i have used this ...