I have a digital signal in one input port and I would like to handle it in a interrupt function. How can I do it?