Can anyone give me a "for dummies" explanation of how to speed up the ADC a bit on a generic STM32F103 board?
I'm building a generator monitoring system and want to sample the 60 Hz output... I can probably make it work okay with the default sample rate, but if I could get a little improvement like 2x speed increase it would be great. I don't need to go nuts with DMA and multi-mHz sampling, but it seems like there might be some room for improvement by changing the ADC clock prescaler, I just can't figure out how to do it.
I've spent hours Googling and a lot of what I'm finding seems to revolve around a "adc_set_sample_rate" function, but when I add that to my code the compiler says it's undefined and I can't find what library it's supposed to be in! There also seem to be constants that go with it like "ADC_SMPR_1_5" but I can probably fake those if necessary.
I'm using the STMicroelectronics board defs with board = "Generic STM32F1 series" and board part number = "BluePill F103CB (or C8 with 128K)". Libraries I'm currently using are Adafruit_GFX, MCUFRIEND_kbv, TimerInterrupt_Generic, and ISR_Timer_Generic.