Hi,
We would like to use NRF52832 chipset for our project, and we need to configure 11 pins as GPIO interupt , Is this possible ? How many pins we can have as interrupt at a time ?
Thanks a lot in advance ,
Hi,
We would like to use NRF52832 chipset for our project, and we need to configure 11 pins as GPIO interupt , Is this possible ? How many pins we can have as interrupt at a time ?
Thanks a lot in advance ,
Hi,
This is possible using the PORT event. Using the PORT event / DETECT signal you can actually configure all gpio pins as interrupts. There are some drawbacks using the PORT event because it is shared between all gpio pins configured for it. As it is too complicated to explain it all here I recommend that you read the GPIO and GPIOTE chapters in the Product Specification.
Alternative to using PORT event is to use IN event. This can only be configured for 8 pins as there are only 8 channels in the GPIOTE peripheral. IN event is also more current demanding than PORT event as it requires certain resources like the HFCLK. PORT event use almost no power and can be used when device is in system OFF sleep mode (deep sleep).
With the SDK driver you should configure for so called "low accuracy" for using PORT event (for example GPIOTE_CONFIG_IN_SENSE_TOGGLE(false)
, where false means low accuracy).
See also this post for more information about the PORT event and SDK driver (on nRF51, but still valid for nRF52).
Thanks a lot For your very quick response .........
Hi Sorry I have one more doubt similar to this, Is there any limitations for Wake up source configuration like this ??
You mean wake up from system OFF sleep? In that case the wake up pin needs to be another level than the wake up level or else the chip will wake up immediately, see this post. Other than that I can't think of any limitation. If you mean wake up fro system ON sleep there is no other than the ones I have pointed out.
Hi , My query in particular, is there any limitation is there on setting number of wake up source at a tie when the device enter into deep sleep mode