Anonymous
Not applicable
Nov 06, 2012
12:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 06, 2012
12:54 PM
I am facing problem with receiving multiple data bytes. I don't know whether the way i have implemented is correct or not.
I have enabled interrupt of SPIs as interrupt on RX_FIFO_NOT_EMPTY.
In the isr i read the no of. bytes received SPIS_ReadRxBufferSize and display the values on LCD directly.
Initially i had set buffer size of 4 and hence i was just able to get only 1 byte of data even on sending 3 bytes as no. of bytes SPIS_ReadRxBuffer was returning only 1(even datasheet says it provides 1).
So I changed to more than 4 bytes buffer. But still i am unable to receive the bytes.
Any solutions ??
Labels
- Labels:
-
PSoC 5LP
2 Replies
Nov 06, 2012
01:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 06, 2012
01:22 PM
Usually the interrupt has to be reset which normally is done by reading the RxStatusRergister.
Happy coding
Bob
Anonymous
Not applicable
Nov 07, 2012
04:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 07, 2012
04:20 AM
Uploading your project may help.