Hey guys this is my first time programing a PIC18 and a have a few questions. I am doing it in assembly language. My first goal is to turn an LED on but i cant quite seem to do that yet. Heres my program:
#include <p18F2431.inc>
CONFIG = _CONFIG1H, 0x06
CONFIG = _CONFIG2L, 0x0E
CONFIG = _CONFIG2H, 0x1E
CONFIG = _CONFIG3L, 0x3C
CONFIG = _CONFIG3H, 0x9D
org 0000
BANKSEL TRISA
CLRF TRISA
BANKSEL PORTA
BSF PORTA,0
end
Im not sure how to configure it. Every time i try to build it, i get this error message:
Missing argument(s) (configuration byte setting is missing)
What do I do? Thanks!!!
#include <p18F2431.inc>
CONFIG = _CONFIG1H, 0x06
CONFIG = _CONFIG2L, 0x0E
CONFIG = _CONFIG2H, 0x1E
CONFIG = _CONFIG3L, 0x3C
CONFIG = _CONFIG3H, 0x9D
org 0000
BANKSEL TRISA
CLRF TRISA
BANKSEL PORTA
BSF PORTA,0
end
Im not sure how to configure it. Every time i try to build it, i get this error message:
Missing argument(s) (configuration byte setting is missing)
What do I do? Thanks!!!