This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

When is the best time for Acquire the semaphore SPIS nRF51822

Hi Nordic,

I used PIC32 for SPI Master and nRF51822 SPIS slave. I used shortcut for my spis in nRF51822 and I need to know the right time of acquiring the semaphore and let the SPI Master to avoid reciving DEF (default) character by master. Since the shoetcut for END and Acquire event is used how can I know what time is the best time for release the semaphore and tell the master that now it can send the data?

Parents
  • Thank you so much stefan, I did it and it seems to work, I used shortcut END-ACQUIRED but at begining of code some time Acquired event happen without END event and since I release the semaphore before END event happen and Acquired it again after END event,so that in this case it never happen and SPI just send out DEF character for ever.

Reply
  • Thank you so much stefan, I did it and it seems to work, I used shortcut END-ACQUIRED but at begining of code some time Acquired event happen without END event and since I release the semaphore before END event happen and Acquired it again after END event,so that in this case it never happen and SPI just send out DEF character for ever.

Children
No Data
Related