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.

PORTB =0b00111111; vs port bit (RB1_bit=0;)

Status
Not open for further replies.
I checked it on oshon soft. The microcontroller view was not setting RC5 to high. I found that in the .h PIN_C5 was not in the fixed io outputs line. I added PIN_C5, and it was fixed in the microcontroller view. I also cheated in oshon soft. I set time_elasped to 99, so that I would not have to wait a full simulated second in order to test the RC5 output. In short, make sure your .h file has this line in it: #use fixed_IO(C_outputs = PIN_C0,PIN_C1,PIN_C2,PIN_C3,PIN_C4,PIN_C5)
 
Status
Not open for further replies.

Latest threads

Back
Top