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.
Hi Thanks for the prompt reply. I had looked into the example and what I can find out is in any of the case whether the PIN 3 changes from Low to High or High to Low the control goes to the in_pin_handler function. How can I trace whether the PIN has gone to low to high or high to low? Sorry for asking simple question but I am new.
Regards, Amit
Hi Thanks for the prompt reply. I had looked into the example and what I can find out is in any of the case whether the PIN 3 changes from Low to High or High to Low the control goes to the in_pin_handler function. How can I trace whether the PIN has gone to low to high or high to low? Sorry for asking simple question but I am new.
Regards, Amit