Software Serial for nRF52832

Hi,

I've reliably implemented a Software Serial library on the nRF52832 using GPIOTE and nrf_delay_us to sample the 8 bits. I tried making this work more efficiently using a hardware Timer like this post but every now and again I'm experiencing garbage characters. Has anyone implemented something similar?

Parents
  • Bitbanging is expensive in terms of power and is also unpredictable when it is used along side with other radio protocols like Jörg Fischer mentioned. Which context is your bitbanging code running in? 

    I tried making this work more efficiently using a hardware Timer like this post but every now and again I'm experiencing garbage characters

    This is possible if your bitbanging context is interrupted/masked by something else. Give someone context on how you implemented it so that we can give you more useful suggestions than the generic one I am giving now.

Reply
  • Bitbanging is expensive in terms of power and is also unpredictable when it is used along side with other radio protocols like Jörg Fischer mentioned. Which context is your bitbanging code running in? 

    I tried making this work more efficiently using a hardware Timer like this post but every now and again I'm experiencing garbage characters

    This is possible if your bitbanging context is interrupted/masked by something else. Give someone context on how you implemented it so that we can give you more useful suggestions than the generic one I am giving now.

Children
No Data
Related