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.
check below things.. (1) Are u Enable GPIOTE in nrf_drv_config file? (2) why are u using in_config1.sense instead of in_config.sense?
Yes I have enabled GPIOTE in the nrf_drv_config file.
Using in_config.sense or in_config1.sense does not make any difference in the output. But as per your suggestion I had changed the in_config1.sense to in_config.sense
Just for information, I want to glow LED 17 when logic 1(Vcc) is given to PIN 3 and want to glow LED 18 when logic 0 (Gnd) is given to PIN 3. My issue is either logic 1 or logic 0 is given in PIN 3 the control always move to in_pin_handler function. So how can I know whether the input PIN 3 is logic 1 or logic 0 as in both the case of pin change control is going to in_pin_handler function.
ok Your Code Seems Ok. now i suggest you to remove everything from in_pin_handler function and in that function just toogle LEDs to check this function is calling or not. otherwise problem maybe in ur hardware
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.
Could resolve the issue by migrating from package installer to latest SDK.
Thanks a lot everyone.