"pragma cpu_type" Statement

The "pragma cpu_type" statement tells the compiler which type of PIC to generate code for.

syntax

pragma cpu_type 0x628
The "pragma cpu_type" statement provides the type value for use by the rest of the program through the CPU_TYPE manifest constant. The programmer may use this constant like any other constant.
e.g.

	if CPU_TYPE == 0x628 then

		CMCON = 7

	else if CPU_TYPE == 0x876 then

		ADCON1 = 6
	endif