; HD62.ASM

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

	LIST	P=16C62
	INCLUDE	"p16c62.inc"



 	DATA	_CP_ALL, 0x3F8F		; This changes per device
	DATA	_CP_75, 0X3F9F
	DATA	_CP_50, 0X3FAF
	DATA	_CP_OFF, 0X3FBF
	DATA	_PWRTE_OFF, 0X3FB7
	DATA	_PWRTE_ON, 0x3FBF	; This changes per device
	DATA	_WDT_ON, 0X3FBF
	DATA	_WDT_OFF, 0X3FBB
	DATA	_LP_OSC, 0X3FBC
	DATA	_XT_OSC, 0X3FBD
	DATA	_HS_OSC, 0X3FBE
	DATA	_RC_OSC, 0X3FBF

	DATA	INDF, 0			;Register Files
	DATA	TMR0, 1
	DATA	PCL, 2
	DATA	STATUS, 3
	DATA	FSR, 4
	DATA	PORTA, 5
	DATA	PORTB, 6
	DATA	PCLATH, 0x0A
	DATA	INTCON, 0x0B
	DATA	OPTION_REG, 0x81
	DATA	TRISA, 0X85
	DATA	TRISB, 0X86
	DATA	TRISC, 0X87
	DATA	PIE1, 0X8C
	DATA	PCON, 0X8E
	DATA	PR2, 0X92
	DATA	SSPADD, 0X93
	DATA	SSPSTAT, 0X94

	DATA	PORTC, 7		; Processor Spec. Reg. Files
	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	GIE, 7			; INTCON
	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
