2
; P16F727.INC Standard Header File, Version 2.01 Microchip Technology, Inc.
5
; This header file defines configurations, registers, and other useful bits of
6
; information for the PIC16F727 microcontroller.
7
; These names are taken to match 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 /PIC16F727
14
; 2. LIST directive in the source file
16
; 3. Processor Type entry in the MPASM full-screen interface
18
;==========================================================================
22
;==========================================================================
25
;0.01 10/09/06 Initial template
26
;0.02 10/25/07 Remove 188h from BADRAM (actually ANSELD)
27
;1.00 11/06/07 Version 1.00 (no changes)
28
;1.01 11/27/07 Remove 108h-109h (CPSCON0 and CPSCON1) from BADRAM
29
;2.00 12/18/07 Flatten include files not to include one master file
30
;2.01 01/31/08 Correct swapped definitions of VCAP_RA5 and VCAP_RA6
33
;==========================================================================
37
;==========================================================================
40
MESSG "Processor-header file mismatch. Verify selected processor."
44
;==========================================================================
46
; Register Definitions
48
;==========================================================================
53
;----- Register Files------------------------------------------------------
88
OPTION_REG EQU H'0081'
116
PMDATA EQU H'010C' ; Backward compatibility only
118
PMADR EQU H'010D' ; Backward compatibility only
129
;----- STATUS Bits --------------------------------------------------------
140
;----- INTCON Bits --------------------------------------------------------
148
IOCIE EQU H'0003' ;; USE IOCIE instead of RBIE to be generic
153
IOCIF EQU H'0000' ;; USE IOCIF instead of RBIF to be generic
155
;----- PIR1 Bits ----------------------------------------------------------
166
;----- PIR2 Bits ----------------------------------------------------------
170
;----- T1CON Bits ---------------------------------------------------------
177
NOT_T1SYNC EQU H'0002'
178
T1INSYNC EQU H'0002' ; Backward compatibility only
182
;----- T2CON Bits ---------------------------------------------------------
192
;----- SSPCON Bits --------------------------------------------------------
203
;----- CCP1CON Bits -------------------------------------------------------
207
CCP1X EQU H'0005' ; Backward compatibility only
208
CCP1Y EQU H'0004' ; Backward compatibility only
214
;----- RCSTA Bits ---------------------------------------------------------
218
RC9 EQU H'0006' ; Backward compatibility only
219
NOT_RC8 EQU H'0006' ; Backward compatibility only
220
RC8_9 EQU H'0006' ; Backward compatibility only
227
RCD8 EQU H'0000' ; Backward compatibility only
229
;----- CCP2CON Bits -------------------------------------------------------
232
CCP2X EQU H'0005' ; Backward compatibility only
233
CCP2Y EQU H'0004' ; Backward compatibility only
239
;----- ADCON0 Bits --------------------------------------------------------
250
;----- OPTION_REG Bits -----------------------------------------------------
261
;----- PIE1 Bits ----------------------------------------------------------
272
;----- PIE2 Bits ----------------------------------------------------------
276
;----- PCON Bits ----------------------------------------------------------
279
NOT_BO EQU H'0000' ;; Backwards Compatability only
283
;----- T1GCON Bits ----------------------------------------------------------
289
T1G_NOT_DONE EQU H'0003'
290
T1GGO_DONE EQU H'0003'
296
;----- OSCCON Bits -------------------------------------------------------
303
;----- OSCTUNE Bits -------------------------------------------------------
313
;----- SSPSTAT Bits -------------------------------------------------------
320
NOT_ADDRESS EQU H'0005'
322
DATA_ADDRESS EQU H'0005'
326
I2C_START EQU H'0003'
330
NOT_WRITE EQU H'0002'
332
READ_WRITE EQU H'0002'
337
;----- WPUB Bits -------------------------------------------------------
348
;----- WPU Bits -------------------------------------------------------
350
WPU7 EQU H'0007' ; Backward Compatability only
351
WPU6 EQU H'0006' ; Backward Compatability only
352
WPU5 EQU H'0005' ; Backward Compatability only
353
WPU4 EQU H'0004' ; Backward Compatability only
354
WPU3 EQU H'0003' ; Backward Compatability only
355
WPU2 EQU H'0002' ; Backward Compatability only
356
WPU1 EQU H'0001' ; Backward Compatability only
357
WPU0 EQU H'0000' ; Backward Compatability only
359
;----- IOCB Bits -------------------------------------------------------
371
;----- IOC Bits -------------------------------------------------------
373
IOC7 EQU H'0007' ; Backward Compatability only
374
IOC6 EQU H'0006' ; Backward Compatability only
375
IOC5 EQU H'0005' ; Backward Compatability only
376
IOC4 EQU H'0004' ; Backward Compatability only
377
IOC3 EQU H'0003' ; Backward Compatability only
378
IOC2 EQU H'0002' ; Backward Compatability only
379
IOC1 EQU H'0001' ; Backward Compatability only
380
IOC0 EQU H'0000' ; Backward Compatability only
383
;----- TXSTA Bits ---------------------------------------------------------
387
NOT_TX8 EQU H'0006' ; Backward compatibility only
388
TX8_9 EQU H'0006' ; Backward compatibility only
394
TXD8 EQU H'0000' ; Backward compatibility only
397
;----- APFCON Bits ---------------------------------------------------------
403
;----- FVRCON Bits --------------------------------------------------------
410
;----- ADCON1 Bits --------------------------------------------------------
420
;----- CPSCON0 Bits ---------------------------------------------------------
428
;----- CPSCON1 Bits ---------------------------------------------------------
435
;----- ANSELA Bits ---------------------------------------------------------
444
;----- ANSELB Bits ---------------------------------------------------------
453
;----- ANSELD Bits ---------------------------------------------------------
464
;----- ANSELE Bits ---------------------------------------------------------
470
;----- PMCON1 Bits --------------------------------------------------------
477
;==========================================================================
481
;==========================================================================
485
;==========================================================================
489
;==========================================================================
494
;----- Configuration Word 1 Bits ------------------------------------------
496
_DEBUG_ON EQU H'1FFF'
497
_DEBUG_OFF EQU H'3FFF'
502
_BORV_1_9 EQU H'3FFF'
503
_BORV_2_5 EQU H'3BFF'
506
_BOR_NSLEEP EQU H'3DFF'
513
_MCLRE_ON EQU H'3FFF' ; Backward compatibility only
514
_MCLR_DIS EQU H'3FDF'
515
_MCLRE_OFF EQU H'3FDF' ; Backward compatibility only
518
_PWRTE_ON EQU H'3FEF' ; Backward compatibility only
519
_PWRT_DIS EQU H'3FFF'
520
_PWRTE_OFF EQU H'3FFF' ; Backward compatibility only
529
_INTRC_OSC_NOCLKOUT EQU H'3FFC'
530
_INTRC_OSC_CLKOUT EQU H'3FFD'
531
_INTOSCIO EQU H'3FFC'
533
_EXTRC_OSC_NOCLKOUT EQU H'3FFE'
534
_EXTRC_OSC_CLKOUT EQU H'3FFF'
539
;----- Configuration Word 2 Bits ------------------------------------------
541
_VCAP_DIS EQU H'3FFF'
542
_VCAP_RA6 EQU H'3FEF'
543
_VCAP_RA5 EQU H'3FDF'
544
_VCAP_RA0 EQU H'3FCF'
546
;==========================================================================
550
;==========================================================================
552
__BADRAM H'97', H'9A'-H'9B', H'9E'
553
__BADRAM H'105'-H'107'
554
__BADRAM H'187', H'18D'-H'18F'