I am trying to configure SPI3 (on HS) at 25MHz. Looking at the SSP_pl022 spec and driver code, clock frequency is arrived at using SSPCLKOUT = SSPCLK / (CPSDVR x (1+SCR)).
Given that
- minimum value of CPSDVR is 2 and it should be a even value
- SCR can be 0-254
- system clock rate is 80MHz
I can either get 20MHz or 40MHz but nothing in between.
Any suggestions as to how I can set 25MHz clock frequency? Any way to change the system clock rate?
Thank you!