blueroomelectronics
Well-Known Member
RB0 is analog by default, add this and speed it up and the debugger goes much faster
Adding a PORTB watch window will show the bit now goes low.
Code:
OSCCON = 0x72; // 8MHz
ADCON1 = 0xFF; // all digital I/O
INTCON2 = 0b00000101; // falling edge, high priority
Adding a PORTB watch window will show the bit now goes low.