Hi,
I am doing a Project based on PIC 16F877. I am using IC Prog105D. I am facing a problem related during its programming. My problem is that every time i try programming PIC , I get the error 'Verify failed at 0000h!'. I am pasting the code below-
;Program for setting port B pins to logical one.
;Version: 1.0 Date: 25.04.2005 MCU: PIC16F877 Author: JaGSABR
;****** Declarations and microcontroller configuration ******
PROCESSOR 16F877
#include "p16f877.inc"
__CONFIG _CP_OFF&_WDT_OFF&_PWRTE_ON&_HS_OSC
;****** Declaraion of variables ******
Cblock 0x0C ; Beginning of RAM
endc ; No variables
;;****** Program memory structure ******
ORG 0x00 ; Reset vector
goto Main ; After reset jump to location
ORG 0x04 ; Interrupt vector
goto Main ; No interrupt routine
Main ; Beginning of the program
banksel TRISB ; Select the bank containing TRISB
clrf TRISB ; Port B is output
banksel PORTB ; Select the bank containing PORTB
movlw 0xff ; W=FF
movwf PORTB ; Set all ones to port B
Loop goto Loop ; Jump to label Loop
End
Thanks in advance.
Regards
I am doing a Project based on PIC 16F877. I am using IC Prog105D. I am facing a problem related during its programming. My problem is that every time i try programming PIC , I get the error 'Verify failed at 0000h!'. I am pasting the code below-
;Program for setting port B pins to logical one.
;Version: 1.0 Date: 25.04.2005 MCU: PIC16F877 Author: JaGSABR
;****** Declarations and microcontroller configuration ******
PROCESSOR 16F877
#include "p16f877.inc"
__CONFIG _CP_OFF&_WDT_OFF&_PWRTE_ON&_HS_OSC
;****** Declaraion of variables ******
Cblock 0x0C ; Beginning of RAM
endc ; No variables
;;****** Program memory structure ******
ORG 0x00 ; Reset vector
goto Main ; After reset jump to location
ORG 0x04 ; Interrupt vector
goto Main ; No interrupt routine
Main ; Beginning of the program
banksel TRISB ; Select the bank containing TRISB
clrf TRISB ; Port B is output
banksel PORTB ; Select the bank containing PORTB
movlw 0xff ; W=FF
movwf PORTB ; Set all ones to port B
Loop goto Loop ; Jump to label Loop
End
Thanks in advance.
Regards