Have a look at the example provided in the manual, even if they don't use the same interrupt source, this should give you some tips.

You could still do a search with ON INTERRUPT within this forum.