Hello everyone~
I need to use 2 UARTs to connect to different chips. If I use nRF82832, can I use 2 GPIO pins to simulate another UART? I just use it for one byte or two bytes data recieve.
If possible, is there an example code?
Thanks!
Hello everyone~
I need to use 2 UARTs to connect to different chips. If I use nRF82832, can I use 2 GPIO pins to simulate another UART? I just use it for one byte or two bytes data recieve.
If possible, is there an example code?
Thanks!
you can if you want but you know it's not going to work bit-banging a UART if the softdevice is interrupting unless you are running a really, really slow baudrate (really slow) which can tolerate the random timings.
just search 'bitbang UART' from the search box and you'll see all the people who've tried and failed this in the past.
Switching between GPIOs is another option. If you know when you need to communication with a chip, you can close one setup and open other setup.
Switching between GPIOs is another option. If you know when you need to communication with a chip, you can close one setup and open other setup.