Hello guys!
I've finally got my PICKit to succesfully program code on my PIC but it doesn't seem to work properly. MPLab identifies my PIC and it programs and verifies the program correctly but the code doesn't seem to run! I've also tried to use any led blink code that I found online, it builds correctly and programs but doesn't seem to run at all. I've tried to measure the power levels from the pins with mutlimeter also did hook up led there but it didn't lit. I've also changed the code so it will only turn the pin on etc. but still nothing happens. I used diagram from PICKit 3 user guide link at the page DS51795B-page 2 with title " PROPER CONNECTIONS FOR PROGRAMMIN" I ended up with this kind of setup. link to HUGE image
I read somewhere that I'd need some components such as diode and capacitor added somewhere to filter noise. Also is it okay that I use 10k ohm resistor instead of 4.7k resistors as I don't have one around? I am using PIC PIC16F628A. Any help / suggestions are great!
Also! Heres the code:
I've finally got my PICKit to succesfully program code on my PIC but it doesn't seem to work properly. MPLab identifies my PIC and it programs and verifies the program correctly but the code doesn't seem to run! I've also tried to use any led blink code that I found online, it builds correctly and programs but doesn't seem to run at all. I've tried to measure the power levels from the pins with mutlimeter also did hook up led there but it didn't lit. I've also changed the code so it will only turn the pin on etc. but still nothing happens. I used diagram from PICKit 3 user guide link at the page DS51795B-page 2 with title " PROPER CONNECTIONS FOR PROGRAMMIN" I ended up with this kind of setup. link to HUGE image
I read somewhere that I'd need some components such as diode and capacitor added somewhere to filter noise. Also is it okay that I use 10k ohm resistor instead of 4.7k resistors as I don't have one around? I am using PIC PIC16F628A. Any help / suggestions are great!
Also! Heres the code:
Rich (BB code):
include <p16f628a.inc>
LED equ 02h;
TRISA equ 85h;
PORTA equ 05h;
org 0
BSF STATUS, RP0; GO TO BANK 1
MOVLW 00h ;SET W REGISTER TO 0
MOVWF TRISA; MOVE W REGISTER TO TRISA REGISTER SETTING PINS TO OUTPUT
BCF STATUS, RP0; GO TO BANK 0
MOVLW LED; SET W REGISTER TO 2
MOVWF PORTA; MOVE W TO PORTA SETTING PINS HIGH
end