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

softwareserial on nrf52

We create library for work with software serial, we use two modules gpiote, timer. We have done software serial one instance but we need four (actually just for rx). We don't understand how to solve the problem with bit banging more than just one softwareserial instance. We have some conflicts in timer handlers for different channel but use one timer per one softserial instance is too expensive. Could freertos helps us with that issues?

Parents
  • Yes, but I was thinking of high UART baudrate , says 115200bps, the CPU has to wake up every 8us. Also since the 4 UART is not syncronized, you need to sample twice as fast as the clock to make sure you won't miss any pulse. Another limitation is if you have higher priority interrupt (softdevice activity for example) you will miss some bytes on UART.

Reply
  • Yes, but I was thinking of high UART baudrate , says 115200bps, the CPU has to wake up every 8us. Also since the 4 UART is not syncronized, you need to sample twice as fast as the clock to make sure you won't miss any pulse. Another limitation is if you have higher priority interrupt (softdevice activity for example) you will miss some bytes on UART.

Children
No Data
Related