AnsweredAssumed Answered

Kbi Interrupt on MCF51JM doesnt work as expected

Question asked by Luka Rahne on Mar 26, 2013
Latest reply on Mar 26, 2013 by TomE

I am trying to detect falling edges on input kbi pins.

Problem is, that once one falling edge is detected, second edge detection on another pin (also kbi enabled) does not work and interrupt get missed..

If there is only one pin low at time then each interrupt on any pin is correctly detected, and processed.


My solution is now that once interrupt happens, i change value of  KBI1 Interrupt Edge Select Register (KBI1ES),  This way any change on any pin always raises interrupt (falling or raising edge)


Since this looks more like hack that solution, can somebody tell me if i am doing something wrong and if my findings are correct.