Hi, i am new in nrf51822. i want to make a pin as a external interrupt pin, whenever it get high to low pulse it will call in ISR. here i am unknown how to write an ISR here.
please give me suggestion
thanks
Hi, i am new in nrf51822. i want to make a pin as a external interrupt pin, whenever it get high to low pulse it will call in ISR. here i am unknown how to write an ISR here.
please give me suggestion
thanks
Have a look at the examples/peripheral/pin_change_int example in the SDK folder. That shows setting a PIN as an interupt and running a function based on that. Only change you'll need is to change:
GPIOTE_CONFIG_IN_SENSE_TOGGLE to GPIOTE_CONFIG_IN_SENSE_HITOLO