Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top