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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…