Hi,
Thanks for your response.
You need to ensure that signal lines are either disconnected
I am thinking to use a tri-state buffer IC to isolate the UART lines. The buffer IC is 74LVC126APW,118 (https://assets.nexperia.com/documents/data-sheet/74LVC126A.pdf). Will you suggest this?
put into a suitable state.
Can this be done in nrf52832 code? If yes, please share some references on this.
Thanks for the help.
Regards
Kamran
Hi,
The suitable state would be to set the pins that are connected to rx and tx as GPIO Input and disconnect the input buffer. You can do this by writing to the appropriate PIN_CNF[N] register.
regards
Jared
Hi,
The suitable state would be to set the pins that are connected to rx and tx as GPIO Input and disconnect the input buffer. You can do this by writing to the appropriate PIN_CNF[N] register.
regards
Jared
No - that won't work!
kamran_iosite is turning the nRF off - so it is the other device which needs to have its lines set to an appropriate state!
Setting them as inputs might work;
Setting them low might work;
Insufficient information - and not a Nordic issue.
It seems I was too quick on this one, I thought i read sleep instead of turning it OFF. Good that we have a community that reviews our answers ;)
Well, awneil is correct in pointing out that my previous suggestion won't work and that the focus should be on the other device. I would also like to add that a GPIO pin should never be connected to a voltage that is VDD + 0.3 V.
Hi,
I want to configure RX and TX as GPIO and then to disconnect the input buffer, I am using the following functions:
nrf_gpio_cfg_input(rx_pin, NRF_GPIO_PIN_NOPULL); -->> this is to configure as input
nrf_gpio_input_disconnect(rx_pin); -->> this is used to disconnect the buffer
nrf_gpio_cfg_watcher(rx_pin); -->> this is used to enable input again on rx and tx lines. it is used when i want to enable the UART lines.
But it does not work.
Any suggestions?
NOTE: earlier I mentioned that I am switching off nrf52832. But now I have dropped that method and the aim here is to disable UART lines after the communication is complete. And enable UART again when needed via an interrupt pin (this interrupt pin I working fine.)
Thanks
But it does not work.
Any suggestions?
Yes I suggest you explain properly what "But it does not work" means.