# About PIC programming

Hi friends iam new to PIC programming , I'm coding my pic in mikroC pro , please help me out.. iam attaching my file with this!the code i want is message from transceiver should receiver and check whether the message is ON or OFF then pic should function on my output accordingly!

• Those red lines indicate Errors Jul 19 '18 at 6:27
• I know those are errors, but can u please verify my code and guide me how to do? Jul 19 '18 at 6:33
• Without knowing your environment, it's difficult, but at first glance you have no includes so the compiler has no way to find ANSEL etc. Jul 19 '18 at 10:50
• Aug 1 '18 at 10:56

The compiler doesn't know what the variables TRISABITS etc are, which means you didn't tell the compiler about them. This is usually done by including the appropriate file given by Microchip. For example, in my header files I have:
#include <p18f47j13.h>  // For a PIC18F47J13

use MPLABx + xc8 compiler (both are for free). Know include xc.h header in every source file. That should work.