Hey all;
I just tried to build my first PIC project, but got tons of errors, most of which were:
or porta, or ircf2, etc.
I had originally had equ statements for these addresses, but after reading about the .inc file, I thought they were unnecessary (i.e., the inc file took care of these things). Evidently I was wrong, unless I'm using the inc file incorrectly. Here's my code from the top:
Is this the proper way to implement the inc file? Also, if the inc file is not a replacement for the equ directive, what is its purpose?
Oh, I also am writing in assembly language, if that makes a difference.
Thanks
I just tried to build my first PIC project, but got tons of errors, most of which were:
Code:
Error[113] TEMPLATE\CODE\MYCODE.ASM 18 : Symbol not previously defined (osccan)
I had originally had equ statements for these addresses, but after reading about the .inc file, I thought they were unnecessary (i.e., the inc file took care of these things). Evidently I was wrong, unless I'm using the inc file incorrectly. Here's my code from the top:
Code:
list p=pic16f737
#include <P16F737.inc> ; processor specific variable definitions
radix hex
;
__CONFIG _CONFIG1, _CP_OFF & _CCP2_RB3 & _DEBUG_OFF & _VBOR_2_0 & _BOREN_0 & _MCLR_ON & _PWRTE_ON & _WDT_OFF & _INTRC_IO
__CONFIG _CONFIG2, _BORSEN_0 & _IESO_OFF & _FCMEN_OFF
;------------------------------------------------------------
Is this the proper way to implement the inc file? Also, if the inc file is not a replacement for the equ directive, what is its purpose?
Oh, I also am writing in assembly language, if that makes a difference.
Thanks
Last edited: