How to change SPI speed in code?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change SPI speed in code?

743 Views
barrypurtymun
Contributor II

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. 

0 Kudos
0 Replies