With relay output or not?It is connected to a motion sensor and don't change quickly.
With relay output or not?It is connected to a motion sensor and don't change quickly.
What do you mean?With relay output or not?
No, It is an motion detection IC.Relay gives bunch of IOC-type interrupts during short time.
void myISR(void)
{
volatile unsigned char lastKnownPORTB;
asm("MOVF PORTB,w");
asm("NOP");
INTCONbits.RBIF = 0;
asm("MOVF PORTB,w");
lastKnownPORTB = WREG;
}