I need to turn on and off some leds with the rising edge and falling edge of the clock,
i am not exactly sure how to do this but setting flags and having it switch...here is what i have
BOOL Flag=0; // initializes my flag equal to 0
if (flag)
led1 on
led 2 off;
flag=0
else
led 1 off
led 2 on
flag=0
// generate an interrupt and have the flag set to 1
flag=1;
this doesn't work and i am not sure why