This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Getting current radio status nRF51

Hello,

I've overcome most of my problems using this wonderful Q&A system from other people. Recently I've moved from a nRF8001 + MCU to a nRF51

Using SDK 8.1.1, keil and the ble_uart example (S110) I've implemented an RTC (app_timer) on LCD just fine but when the advertising packet syncs up with SPI to LCD communication it glitches the display until the next write one second later. I'm advertising every 2 seconds with no timeout and writing to SPI every second.

In my two chip nRF8001 system I could just RDY line interrupt in the middle of any part of the user code. What am I missing with the SoftDevice ?

What is the best way to overcome this problem? either by pausing the radio until my application has finished or by pausing the application until a known space is available between radio events. If so what are the useful bits or SoftDevice event calls I should know. Nordic documentation is great but a little chewy for a beginner who never worked with anything like a SoftDevice

Many Thanks.

  • Did some reading. Doing some reading. Made this...

    
    err_code = ble_radio_notification_init(NRF_APP_PRIORITY_LOW,
                                           NRF_RADIO_NOTIFICATION_DISTANCE_800US,
                                           radio_notification_handler );
    

    radio_notification_handler just toggles a pin. Since i've been power measuring on the scope I could see the pin noise was matching the power consumption. Oops I thought my decoupling was good enough. 100uF fixed the glitching. Must have been going in and out of threshold for the LCD.

    Feeling silly now but learned something. Nothing lost, something gained.

Related