There is one main header file that can be included to the source files using the pic16 port. That file is the pic18fregs.h. This header file contains the definitions for the processor special registers, so it is necessary if the source accesses them. It can be included by adding the following line in the beginning of the file: