1. 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.
    Dismiss Notice

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

Discussion in 'Microcontrollers' started by sahu, Aug 24, 2011.

  1. rmain1972

    rmain1972 Member

    Joined:
    Apr 13, 2011
    Messages:
    103
    Likes:
    2
    Location:
    Oklahoma City, OK USA
    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)
     
  2. sahu

    sahu Member

    Joined:
    Oct 18, 2009
    Messages:
    468
    Likes:
    3
    All redy i do it.
     

Share This Page