uaefame
New Member
Hello Everyone,
I decided from now on to learn PIC, I mean to understand why my program getting error and how can i improve it.
Here are my codes
I know its simple, but i am interested where did i make the mistake and how can i fix it.
Thanks in advance
Best regards,
Hesham Ismail
I decided from now on to learn PIC, I mean to understand why my program getting error and how can i improve it.
Here are my codes
Code:
list p=16F84A ; list directive to define processor
#include <p16F84a.inc> ; processor specific variable definitions
__CONFIG _CP_OFF & _WDT_ON & _PWRTE_ON & _RC_OSC
STATUS equ 03h
TRISA equ 85h
PORTA equ 05h
bsf STATUS,5
movlw OOh
movwf TRISA
bcf STATUS,5
START movlw 02h
movwf PORTA
movlw 00h
movwf PORTA
goto START
END
I know its simple, but i am interested where did i make the mistake and how can i fix it.
Thanks in advance
Best regards,
Hesham Ismail
Last edited: