SpecialAgentBob
New Member
Hello everyone!
Glad to see such a supportive site for electronics.
I have a quick, most likely extremely simple question that I'm having a difficult time. Currently, I'm programming a circuit to drive a "sequence" of LEDs (with two designed to be on at one time), however, when I apply power to both LEDs, the second one to go high in the code will turn off the first one.
The code seems to work if I simply turn the entire PORTC on, such as with PORTC = 0xff. However, sending individual commands with RB6, RB7, and RB3 will only allow for one LED to be powered at once.
For example:
RC6 = 1; // LED 1
RC7 = 1; // LED 2
The code above will only make RC7 go high.
I apologize in advanced if this subject has been touched on, or if it is stated directly in the datasheet. I have tried searching, with no luck so far.
Appreciate the help in advanced.
Michael
Glad to see such a supportive site for electronics.
I have a quick, most likely extremely simple question that I'm having a difficult time. Currently, I'm programming a circuit to drive a "sequence" of LEDs (with two designed to be on at one time), however, when I apply power to both LEDs, the second one to go high in the code will turn off the first one.
The code seems to work if I simply turn the entire PORTC on, such as with PORTC = 0xff. However, sending individual commands with RB6, RB7, and RB3 will only allow for one LED to be powered at once.
For example:
RC6 = 1; // LED 1
RC7 = 1; // LED 2
The code above will only make RC7 go high.
I apologize in advanced if this subject has been touched on, or if it is stated directly in the datasheet. I have tried searching, with no luck so far.
Appreciate the help in advanced.
Michael