Hello,
I have problem with my new PIC 16f877 controller. I was searching answer to the problem with google and found this site with very friendly people on it so i decided to ask help here even the problem is not picbasic relative. However im going to use picbasic after this problem is fixed.
Backround:
Im totally new to microcontrollers and there migth be something obvious that i have missed, so easy suggestions are important too. I have bougth PIC 16f877 controller and made circuit for it. As programmer i use a LVP circuit that seems to work as i can tell: writing a program to it result no errors and when reading the controllers memory, i can see changes in the hex file downloaded.
Problem:
As the programming seems to work, next thing i have tried to do is to see if there is some life when i turn power on. For this, i have programmed a assembler program to put a voltage to a pin to measure it with voltage meter or to see connected LED to ligth up.
(MPLAB)
LIST p=16f877
INCLUDE "p16f877.inc"
__CONFIG _PWRTE_ON & _HS_OSC & _WDT_OFF & _BODEN_OFF
ORG 0x00
goto Main
ORG 0x04
goto Main
Main
BANKSEL TRISB
bcf TRISB,5 ; i also have tried clrf TRISB without success
BANKSEL PORTB
bsf PORTB,5
Loop NOP
goto Loop
end
No voltage appears on the pin (tried some other pins too). Here is the circuit: http://kuvaton.com/k/Q8m.jpg edit: from RB3 there goes a wire to ground
I have tested the circuit also with computer powersupply +5V and ground to points A and B in the link above with no success. When tried that, i disconnected stabilization capacitors and the ground pin in the regulator to avoid them to interference.
I saw some circuits in the web where ceramic capacitors where used in some parts of the circuit. In my circuit all the capacitors are electrolyte capacitors, does this make a difference? Unfortunately i dont have any ceramic versions to test.
I will be thankful for any suggestion.
Bookmarks