Can't set bits in port register!?!?

Status
Not open for further replies.

DexterLB

New Member
I am making a project in mikroC with PIC12F675.

When I do:
Code:
GPIO.F0 = 1;
and I simulate it, I get a '1' on the GP0 pin. So far so god. But after that if I do:
Code:
GPIO.F1 = 1;
I get a '1' on GP1 BUT the '1' on GP0 becomes a '0' again! Do you have any idea why this happens?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…