I am new to NRF52832. I want to monitor continuously PIN 3 where I have connected USB to check whether my USB is connected or not. How can I do that. Please reply ASAP.
I am new to NRF52832. I want to monitor continuously PIN 3 where I have connected USB to check whether my USB is connected or not. How can I do that. Please reply ASAP.
Hi..Amit
first define PIN 3 and After that ,create timer instance for repeated mode and start it.
then initalize , configure nrf_drv_gpiote_init driver based on ur configuration and enable input event on it.
for more information u can look at example pin_change_int in SDK example folder.
Regards.
Yes i had removed everything from in_pin_handler function and only written to toggle the LED. Its working.
But the issue is how to monitor PIN 3 is logic 0 or logic 1 after the code is written into the flash memory. The case can be that PIN 3 is logic 0 or logic 1 before the hex file is written into the flash memory. It only detect the change in PIN status after code is written into memory.
I want to monitor the PIN and find out whether PIN 3 is logic 0 or logic 1 after the hex file is written in to the flash memory without changing the logic of the PIN 3.
Yes i had removed everything from in_pin_handler function and only written to toggle the LED. Its working.
But the issue is how to monitor PIN 3 is logic 0 or logic 1 after the code is written into the flash memory. The case can be that PIN 3 is logic 0 or logic 1 before the hex file is written into the flash memory. It only detect the change in PIN status after code is written into memory.
I want to monitor the PIN and find out whether PIN 3 is logic 0 or logic 1 after the hex file is written in to the flash memory without changing the logic of the PIN 3.