hmm, RD0 and RD4 are the first bit of the low and of the high nibble, it might have something to do with how you are declaring your numbers, if you declare port b's outputs to be 0xEE (instead of 0xFF) this would cause the problem above, ----- Original Message ----- From: Haris I. Volos To: Sent: Sunday, March 10, 2002 6:59 AM Subject: [PIC]: 16F877 PORTD Can't run 8 LEDs simultaneously > Hi! Another strange behaviour.... > > I have connected 8 leds in series with 8 1K resistors respectively to PORTD, > the LEDs light at logic "1". > > RD0-------|>|---/\/\/\/\------GND > .... LED 1K > RD7-------|>|---/\/\/\/\------GND > > > If you light each LED alone its OK but if you try to light more than 4 the > LEDs, RD0 and RD4 do not light even though that 5V are applied to the LEDs. > The voltage between the particular LED leads is 0.8V > . > I reduced the resistor to half and tried other LEDs but nothing, also I > reset all TRISE bits (for the Paraller Port mode). > I have read the datasheet but doesn't state anything. > > What do you thing? > > Thanks in advance, > > Haris > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.