??? 07/13/06 18:40 Read: times |
#120223 - Back on track Responding to: ???'s previous message |
Erik here are my findings. Sorry I took so long, but I was assigned something else.
If EA, EKBI, KBCON.0 all are set, the ISR should activate. This is true. KBPATN = 0x03; KBMASK = 0x03; KBCON = 0x00; // KBIF gets set after this line KBCON &= ~0x01; // I try to clear it but it does not. // therefore, EKBI is always set and creating // erroneous interrupts. // pins 0 & 1 on port 0 are low (input) when // this happens. I used scopes and everything is like the emulator/debugger displays on screen. What else can I do? If I decide to use only one pin then KBI works fine as long as KBCON = 0x02; But I need to use two pins. I tried to use the comparator CMP2 with P0.0 and it works fine but the KBI peripheral will consume less power. Erik can you help me any more? Thanks |