I'm trying to turn-on PortB.1 during a time interval. I am also monitoring the Timer 1 Interrupt to make sure the interrupt is working. I can't seem to transfer a bit value outside the interrupt routine. Can anyone help?
I'm trying to turn-on PortB.1 during a time interval. I am also monitoring the Timer 1 Interrupt to make sure the interrupt is working. I can't seem to transfer a bit value outside the interrupt routine. Can anyone help?
You don't seem to set PortB.1(Drive) to output anywhere. Use LOW,HIGH,OUTPUT or TRISB.1=0.
/Ingvar
I've modified the program to give a pulse every 10 sec. It only works inside the interrupt. I need to turn on a bit during a time interval in the main loop but I can't seem to get any response there.
can you try...
if Seconds==5 then 'yes 2 equal sign
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks