i wrote a very simple program for a led to flash it worked very well on microchip IDE ,loaded to the chip PIC16f84A, worked perfect,but when mounted on the hardware it doesn't work, below is the program
MAIN_PROGRAM CODE STATUS equ 03h TRISB equ 86h PORTB equ 06h D1 equ 08h D2 equ 09h D3 equ 0Ah
bsf STATUS,5 movlw 00h movwf TRISB bcf STATUS,5 start: movlw b'1111' movwf PORTB call DELAY movlw 00h movwf PORTB call DELAY DELAY movlw d'4' movwf D3 LOOP decfsz D1,1 goto LOOP decfsz D2,1 goto LOOP decfsz D3,1 goto LOOP RETURN END where is my fault
|