Code Examples

Configuration Variations
	list p=12c508

	include p12c508.inc

	__config 	_OSC_XT & _WDT_OFF & _CP_ON & _MCLRE_OFF
The same solution as above:
	list p=12c508

	CONFIG 	OSC   = XT, WDT = OFF
	CONFIG 	CP    = ON
	CONFIG 	MCLRE = OFF
	list p=16f527

	include p16f527.inc

	__config	_FOSC_INTRC_IO & _WDTE_ON & _CP_ON & _MCLRE_OFF & _IOSCFS_8MHz & _CPSW_ON & _DRTEN_OFF
The same solution as above:
	list p=16f527

	CONFIG	FOSC  = INTRC_IO
	CONFIG	WDTE  = ON
	CONFIG	CP    = ON
	CONFIG	MCLRE = OFF, IOSCFS = 8MHz
	CONFIG	CPSW  = ON
	CONFIG	DRTEN = OFF
	list p=16f887

	include p16f887.inc

	__config _CONFIG1, _FOSC_HS & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CP_OFF & _CPD_ON & _BOREN_SBODEN
	__config _CONFIG2, _BOR4V_BOR40V & _WRT_1FOURTH
The same solution as above:
	list p=16f887

	CONFIG	FOSC  = HS
	CONFIG	WDTE  = OFF
	CONFIG	PWRTE = ON
	CONFIG	MCLRE = ON
	CONFIG	CP    = OFF
	CONFIG	CPD   = ON
	CONFIG	BOREN = SBODEN
	CONFIG	BOR4V = BOR40V
	CONFIG	WRT   = 1FOURTH
	list p=12f1501

	include p12f1501.inc

	__config _CONFIG1, _FOSC_ECL & _WDTE_SWDTEN & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _BOREN_SBODEN & _CLKOUTEN_OFF
	__config _CONFIG2, _WRT_BOOT & _STVREN_ON & _BORV_HI & _LPBOR_OFF & _LVP_OFF
The same solution as above:
	list p=12f1571

	CONFIG	FOSC     = ECL
	CONFIG	WDTE     = SWDTEN
	CONFIG	PWRTE    = OFF
	CONFIG	MCLRE    = OFF
	CONFIG	CP       = OFF
	CONFIG	BOREN    = SBODEN
	CONFIG	CLKOUTEN = OFF
	CONFIG	WRT      = BOOT
	CONFIG	STVREN   = ON
	CONFIG	BORV     = HI
	CONFIG	LPBOREN  = OFF
	CONFIG	DEBUG    = OFF
	CONFIG	LVP      = OFF
	list	p=18f25k80

	include p18f25k80.inc

	__config _CONFIG1L, _RETEN_OFF_1L & _INTOSCSEL_HIGH_1L & _SOSCSEL_HIGH_1L & _XINST_OFF_1L
	__config _CONFIG1H, _FOSC_EC3_1H & _PLLCFG_ON_1H & _FCMEN_OFF_1H & _IESO_ON_1H
	__config _CONFIG2L, _PWRTEN_OFF_2L & _BOREN_SBORDIS_2L & _BORV_2_2L & _BORPWR_HIGH_2L
	__config _CONFIG2H, _WDTEN_SWDTDIS_2H & _WDTPS_8192_2H
	__config _CONFIG3H, _CANMX_PORTB_3H & _MSSPMSK_MSK7_3H & _MCLRE_ON_3H
	__config _CONFIG4L, _STVREN_ON_4L & _BBSIZ_BB2K_4L
	__config _CONFIG5L, _CP0_ON_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
	__config _CONFIG6H, _CPB_OFF_5H & _CPD_OFF_5H
	__config _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_ON_6L & _WRT3_ON_6L
	__config _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_ON_6H
	__config _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_ON_7L & _EBTR3_ON_7L
	__config _CONFIG7H, _EBTRB_OFF_7H
The same solution as above:
	list	p=18f25k80

	CONFIG	RETEN   = OFF, INTOSCSEL = HIGH, SOSCSEL = HIGH, XINST = OFF
	CONFIG	FOSC    = EC3
	CONFIG	PLLCFG  = ON
	CONFIG	FCMEN   = OFF
	CONFIG	IESO    = ON
	CONFIG	PWRTEN  = OFF
	CONFIG	BOREN   = SBORDIS
	CONFIG	BORV    = 2
	CONFIG	BORPWR  = HIGH
	CONFIG	WDTEN   = SWDTDIS
	CONFIG	WDTPS   = 8192
	CONFIG	CANMX   = PORTB
	CONFIG	MSSPMSK = MSK7
	CONFIG	MCLRE   = ON
	CONFIG	STVREN  = ON
	CONFIG	BBSIZ   = BB2K
	CONFIG	CP0     = ON
	CONFIG	CP1     = OFF
	CONFIG	CP2     = OFF
	CONFIG	CP3     = OFF
	CONFIG	CPB     = OFF
	CONFIG	CPD     = OFF
	CONFIG	WRT0    = OFF
	CONFIG	WRT1    = OFF
	CONFIG	WRT2    = ON
	CONFIG	WRT3    = ON
	CONFIG	WRTC    = OFF
	CONFIG	WRTB    = OFF
	CONFIG	WRTD    = ON
	CONFIG	EBTR0   = OFF
	CONFIG	EBTR1   = OFF
	CONFIG	EBTR2   = ON
	CONFIG	EBTR3   = ON
	CONFIG	EBTRB   = OFF