AnsweredAssumed Answered

How to change SPI speed in code?

Question asked by Barry Purtymun on Nov 9, 2017

Hello NXP,

 

I am using Kinetis Design Studio with a K60 chip.  I have a touch screen that needs to be initialized via SPI at 10 MHz or less.  The touch screen can communicate at 30 MHz after initialization. I have a bus clock speed of 60 MHz and need to change my SPI prescaler divider from 6 to 2 (10 MHz to 30 MHz) after I run my initialization code.  I used processor expert (SyncroMaster) to configure my SPI port.  Please advise how I should change my SPI bus speed after the touch screen has been initialized. 

 

Thank you. 

Outcomes