SPI driver

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

SPI driver

跳至解决方案
1,713 次查看
marcopalestro
Contributor II

Hi everybody,

     does anybody know if there is a working example for an SPI driver on Kinetis? I can only find a brief code snippet on a previous question on the forum, and a bunch of crap in KINETIS_120MHZ_SC package for K60 / K70 families.

Has anyone else ever seen a better example (maybe with interrupts!) ?

Thanx in advance

标签 (2)
1 解答
858 次查看
adriansc
Contributor IV

Hi,

As far as I know there are only PEx (Processor Expert) examples in sample packages. In the attachments you can find an .c file which has an SPI configuration: One module as Slave and the other as Master.

Hope this helps.

Regards.

在原帖中查看解决方案

3 回复数
859 次查看
adriansc
Contributor IV

Hi,

As far as I know there are only PEx (Processor Expert) examples in sample packages. In the attachments you can find an .c file which has an SPI configuration: One module as Slave and the other as Master.

Hope this helps.

Regards.

858 次查看
mandarbhat
Contributor II

Hi,

This code was helpful for me.

Thanks & Regards,

Mandar Bhat

0 项奖励
858 次查看
marcopalestro
Contributor II

Hi Adrian,

     Thank you for the code, it's similar to the example in KINETIS_120MHZ_SC package, but a little cleaner. It's a pity nobody seems to use interrupts...

Best regards!

0 项奖励