; HD924.ASM

; This file tests header file usage for the specified processor.

	LIST	P=16C924
	INCLUDE	"p16c924.inc"

 	DATA	_CP_ALL, 0x00CF		; This changes per device
	DATA	_CP_75, 0X15DF
	DATA	_CP_50, 0X2AEF
	DATA	_CP_OFF, 0X3FFF
	DATA	_PWRTE_ON, 0x3FF7	; This changes per device
	DATA	_PWRTE_OFF, 0X3FFF
	DATA	_WDT_ON, 0X3FFF
	DATA	_WDT_OFF, 0X3FFB
	DATA	_LP_OSC, 0X3FFC
	DATA	_XT_OSC, 0X3FFD
	DATA	_HS_OSC, 0X3FFE
	DATA	_RC_OSC, 0X3FFF


	DATA	INDF, 0			;Register Files
	DATA	TMR0, 1
	DATA	PCL, 2
	DATA	STATUS, 3
	DATA	FSR, 4
	DATA	PORTA, 5
	DATA	PORTB, 6
	DATA	PORTC, 7		; Processor-specific
	DATA	PORTD, 8		; Register Files
	DATA	PORTE, 9
	DATA	PCLATH, 0x0A
	DATA	INTCON, 0x0B
	DATA	PIR1, 0XC
	DATA	TMR1L, 0XE
	DATA	TMR1H, 0XF
	DATA	T1CON, 0X10
	DATA	TMR2, 0X11
	DATA	T2CON, 0X12
	DATA	SSPBUF, 0X13
	DATA	SSPCON, 0X14
	DATA	CCPR1L, 0X15
	DATA	CCPR1H, 0X16
	DATA	CCP1CON, 0X17
	DATA	ADRES, 0x1E		; ADC_CONFIG 1 Reg. Files
	DATA	ADCON0, 0X1F

	DATA	OPTION_REG, 0x81
	DATA	TRISA, 0X85
	DATA	TRISB, 0X86
	DATA	TRISC, 0X87
	DATA	TRISD, 0X88
	DATA	TRISE, 0X89
	DATA	PIE1, 0X8C
	DATA	PCON, 0X8E
	DATA	PR2, 0X92
	DATA	SSPADD, 0X93
	DATA	SSPSTAT, 0X94
	DATA	ADCON1, 0X9F

	DATA	PORTF , 0X0107
	DATA	PORTG , 0X0108
	DATA	LCDSE , 0X010D
	DATA	LCDPS , 0X010E
	DATA	LCDCON, 0X010F
	DATA	LCDD00, 0X0110
	DATA	LCDD01, 0X0111
	DATA	LCDD02, 0X0112
	DATA	LCDD03, 0X0113
	DATA	LCDD04, 0X0114
	DATA	LCDD05, 0X0115
	DATA	LCDD06, 0X0116
	DATA	LCDD07, 0X0117
	DATA	LCDD08, 0X0118
	DATA	LCDD09, 0X0119
	DATA	LCDD10, 0X011A
	DATA	LCDD11, 0X011B
	DATA	LCDD12, 0X011C
	DATA	LCDD13, 0X011D
	DATA	LCDD14, 0X011E
	DATA	LCDD15, 0X011F

	DATA	TRISF , 0X0187
	DATA	TRISG , 0X0188


	DATA	ADCS1, 7		; ADCON0
	DATA	ADCS0, 6
	DATA	CHS2, 5
	DATA	CHS1, 4
	DATA	CHS0, 3
	DATA	GO, 2
	DATA	NOT_DONE, 2
	DATA	GO_DONE, 2
	DATA	ADON, 0

	DATA	PCFG2, 2		; ADCON1
	DATA	PCFG1, 1
	DATA	PCFG0, 0

	
	DATA	CCP1X, 5		; CCP1CON
	DATA	CCP1Y, 4
	DATA	CCP1M3, 3
	DATA	CCP1M2, 2
	DATA	CCP1M1, 1
	DATA	CCP1M0, 0

	DATA	NOT_POR, 1		; PCON

	DATA	LCDIE, 7		; PIE1
	DATA	ADIE, 6
	DATA	SSPIE, 3
	DATA	CCP1IE, 2
	DATA	TMR2IE, 1
	DATA	TMR1IE, 0

	DATA	LCDIF, 7		; PIR1
	DATA	ADIF, 6	
	DATA	SSPIF, 3
	DATA	CCP1IF, 2
	DATA	TMR2IF, 1
	DATA	TMR1IF, 0

	DATA	WCOL, 7			; SSPCON
	DATA	SSPOV, 6	
	DATA	SSPEN, 5
	DATA	CKP, 4
	DATA	SSPM3, 3
	DATA	SSPM2, 2
	DATA	SSPM1, 1
	DATA	SSPM0, 0

	DATA	D, 5			; SSPSTAT
	DATA	I2C_DATA, 5
	DATA	NOT_A, 5
	DATA	NOT_ADDRESS, 5
	DATA	D_A, 5
	DATA	DATA_ADDRESS, 5
	DATA	P, 4
	DATA	I2C_STOP, 4
	DATA	S, 3
	DATA	I2C_START, 3
	DATA	R, 2
	DATA	I2C_READ, 2
	DATA	NOT_W, 2
	DATA	NOT_WRITE, 2
	DATA	R_W, 2
	DATA	READ_WRITE, 2
	DATA	UA, 1
	DATA	BF, 0


	DATA	T1CKPS1, 5		; T1CON
	DATA	T1CKPS0, 4
	DATA	T1OSCEN, 3
	DATA	T1INSYNC, 2
	DATA	TMR1CS, 1
	DATA	TMR1ON, 0

	DATA	TOUTPS3, 6		; T2CON
	DATA	TOUTPS2, 5
	DATA	TOUTPS1, 4
	DATA	TOUTPS0, 3
	DATA	TMR2ON, 2
	DATA	T2CKPS1, 1
	DATA	T2CKPS0, 0

	DATA	IBF, 7			; TRISE
	DATA	OBF, 6
	DATA	IBOV, 5
	DATA	PSPMODE, 4
	DATA	TRISE2, 2
	DATA	TRISE1, 1
	DATA	TRISE0, 0

	DATA	GIE, 7			; INTCON
	DATA	PEIE, 6
	DATA	T0IE, 5
	DATA	INTE, 4
	DATA	RBIE, 3
	DATA	T0IF, 2
	DATA	INTF, 1
	DATA	RBIF, 0	

	DATA	NOT_RBPU, 7		; OPTION
	DATA	INTEDG, 6
	DATA	T0CS, 5
	DATA	T0SE, 4
	DATA	PSA, 3
	DATA	PS2, 2
	DATA	PS1, 1
	DATA	PS0, 0


	DATA	IRP, 7			;STATUS
	DATA	RP1, 6
	DATA	RP0, 5
	DATA	NOT_TO, 4
	DATA	NOT_PD, 3
	DATA	Z, 2
	DATA	DC, 1
	DATA	C, 0

	END
