Skip to main content
TBles.1
Associate
September 8, 2022
Solved

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

  • September 8, 2022
  • 1 reply
  • 1163 views

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.
Best answer by ODOUV.1

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
September 12, 2022

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.