interrupt only for rising edges