Is there a easy way to do Bit Toggle f on a 16f690

Status
Not open for further replies.

be80be

Well-Known Member
I have tried every thing I can think up and no show

I want to do this PORTC.0 =~ PORTC.0 a Bit Toggle f in asm
 
Last edited:
How about because it don't toggle LOL I tried that and it turns on and stays
 
It's exclusive or...XOR, it will toggle.

Are u sure u didn't use Xorwf PORTC,w?
 
If xorwf always sets the bit then you either have the pin set to analogue or too much of a load on the pin.

Mike.
 
It lights the whole port up I just wanted to toggle one pin PORTC.0

It was not clearing ANSEL I used banksel ANSEL and she is toggling lol.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…