Currently i write a code to run a led matrix. the following is a one led set to be lighted up. the positive pin of the LED is connected to port B0. and negative, to port C1.

the X-tal OSC is 20Mhz, HS_osc is placed in the 16F877.INC file; OSC. set to HS
MCLR is connected directly to the 5V source.

i use PBP
-----------------------
; 16F877A

ADCON1 = 7

A VAR BYTE

PORTB = 0 ; SET PORTB AS OUTPUT
PORTC = 0 ; set port c as output

PORTC.1 = 0 ; set port C1 to low

pause 300
LOOP:

FOR A = 0 TO 8 loop to repeat

PORTB.0 = 1 set port B0 to high
PAUSE 500

PORTB.0 = 0 ; set port B0 to low
PAUSE 300

NEXT A

GOTO LOOP
END

-------------------------

the Voltage measurement on the two pins of the LED is 1.65V!!!!!!!

something wrong!!!!!!!!!!

any help from you i do appreciate, thanks