Hi,
I'd like to have a second UART available, as the nRF51822 only has one and I'm wondering if there exists a UART software emulation example implemented already for this CPU. I couldn't find anything related in the SDK...
Thanks! florin
Hi,
I'd like to have a second UART available, as the nRF51822 only has one and I'm wondering if there exists a UART software emulation example implemented already for this CPU. I couldn't find anything related in the SDK...
Thanks! florin
Nordic does not provide any such implementation, so this is something you'd have to develop yourself.
It is long ago you asked this question. This week I had the same problem. Transmitting data was not a problem, because it is rather easy to multiplex the TX output of one UART. For RX multiplexing is not really a solution. Therefore I wrote a software RX part of a UART. I use GPIOTE, a TIMER and PPI to have as much handled by interrupts. I build it to run at 9600 baud with the softdevice enabled. Alas when the radio is active, this baudrate is a little to fast. Some characters are lost. Still I have attached the source. srx_drv.c srx_drv.h
regards, Erik
Can you tell me a sample program for TX? Thank you!!
Erik you posted the .h. Would you mind posting the .c file.