SPI driver

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

SPI driver

Jump to solution
1,654 Views
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

Labels (2)
1 Solution
799 Views
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.

View solution in original post

3 Replies
800 Views
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.

799 Views
mandarbhat
Contributor II

Hi,

This code was helpful for me.

Thanks & Regards,

Mandar Bhat

0 Kudos
799 Views
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 Kudos