This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How gpio related to gpiote?

Hi All,

   i would like to know  how gpio relate to gpiote,i go through some code and find
    out , that  gpiote handles in,out,config registers that is handle by gpio also ,How it is 
    happening ?

   so can any one  please share information  related to it.

Thanks

  • The GPIOs can be configured as inputs or outputs (with some other configurations well, but this is the basic conf.) These can then be used to sense if a pin is high in input configuration, or set a level if configuration is output.

    The GPIOTE is a peripheral that can be used to manipulate GPIO behavior. You can use this peripheral to generate interrupt on pin change (wake-up on pin) using the GPIOTE PORT event, or you can use the IN/OUT tasks in combination with the PPI to "by-pass" the MCU for certain use-cases, like triggering an ADC conversion when GPIO x is set to '1', or generating a self-contained PWM output using a TIMER. Please see the gpiote_example in the SDK as an example.

  • Is there an example for using the IN/OUT vs PORT events. I can't find where the difference between the two methods is described.

Related