How to change SPI speed in code?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to change SPI speed in code?

1,149 次查看
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 项奖励
回复
0 回复数