2
; P17C752.INC Standard Header File, Version 1.0 Microchip Technology, Inc.
5
; This header file defines configurations, registers, and other useful bits of
6
; information for the PIC17C752 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 /PIC17C752
14
; 2. LIST directive in the source file
16
; 3. Processor Type entry in the MPASM full-screen interface
18
;==========================================================================
22
;==========================================================================
26
;1.00 05/01/98 Initial Release
27
;1.01 05/13/98 Replaced original 17C752 with what was once called 17C752A
29
;==========================================================================
33
;==========================================================================
36
MESSG "Processor-header file mismatch. Verify selected processor."
39
;==========================================================================
41
; Register Definitions
43
;==========================================================================
62
;----- Register Files -----------------------------------------------------
81
;----- Bank 0 -------------------------------------------------------------
88
RCREG EQU H'0014' ; Backward compatibility only
90
TXSTA EQU H'0015' ; Backward compatibility only
92
TXREG EQU H'0016' ; Backward compatibility only
94
SPBRG EQU H'0017' ; Backward compatibility only
97
;----- Bank 1 -------------------------------------------------------------
105
PIR EQU H'0116' ; Backward compatibility only
107
PIE EQU H'0117' ; Backward compatibility only
110
;----- Bank 2 -------------------------------------------------------------
124
;----- Bank 3 -------------------------------------------------------------
135
;----- Bank 4 -------------------------------------------------------------
146
;----- Bank 5 -------------------------------------------------------------
157
;----- Bank 6 -------------------------------------------------------------
165
;----- Bank 7 -------------------------------------------------------------
175
;----- Unbanked -----------------------------------------------------------
178
PL EQU H'0018' ; Backward compatibility only
180
PH EQU H'0019' ; Backward compatibility only
182
;----- Special Function Register Bit Definitions --------------------------
184
;----- ALUSTA Bits --------------------------------------------------------
195
;----- CPUSTA Bits --------------------------------------------------------
208
;----- INTSTA Bits --------------------------------------------------------
219
;----- PIR1 Bits ----------------------------------------------------------
227
TXIF EQU H'0001' ; Backward compatibility only
229
RCIF EQU H'0000' ; Backward compatibility only
232
;----- PIE1 Bits -----------------------------------------------------------
240
TXIE EQU H'0001' ; Backward compatibility only
242
RCIE EQU H'0000' ; Backward compatibility only
245
;----- PORTA Bits ---------------------------------------------------------
250
;----- RCSTA1 and 2 Bits --------------------------------------------------
254
RC9 EQU H'0006' ; Backward compatibility only
255
NOT_RC8 EQU H'0006' ; Backward compatibility only
256
RC8_9 EQU H'0006' ; Backward compatibility only
262
RCD8 EQU H'0000' ; Backward compatibility only
264
;----- T0STA Bits --------------------------------------------------------
270
PS3 EQU H'0004' ; Backward compatibility only
272
PS2 EQU H'0003' ; Backward compatibility only
274
PS1 EQU H'0002' ; Backward compatibility only
276
PS0 EQU H'0001' ; Backward compatibility only
278
;----- TCON1 Bits ---------------------------------------------------------
289
;----- TCON2 Bits ---------------------------------------------------------
303
;----- PIR2 Bits ----------------------------------------------------------
313
;----- PIE2 Bits ----------------------------------------------------------
323
;----- TXSTA1 and 2 Bits --------------------------------------------------
327
NOT_TX8 EQU H'0006' ; Backward compatibility only
328
TX8_9 EQU H'0006' ; Backward compatibility only
333
TXD8 EQU H'0000' ; Backward compatibility only
335
;----- ADCON0 Bits --------------------------------------------------------
346
;----- ADCON1 Bits --------------------------------------------------------
356
;----- SSPCON1 Bits -------------------------------------------------------
367
;----- SSPCON2 Bits -------------------------------------------------------
381
;----- SSPSTAT Bits -------------------------------------------------------
396
;----- TCON3 Bits ---------------------------------------------------------
406
;----- PW2DCL Bit ---------------------------------------------------------
411
;----- PW3DCL Bit ---------------------------------------------------------
415
;==========================================================================
419
;==========================================================================
422
__BADRAM H'118'-H'11F', H'218'-H'21F', H'318'-H'31F'
423
__BADRAM H'412', H'418'-H'4FF'
424
__BADRAM H'518'-H'5FF'
425
__BADRAM H'615'-H'6FF'
426
__BADRAM H'717'-H'7FF'
428
;==========================================================================
432
;==========================================================================
434
_PMC_MODE EQU H'7FAF'
435
_XMC_MODE EQU H'FFBF'
439
_BODEN_OFF EQU H'BFFF'
440
_BODEN_ON EQU H'FFFF'
442
_WDT_NORM EQU H'FFF3'