Skip to main content
TBles.1
Associate
Sep 8, 2022 8:23 AM UTC
Solved

How do I accurately change the sample rate on the SPC560P?

My question is how to set the sample rate exactly? I know that I have to set it via the CTR register and there via the values INPCMP and INPSAMP. I also know where to set the values in the LLD-Config. However, I do not understand which change of the values causes what exactly, so how the sample rate is then calculated.

I have already calculated the data from the data sheet with my values but I always come to other values as they are in the Config.

Can someone help me here or give an example for a specific sample rate (eg 10kHz)?

Thanks a lot

This topic has been closed for replies.
ODOUV.1
ODOUV.1Best answer
ST Employee
Sep 12, 2022 3:49 PM UTC

Hello,

I recommend you to read the chapter "ADC sampling and conversion timing" in Reference Manual about the CTR0 fields to control ADC timings.

Best regards.

1 reply

ODOUV.1
ODOUV.1Best answer
ST Employee
Sep 12, 2022 3:49 PM UTC

Hello,

I recommend you to read the chapter "ADC sampling and conversion timing" in Reference Manual about the CTR0 fields to control ADC timings.

Best regards.