- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
i just want to receive no. of byte SLAVE side. Here in attached image used ISR (interrupt) on receiving side to receive the data.
Now, what happen i am able to received the no. of bytes and storing in buffer. But most of time it's to receive the data. after re sending 2, 3 time it's receive. i check on debug tool sender side there is no problem. they always sent correct data.
Can someone please help me out.
Regards
Asif
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Tags:
- spi
- spi issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi asre_4060076
The issue was due to the custom ISR conflicting with the component ISR. During any design, the goal is to keep the ISR as short as possible and do the firmware processing in a normal function. In your code, I moved the code from the ISR to the main function and increased the priority of the SPI component ISR (lower number = higher priority).
This code was working at my end now. Please try this out and let me know if it meets the requirement.
Thanks,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi asre_4060076
Can you please share the complete project so that we can debug the issue at our end?
Thanks and Regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi asre_4060076
The issue was due to the custom ISR conflicting with the component ISR. During any design, the goal is to keep the ISR as short as possible and do the firmware processing in a normal function. In your code, I moved the code from the ISR to the main function and increased the priority of the SPI component ISR (lower number = higher priority).
This code was working at my end now. Please try this out and let me know if it meets the requirement.
Thanks,
Hari