/usr/share/gputils/header/p17c752.inc is in gputils-common 1.4.0-0.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | LIST
; P17C752.INC Standard Header File, Version 1.0 Microchip Technology, Inc.
NOLIST
; This header file defines configurations, registers, and other useful bits of
; information for the PIC17C752 microcontroller. These names are taken to match
; the data sheets as closely as possible.
; Note that the processor must be selected before this file is
; included. The processor may be selected the following ways:
; 1. Command line switch:
; C:\ MPASM MYFILE.ASM /PIC17C752
; 2. LIST directive in the source file
; LIST P=PIC17C752
; 3. Processor Type entry in the MPASM full-screen interface
;==========================================================================
;
; Revision History
;
;==========================================================================
;Rev: Date: Reason:
;1.00 05/01/98 Initial Release
;1.01 05/13/98 Replaced original 17C752 with what was once called 17C752A
;==========================================================================
;
; Verify Processor
;
;==========================================================================
IFNDEF __17C752
MESSG "Processor-header file mismatch. Verify selected processor."
ENDIF
;==========================================================================
;
; Register Definitions
;
;==========================================================================
W EQU H'0000'
F EQU H'0001'
BANK0 EQU H'0000'
BANK1 EQU H'0001'
BANK2 EQU H'0002'
BANK3 EQU H'0003'
BANK4 EQU H'0004'
BANK5 EQU H'0005'
BANK6 EQU H'0006'
BANK7 EQU H'0007'
GPR_BANK0 EQU H'0000'
GPR_BANK1 EQU H'0008'
GPR_BANK2 EQU H'0010'
GPR_BANK3 EQU H'0018'
;----- Register Files -----------------------------------------------------
INDF0 EQU H'0000'
FSR0 EQU H'0001'
PCL EQU H'0002'
PCLATH EQU H'0003'
ALUSTA EQU H'0004'
T0STA EQU H'0005'
CPUSTA EQU H'0006'
INTSTA EQU H'0007'
INDF1 EQU H'0008'
FSR1 EQU H'0009'
WREG EQU H'000A'
TMR0L EQU H'000B'
TMR0H EQU H'000C'
TBLPTRL EQU H'000D'
TBLPTRH EQU H'000E'
BSR EQU H'000F'
;----- Bank 0 -------------------------------------------------------------
PORTA EQU H'0010'
DDRB EQU H'0011'
PORTB EQU H'0012'
RCSTA EQU H'0013'
RCSTA1 EQU H'0013'
RCREG EQU H'0014' ; Backward compatibility only
RCREG1 EQU H'0014'
TXSTA EQU H'0015' ; Backward compatibility only
TXSTA1 EQU H'0015'
TXREG EQU H'0016' ; Backward compatibility only
TXREG1 EQU H'0016'
SPBRG EQU H'0017' ; Backward compatibility only
SPBRG1 EQU H'0017'
;----- Bank 1 -------------------------------------------------------------
DDRC EQU H'0110'
PORTC EQU H'0111'
DDRD EQU H'0112'
PORTD EQU H'0113'
DDRE EQU H'0114'
PORTE EQU H'0115'
PIR EQU H'0116' ; Backward compatibility only
PIR1 EQU H'0116'
PIE EQU H'0117' ; Backward compatibility only
PIE1 EQU H'0117'
;----- Bank 2 -------------------------------------------------------------
TMR1 EQU H'0210'
TMR2 EQU H'0211'
TMR3L EQU H'0212'
TMR3H EQU H'0213'
PR1 EQU H'0214'
PR2 EQU H'0215'
PR3L EQU H'0216'
PR3H EQU H'0217'
CA1L EQU H'0216'
CA1H EQU H'0217'
;----- Bank 3 -------------------------------------------------------------
PW1DCL EQU H'0310'
PW2DCL EQU H'0311'
PW1DCH EQU H'0312'
PW2DCH EQU H'0313'
CA2L EQU H'0314'
CA2H EQU H'0315'
TCON1 EQU H'0316'
TCON2 EQU H'0317'
;----- Bank 4 -------------------------------------------------------------
PIR2 EQU H'0410'
PIE2 EQU H'0411'
RCSTA2 EQU H'0413'
RCREG2 EQU H'0414'
TXSTA2 EQU H'0415'
TXREG2 EQU H'0416'
SPBRG2 EQU H'0417'
;----- Bank 5 -------------------------------------------------------------
DDRF EQU H'0510'
PORTF EQU H'0511'
DDRG EQU H'0512'
PORTG EQU H'0513'
ADCON0 EQU H'0514'
ADCON1 EQU H'0515'
ADRESL EQU H'0516'
ADRESH EQU H'0517'
;----- Bank 6 -------------------------------------------------------------
SSPADD EQU H'0610'
SSPCON1 EQU H'0611'
SSPCON2 EQU H'0612'
SSPSTAT EQU H'0613'
SSPBUF EQU H'0614'
;----- Bank 7 -------------------------------------------------------------
PW3DCL EQU H'0710'
PW3DCH EQU H'0711'
CA3L EQU H'0712'
CA3H EQU H'0713'
CA4L EQU H'0714'
CA4H EQU H'0715'
TCON3 EQU H'0716'
;----- Unbanked -----------------------------------------------------------
PRODL EQU H'0018'
PL EQU H'0018' ; Backward compatibility only
PRODH EQU H'0019'
PH EQU H'0019' ; Backward compatibility only
;----- Special Function Register Bit Definitions --------------------------
;
;----- ALUSTA Bits --------------------------------------------------------
FS3 EQU H'0007'
FS2 EQU H'0006'
FS1 EQU H'0005'
FS0 EQU H'0004'
OV EQU H'0003'
Z EQU H'0002'
DC EQU H'0001'
C EQU H'0000'
;----- CPUSTA Bits --------------------------------------------------------
STKAV EQU H'0005'
GLINTD EQU H'0004'
NOT_TO EQU H'0003'
TO EQU H'0003'
NOT_PD EQU H'0002'
PD EQU H'0002'
NOT_POR EQU H'0001'
POR EQU H'0001'
NOT_BOR EQU H'0000'
BOR EQU H'0000'
;----- INTSTA Bits --------------------------------------------------------
PEIF EQU H'0007'
T0CKIF EQU H'0006'
T0IF EQU H'0005'
INTF EQU H'0004'
PEIE EQU H'0003'
T0CKIE EQU H'0002'
T0IE EQU H'0001'
INTE EQU H'0000'
;----- PIR1 Bits ----------------------------------------------------------
RBIF EQU H'0007'
TMR3IF EQU H'0006'
TMR2IF EQU H'0005'
TMR1IF EQU H'0004'
CA2IF EQU H'0003'
CA1IF EQU H'0002'
TXIF EQU H'0001' ; Backward compatibility only
TX1IF EQU H'0001'
RCIF EQU H'0000' ; Backward compatibility only
RC1IF EQU H'0000'
;----- PIE1 Bits -----------------------------------------------------------
RBIE EQU H'0007'
TMR3IE EQU H'0006'
TMR2IE EQU H'0005'
TMR1IE EQU H'0004'
CA2IE EQU H'0003'
CA1IE EQU H'0002'
TXIE EQU H'0001' ; Backward compatibility only
TX1IE EQU H'0001'
RCIE EQU H'0000' ; Backward compatibility only
RC1IE EQU H'0000'
;----- PORTA Bits ---------------------------------------------------------
NOT_RBPU EQU H'0007'
RBPU EQU H'0007'
;----- RCSTA1 and 2 Bits --------------------------------------------------
SPEN EQU H'0007'
RX9 EQU H'0006'
RC9 EQU H'0006' ; Backward compatibility only
NOT_RC8 EQU H'0006' ; Backward compatibility only
RC8_9 EQU H'0006' ; Backward compatibility only
SREN EQU H'0005'
CREN EQU H'0004'
FERR EQU H'0002'
OERR EQU H'0001'
RX9D EQU H'0000'
RCD8 EQU H'0000' ; Backward compatibility only
;----- T0STA Bits --------------------------------------------------------
INTEDG EQU H'0007'
T0SE EQU H'0006'
T0CS EQU H'0005'
T0PS3 EQU H'0004'
PS3 EQU H'0004' ; Backward compatibility only
T0PS2 EQU H'0003'
PS2 EQU H'0003' ; Backward compatibility only
T0PS1 EQU H'0002'
PS1 EQU H'0002' ; Backward compatibility only
T0PS0 EQU H'0001'
PS0 EQU H'0001' ; Backward compatibility only
;----- TCON1 Bits ---------------------------------------------------------
CA2ED1 EQU H'0007'
CA2ED0 EQU H'0006'
CA1ED1 EQU H'0005'
CA1ED0 EQU H'0004'
T16 EQU H'0003'
TMR3CS EQU H'0002'
TMR2CS EQU H'0001'
TMR1CS EQU H'0000'
;----- TCON2 Bits ---------------------------------------------------------
CA2OVF EQU H'0007'
CA1OVF EQU H'0006'
PWM2ON EQU H'0005'
PWM1ON EQU H'0004'
CA1 EQU H'0003'
NOT_PR3 EQU H'0003'
PR3 EQU H'0003'
CA1_PR3 EQU H'0003'
TMR3ON EQU H'0002'
TMR2ON EQU H'0001'
TMR1ON EQU H'0000'
;----- PIR2 Bits ----------------------------------------------------------
SSPIF EQU H'0007'
BCLIF EQU H'0006'
ADIF EQU H'0005'
CA4IF EQU H'0003'
CA3IF EQU H'0002'
TX2IF EQU H'0001'
RC2IF EQU H'0000'
;----- PIE2 Bits ----------------------------------------------------------
SSPIE EQU H'0007'
BCLIE EQU H'0006'
ADIE EQU H'0005'
CA4IE EQU H'0003'
CA3IE EQU H'0002'
TX2IE EQU H'0001'
RC2IE EQU H'0000'
;----- TXSTA1 and 2 Bits --------------------------------------------------
CSRC EQU H'0007'
TX9 EQU H'0006'
NOT_TX8 EQU H'0006' ; Backward compatibility only
TX8_9 EQU H'0006' ; Backward compatibility only
TXEN EQU H'0005'
SYNC EQU H'0004'
TRMT EQU H'0001'
TX9D EQU H'0000'
TXD8 EQU H'0000' ; Backward compatibility only
;----- ADCON0 Bits --------------------------------------------------------
CHS3 EQU H'0007'
CHS2 EQU H'0006'
CHS1 EQU H'0005'
CHS0 EQU H'0004'
GO EQU H'0002'
NOT_DONE EQU H'0002'
DONE EQU H'0002'
ADON EQU H'0000'
;----- ADCON1 Bits --------------------------------------------------------
ADCS1 EQU H'0007'
ADCS0 EQU H'0006'
ADFM EQU H'0005'
PCFG3 EQU H'0003'
PCFG2 EQU H'0002'
PCFG1 EQU H'0001'
PCFG0 EQU H'0000'
;----- SSPCON1 Bits -------------------------------------------------------
WCOL EQU H'0007'
SSPOV EQU H'0006'
SSPEN EQU H'0005'
CKP EQU H'0004'
SSPM3 EQU H'0003'
SSPM2 EQU H'0002'
SSPM1 EQU H'0001'
SSPM0 EQU H'0000'
;----- SSPCON2 Bits -------------------------------------------------------
GCEN EQU H'0007'
ACKSTAT EQU H'0006'
AKSTAT EQU H'0006'
ACKDT EQU H'0005'
AKDT EQU H'0005'
ACKEN EQU H'0004'
AKEN EQU H'0004'
RCEN EQU H'0003'
PEN EQU H'0002'
RSEN EQU H'0001'
SEN EQU H'0000'
;----- SSPSTAT Bits -------------------------------------------------------
SMP EQU H'0007'
CKE EQU H'0006'
D EQU H'0005'
NOT_A EQU H'0005'
D_A EQU H'0005'
P EQU H'0004'
S EQU H'0003'
R EQU H'0002'
NOT_W EQU H'0002'
R_W EQU H'0002'
UA EQU H'0001'
BF EQU H'0000'
;----- TCON3 Bits ---------------------------------------------------------
CA4OVF EQU H'0006'
CA3OVF EQU H'0005'
CA4ED1 EQU H'0004'
CA4ED0 EQU H'0003'
CA3ED1 EQU H'0002'
CA3ED0 EQU H'0001'
PWM3ON EQU H'0000'
;----- PW2DCL Bit ---------------------------------------------------------
TM2PW2 EQU H'0005'
;----- PW3DCL Bit ---------------------------------------------------------
TM2PW3 EQU H'0005'
;==========================================================================
;
; RAM Definition
;
;==========================================================================
__MAXRAM H'7FF'
__BADRAM H'118'-H'11F', H'218'-H'21F', H'318'-H'31F'
__BADRAM H'412', H'418'-H'4FF'
__BADRAM H'518'-H'5FF'
__BADRAM H'615'-H'6FF'
__BADRAM H'717'-H'7FF'
;==========================================================================
;
; Configuration Bits
;
;==========================================================================
_PMC_MODE EQU H'7FAF'
_XMC_MODE EQU H'FFBF'
_MC_MODE EQU H'FFEF'
_MP_MODE EQU H'FFFF'
_BODEN_OFF EQU H'BFFF'
_BODEN_ON EQU H'FFFF'
_WDT_NORM EQU H'FFF3'
_WDT_OFF EQU H'FFF3'
_WDT_64 EQU H'FFF7'
_WDT_256 EQU H'FFFB'
_WDT_1 EQU H'FFFF'
_WDT_0 EQU H'FFFF'
_LF_OSC EQU H'FFFC'
_RC_OSC EQU H'FFFD'
_XT_OSC EQU H'FFFE'
_EC_OSC EQU H'FFFF'
LIST
|