/usr/share/gputils/header/p16c5x.inc is in gputils-common 0.13.7-1.
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 | LIST
; P16C5X.INC Standard Header File, Version 4.00 Microchip Technology, Inc.
NOLIST
; This header file defines configurations, registers, and other useful bits of
; information for the 16C5X microcontrollers. These names are taken to match
; the data sheets as closely as possible. The microcontrollers included
; in this file are:
; 16C52
; 16C54
; 16CR54
; 16C54A
; 16CR54A
; 16C54B
; 16CR54B
; 16C54C
; 16CR54C
; 16C55
; 16C55A
; 16C56
; 16C56A
; 16CR56A
; 16C57
; 16CR57A
; 16CR57B
; 16C57C
; 16CR57C
; 16C58A
; 16CR58A
; 16C58B
; 16CR58B
; There is one group of symbols that is valid for all microcontrollers.
; Each microcontroller in this family also has its own section of special
; symbols. 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 /P16C54A
; 2. LIST directive in the source file
; LIST P=16C54A
; 3. Processor Type entry in the MPASM full-screen interface
;==========================================================================
;
; Revision History
;
;==========================================================================
;Rev: Date: Reason:
;4.12 12/02/02 Added 16CR57C
;4.11 01/18/99 Added 54C, 55A, 57C for interim release
;4.10 08/18/98 Added new processor for MPASM v2.16
;4.00 06/05/97 Added new processors for MPASM v2.00
;3.30 07/16/96 Aligned processors with MPASM v1.40
;3.20 04/09/96 Added 16C54B, 16CR56B, 16C58B
;3.10 12/14/95 Added 16C52
;3.01 11/29/95 Removed 16CR55
;3.00 10/16/95 Added new processors for MPASM v1.30
;2.04 07/26/95 Reformatted for readability
;2.03 06/21/95 Removed leading spaces
;==========================================================================
;
; Generic Definitions
;
;==========================================================================
W EQU H'0000'
F EQU H'0001'
;----- Register Files -----------------------------------------------------
INDF EQU H'0000'
TMR0 EQU H'0001'
PCL EQU H'0002'
STATUS EQU H'0003'
FSR EQU H'0004'
PORTA EQU H'0005'
PORTB EQU H'0006'
;----- STATUS Bits --------------------------------------------------------
PA2 EQU H'0007'
PA1 EQU H'0006'
PA0 EQU H'0005'
NOT_TO EQU H'0004'
NOT_PD EQU H'0003'
Z EQU H'0002'
DC EQU H'0001'
C EQU H'0000'
;----- OPTION Bits --------------------------------------------------------
T0CS EQU H'0005'
T0SE EQU H'0004'
PSA EQU H'0003'
PS2 EQU H'0002'
PS1 EQU H'0001'
PS0 EQU H'0000'
;==========================================================================
;
; Processor-dependent Definitions
;
;==========================================================================
IFDEF __16C52
__MAXRAM H'01F'
#define __CONFIG_2
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C54
__MAXRAM H'01F'
#define __CONFIG_0
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR54
__MAXRAM H'01F'
#define __CONFIG_0
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C54A
__MAXRAM H'01F'
#define __CONFIG_0
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR54A
__MAXRAM H'01F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C54B
__MAXRAM H'01F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C54C
__MAXRAM H'01F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR54B
__MAXRAM H'01F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR54C
__MAXRAM H'01F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C55
; Register Files
PORTC EQU H'0007'
__MAXRAM H'01F'
#define __CONFIG_0
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C55A
; Register Files
PORTC EQU H'0007'
__MAXRAM H'01F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C56
__MAXRAM H'01F'
#define __CONFIG_0
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C56A
__MAXRAM H'01F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR56A
__MAXRAM H'01F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C57
; Register Files
PORTC EQU H'0007'
__MAXRAM H'07F'
#define __CONFIG_0
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C57C
; Register Files
PORTC EQU H'0007'
__MAXRAM H'07F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR57A
; Register Files
PORTC EQU H'0007'
__MAXRAM H'07F'
#define __CONFIG_0
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR57B
; Register Files
PORTC EQU H'0007'
__MAXRAM H'07F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR57C
; Register Files
PORTC EQU H'0007'
__MAXRAM H'07F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C58A
__MAXRAM H'07F'
#define __CONFIG_0
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR58A
__MAXRAM H'07F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16C58B
__MAXRAM H'07F'
#define __CONFIG_1
ENDIF
;--------------------------------------------------------------------------
IFDEF __16CR58B
__MAXRAM H'07F'
#define __CONFIG_1
ENDIF
;==========================================================================
;
; Configuration Bits
;
;==========================================================================
IFDEF __CONFIG_0
_CP_ON EQU H'0FF7'
_CP_OFF EQU H'0FFF'
_WDT_ON EQU H'0FFF'
_WDT_OFF EQU H'0FFB'
_LP_OSC EQU H'0FFC'
_XT_OSC EQU H'0FFD'
_HS_OSC EQU H'0FFE'
_RC_OSC EQU H'0FFF'
#undefine __CONFIG_0
ENDIF
IFDEF __CONFIG_1
_CP_ON EQU H'0007'
_CP_OFF EQU H'0FFF'
_WDT_ON EQU H'0FFF'
_WDT_OFF EQU H'0FFB'
_LP_OSC EQU H'0FFC'
_XT_OSC EQU H'0FFD'
_HS_OSC EQU H'0FFE'
_RC_OSC EQU H'0FFF'
#undefine __CONFIG_1
ENDIF
IFDEF __CONFIG_2
_CP_ON EQU H'0FF7'
_CP_OFF EQU H'0FFF'
_XT_OSC EQU H'0FFD'
_RC_OSC EQU H'0FFF'
#undefine __CONFIG_2
ENDIF
LIST
|