Is it possible for an interrupt on one GPIO pin to affect the output on another pin ? I am toggling P1.5 externally, and some how it is affecting the output of another pin ( P2.1 ). How I know this is fact, as P2.1 is hooked up the the RESET pin on another processor, and that processor immediately resets. Even though the code does not act on anything right now.
Below is literally all I have, except for pin setup. The code compiles fine, and uploads onto hte launchpadd v1.5(g2553) just fine.
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
setup();
__enable_interrupt();
// Main loop
while(1){
// Pet the dog.
WDTCTL = WDTPW | WDTCNTCL;
}
return 0;
}
__attribute__( (interrupt (TIMER1_A0_VECTOR)) )
void TIMER1_A0_ISR(void)
{
if (counter++ > 100){ // ~1 Second
counter = 1;
//seconds++;
}
}
__attribute__( (interrupt (PORT1_VECTOR)) )
void PORT1_ISR(void)
{
if(P1IFG & BIT0){
flags |= HALT;
P1IFG &= (~BIT0);
}
if(P1IFG & BIT5){
if(flags & ENABLED){ // We've been enabled by the host.
}
else{ // Not yet enabled by the host.
}
P1IFG &= (~BIT5);
}
}