I'm using MC9S08LC60. Its KBI1 module doesn't generate interrupt for me. All interrupts such as SCI, LCD, RTI work but KBI1 doesn't KBI1SC_KBF flag is never asserted.
Here is my KBI1 initialization:Code:
KBI1ES = 0b10000000; // PWR_MON-RisingEgde, M_BTN-FallingEgde,
// D_BTN-FallingEgde, UST-FallingEdge, KLMS-FallingEdge
KBI1PE = 0b11011000; // PWR_MON, M_BTN, *D_BTN*, UST, KLMS
KBI1SC = 0b00000100; // Edge detect, KBIIE = 0
KBI1SC_KBACK = 1;
KBI1SC_KBIE = 1;
Can you check for me please KBI1 has a bug?
SDID of the LC60 that I use: Rev=1, ID=12