SPI driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,708件の閲覧回数
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 解決策
853件の閲覧回数
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 返答(返信)
854件の閲覧回数
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.

853件の閲覧回数
mandarbhat
Contributor II

Hi,

This code was helpful for me.

Thanks & Regards,

Mandar Bhat

0 件の賞賛
853件の閲覧回数
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 件の賞賛