AnsweredAssumed Answered

JN5168 - Wake up on 'either' rising or falling edge

Question asked by Martin Egsdal on Feb 28, 2020
Latest reply on Mar 4, 2020 by Mario Ignacio Castaneda Lopez

Hello there! 

 

Im doing my first JN5168 project, and first JenOS project ever (never used any nxp processors) 

 

Im trying to figure out 2 things.

 

1, I have a toggle switch that I want to use to wake up the MCU whenever is toggled (rising or falling) 

      Is the only was to do this to connect the switch to 2 diffrent inputs and have one vAHI_DioWakeEdge() for rising and one for falling?

 

2. What happens upon a wake called by a DIO? after enabling vAHI_DioWakeEnable(), which function will be executed upon the wake up? I want to use the wake up kinda like an interrupt, where it runs one specific function?

 

Thanks for the beginner help!

Outcomes