williamchia
Newbie level 6
Hi all,
For half month, i have been trying to write a simple program using MPLAB to make the LEDs flash but not working. Have been checking and trobleshooting upside down, left to right but still dunno what is the problem..
Then i down-grade to just making the LED light up (I'd be very happy even for that) but it is still not working ...8O
;**********************************************************
;* LED Flashing
;**********************************************************
list p=16f877A
; Include file, change directory if needed
include "p16f877A.inc"
; Start at the reset vector
org 0x000
nop
Start
banksel TRISB
clrf TRISB ;set PORTB to output
banksel PORTB
Main
movlw 0xff
movwf PORTB ;turn on LEDS on PORTB
nop
nop
movlw 0x00
movwf PORTB ;turn off LEDs
end
No errors on build all and assembly. Wish some1 could point out what goes wrong.
The circuit is at URL:
Thank you very much.
Regards,
William
For half month, i have been trying to write a simple program using MPLAB to make the LEDs flash but not working. Have been checking and trobleshooting upside down, left to right but still dunno what is the problem..
Then i down-grade to just making the LED light up (I'd be very happy even for that) but it is still not working ...8O
;**********************************************************
;* LED Flashing
;**********************************************************
list p=16f877A
; Include file, change directory if needed
include "p16f877A.inc"
; Start at the reset vector
org 0x000
nop
Start
banksel TRISB
clrf TRISB ;set PORTB to output
banksel PORTB
Main
movlw 0xff
movwf PORTB ;turn on LEDS on PORTB
nop
nop
movlw 0x00
movwf PORTB ;turn off LEDs
end
No errors on build all and assembly. Wish some1 could point out what goes wrong.
The circuit is at URL:
Thank you very much.
Regards,
William