Using SSP with interrupts and FIFO

3 replies [Last post]
JGold
Offline
Joined: 2012-07-24

I have been trying to use the LCP1767 SSP port in SPI mode. I can get it to work if I set the FIFO to 1 byte. If I set it to more, it mostly works, but sometimes I don't get all my read bytes back. Example, I'll send 20 bytes, and receive back only 19.

I am using linear buffers for the transmissions.

Does anyone have good working code using the FIFO and interrupts?

0
Your rating: None

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Lien.Nguyen
Offline
Joined: 2011-09-20

Hi,
Did you get it work?
I attach an example for you. Hope that it's useful. :)

Best Regards,
Lien

PreviewAttachmentSize
SSP_Int.zip143.24 KB
tushar
Offline
Joined: 2012-10-08

Hi,

I saw your post it was very helpful,
i went through the file u had uploaded but was unable to find EWARM folder as mentioned in the abstract of it.
I am using iar workbench for lpc1766 so i was unable to open it.

Please if you can help me out with it

Best regards
Tuhsar

Lien.Nguyen
Offline
Joined: 2011-09-20

Hi Tuhsar,
The example is got from lpc175x_6x repo at http://sw.lpcware.com/?p=lpc175x_6x.git&a=summary. IAR example is also available here.

Best Regards,
Lien

feedback