Hello there,
I am a bit confused on who controls the SPI clock frequency coming out of SPI CLOCK pin?
- Is it LSPCLK?
- Is it the baud rate register? SPIBRR?
- What is PCLKCR8?
SPI data capturing works with rising or falling edge of the SPI Clock? Then what is Baud rate ? If the clock frequency is high then rising/ falling edges are high in number so what does SPIBRR does with respect to LSPCLK?
My LSPCLK is at 50MHz, I am looking for 5MHz SPI clock. Do I have to write a value of (10 or 11) in SPIBRR to get 5Mhz?
Regards
Varun