dashkil
Member level 2
I am using PIC-16f877A and Mikroc PRO for PIC 4.60v; i have gone through help menu and trying different example given there; each code contains ANSEL=0; ANSELH=0; C1ON_bit=0; but when i copy these code to compile some error is shown such as:
1) Undeclared identifier 'ANSEL' in expression prj_00.c
2) Undeclared identifier 'ANSELH' in expression prj_00.c
3) Undeclared identifier 'C1ON_bit' in expression prj_00.c
Why these error are shown even though it is given in help menu as reference?
As a worthy information by removing these command i have successfully compiled the code but including these always showing the error mentioned above.
1) Undeclared identifier 'ANSEL' in expression prj_00.c
2) Undeclared identifier 'ANSELH' in expression prj_00.c
3) Undeclared identifier 'C1ON_bit' in expression prj_00.c
Why these error are shown even though it is given in help menu as reference?
As a worthy information by removing these command i have successfully compiled the code but including these always showing the error mentioned above.