2
; P16C771.INC Standard Header File, Version 1.00 Microchip Technology, Inc.
5
; This header file defines configurations, registers, and other useful bits of
6
; information for the PIC16C771 microcontroller. These names are taken to match
7
; the data sheets as closely as possible.
9
; Note that the processor must be selected before this file is
10
; included. The processor may be selected the following ways:
12
; 1. Command line switch:
13
; C:\ MPASM MYFILE.ASM /PIC16C771
14
; 2. LIST directive in the source file
16
; 3. Processor Type entry in the MPASM full-screen interface
18
;==========================================================================
22
;==========================================================================
26
;1.00 14Sep1999 Initial Release
28
;==========================================================================
32
;==========================================================================
35
MESSG "Processor-header file mismatch. Verify selected processor."
38
;==========================================================================
40
; Register Definitions
42
;==========================================================================
47
;----- Register Files------------------------------------------------------
73
OPTION_REG EQU H'0081'
98
;----- STATUS Bits --------------------------------------------------------
109
;----- INTCON Bits --------------------------------------------------------
120
;----- PIR1 Bits ----------------------------------------------------------
128
;----- PIR2 Bits ----------------------------------------------------------
133
;----- T1CON Bits ---------------------------------------------------------
138
NOT_T1SYNC EQU H'0002'
139
T1INSYNC EQU H'0002' ; Backward compatibility only
143
;----- T2CON Bits ---------------------------------------------------------
153
;----- SSPCON Bits --------------------------------------------------------
164
;----- CCP1CON Bits -------------------------------------------------------
175
;----- ADCON0 Bits --------------------------------------------------------
188
;----- OPTION_REG Bits ----------------------------------------------------
200
;----- PIE1 Bits ----------------------------------------------------------
208
;----- PIE2 Bits ----------------------------------------------------------
213
;----- PCON Bits ----------------------------------------------------------
220
;----- SSPCON2 Bits --------------------------------------------------------
231
;----- SSPSTAT Bits -------------------------------------------------------
238
NOT_ADDRESS EQU H'0005'
240
DATA_ADDRESS EQU H'0005'
244
I2C_START EQU H'0003'
248
NOT_WRITE EQU H'0002'
250
READ_WRITE EQU H'0002'
254
;----- REFCON Bits --------------------------------------------------------
261
;----- LVDCON Bits --------------------------------------------------------
270
;----- ADCON1 Bits --------------------------------------------------------
277
;----- PMCON1 Bits --------------------------------------------------------
282
;==========================================================================
286
;==========================================================================
289
__BADRAM H'07'-H'09', H'18'-H'1D'
291
__BADRAM H'8F'-H'90', H'98'-H'9A'
292
__BADRAM H'105', H'107'-H'109', H'110'-H'11F'
293
__BADRAM H'185', H'187'-H'189', H'18D'-H'1EF'
295
;==========================================================================
299
;==========================================================================
301
_BODEN_ON EQU H'3FFF'
302
_BODEN_OFF EQU H'3FBF'
309
_PWRTE_OFF EQU H'3FFF'
310
_PWRTE_ON EQU H'3FEF'
311
_MCLRE_OFF EQU H'3FDF'
312
_MCLRE_ON EQU H'3FFF'
315
_ER_OSC_CLKOUT EQU H'3FFF'
316
_ER_OSC_NOCLKOUT EQU H'3FFE'
317
_INTRC_OSC_CLKOUT EQU H'3FFD'
318
_INTRC_OSC_NOCLKOUT EQU H'3FFC'
319
_EXTCLK_OSC EQU H'3FFB'