
Originally Posted by
Bracer
Thanks.
Ok Now all the LEDs light up.
BUT only PortB.0 and PortB.1 Blinks.
Again, this the code:
Code:
@ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT, MCLR_OFF
CMCON = 7
TRISA = 0 ' Make them all outputs
TRISB = 0
Counter var Byte
SubRoutine:
For Counter = 0 to 2
high PortB.0[Counter]
high PortA.0[Counter]
Next Counter
Pause 600
For Counter = 0 to 2
Low PortB.0[Counter]
Low PortA.0[Counter]
Next Counter
pause 100
Goto SubRoutine
Hi, Bracer
I suspect a RMW issue ... as HIGH and LOW already cares of driving inputs and outputs 
How much current do you send to your Leds ???
try to limit it to 5 mA per Led ... as a first try.
as a second try ...
Code:
@ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT, MCLR_OFF
CMCON = 7
TRISA = 0 ' Make them all outputs
TRISB = 0
Counter var Byte
SubRoutine:
PORTA = PORTA | % 00000111
PORTB = PORTB | % 00000111
Pause 600
PORTA = PORTA & % 11111000
PORTB = PORTB & % 11111000
pause 100
Goto SubRoutine
a scheme of your circuit really would be welcome ...
Alain
Last edited by Acetronics2; - 29th August 2010 at 17:03.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks