Hi All!
I wrote my very 1st code with PIC16F628A,but it gave BUILD FAIL msg when im testing it.Can u plz help me....
Here is my code;
I wrote my very 1st code with PIC16F628A,but it gave BUILD FAIL msg when im testing it.Can u plz help me....
Here is my code;
Rich (BB code):
org 0x00
status equ 0x03
trisb equ 0x86
count1 equ 0x20
portb equ 0x06
count2 equ 0x25
bsf status,5 ;go to bank 1
clrf trisb ;configure portb as output
bcf status,5 ;go back to bank 0
movlw 0xFF ;define the output/load w-reg
movwf portb ;put w-reg value to portb
movlw 0xff
movwf count1
movlw 0x05
movwf count2
loop1
decfsz count1
goto loop1
decfsz count2
goto loop1
movlw 0x00
movwf portb
end
Last edited by a moderator: