I am new to the Wixel and TI processor line. Also I have only done a few projects (3) and they used PICs.
I am trying to setup up a simple interrupt based on an input. No joy.
Here is the code:
unsigned char P0_0_interrupt;
SFRBIT(0x89, P0IFG, P0_7_INT, P0_6_INT, P0_5_INT, P0_4_INT, P0_3_INT, P0_2_INT, P0_1_INT,P0_0_INT)
SFRBIT(0x8C, PICTL, _PICTL_7, PICTL_6, P2IEN, P0IENH, P0IENL, P2ICON, P1ICON, P0ICON)
P0_0_interrupt = 1;
P0_0_INT = 0; //clear it
//setup a falling edge interrupt on P0_1.
setDigitalInput(0,1); //pull P0_0 high. I connected the switch to ground
P0IENL = 1; //Port 0, inputs 3 to 0 interrupt enable
P0IE = 1; //enable port 0 interrupts
if (P0_0_interrupt == 1)
P0_0_interrupt = 0;
Can anyone tell me what I am missing or doing wrong?