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

nRF51822 Radio interrupts

Hi developers, I recently had a problem with nRF51822 and radio interrupts. My situatios is quite clear but I cannot resolve the problem. I hope You will help me. Description: I got nRF51822-EK which contains host and slave device. On host device I configured radio to send some data every constant time (fot this case 100 ms) and on slave device in main program loop I configuring radio to receive after that startin radio, checking CRC, receiving data and at the end switching radio off. So this approach is working correctly. I tried to use another approach, so transmitter is configured the same but in receiver(slave) I configuring radio to receive, configuring interrupts (Payload event) starting radio and... I expected that when some data is received radio interrupt will occure I will check the type of interrupt, check data, stops radio and do the same sequence again. And there is my problem after start event radio stops in while loop which waits for setting up READY flag (when packet is received) and it stops whole program. What I want to do is that radio should work in background and waits till some data is received. If my description is not enought I will provide some examples of my code. Thanks in advance.

Related