~ubuntu-branches/ubuntu/utopic/gputils/utopic

« back to all changes in this revision

Viewing changes to header/p16c64a.inc

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Tardieu
  • Date: 2002-01-21 11:14:50 UTC
  • Revision ID: james.westby@ubuntu.com-20020121111450-rayvyl8jzft0ninr
Tags: upstream-0.10.0
ImportĀ upstreamĀ versionĀ 0.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
        LIST
 
2
; P16C64A.INC  Standard Header File, Version 1.02    Microchip Technology, Inc.
 
3
        NOLIST
 
4
 
 
5
; This header file defines configurations, registers, and other useful bits of
 
6
; information for the PIC16C64A microcontroller.  These names are taken to match 
 
7
; the data sheets as closely as possible.  
 
8
 
 
9
; Note that the processor must be selected before this file is 
 
10
; included.  The processor may be selected the following ways:
 
11
 
 
12
;       1. Command line switch:
 
13
;               C:\ MPASM MYFILE.ASM /PIC16C64A
 
14
;       2. LIST directive in the source file
 
15
;               LIST   P=PIC16C64A
 
16
;       3. Processor Type entry in the MPASM full-screen interface
 
17
 
 
18
;==========================================================================
 
19
;
 
20
;       Revision History
 
21
;
 
22
;==========================================================================
 
23
 
 
24
;Rev:   Date:    Reason:
 
25
 
 
26
;1.02   04/22/96 Added TRISE bits
 
27
;1.01   11/28/95 Added NOT_BOR to match revised datasheet
 
28
;1.00   10/31/95 Initial Release
 
29
 
 
30
;==========================================================================
 
31
;
 
32
;       Verify Processor
 
33
;
 
34
;==========================================================================
 
35
 
 
36
        IFNDEF __16C64A
 
37
           MESSG "Processor-header file mismatch.  Verify selected processor."
 
38
        ENDIF
 
39
 
 
40
;==========================================================================
 
41
;
 
42
;       Register Definitions
 
43
;
 
44
;==========================================================================
 
45
 
 
46
W                            EQU     H'0000'
 
47
F                            EQU     H'0001'
 
48
 
 
49
;----- Register Files------------------------------------------------------
 
50
 
 
51
INDF                         EQU     H'0000'
 
52
TMR0                         EQU     H'0001'
 
53
PCL                          EQU     H'0002'
 
54
STATUS                       EQU     H'0003'
 
55
FSR                          EQU     H'0004'
 
56
PORTA                        EQU     H'0005'
 
57
PORTB                        EQU     H'0006'
 
58
PORTC                        EQU     H'0007'
 
59
PORTD                        EQU     H'0008'
 
60
PORTE                        EQU     H'0009'
 
61
PCLATH                       EQU     H'000A'
 
62
INTCON                       EQU     H'000B'
 
63
PIR1                         EQU     H'000C'
 
64
TMR1L                        EQU     H'000E'
 
65
TMR1H                        EQU     H'000F'
 
66
T1CON                        EQU     H'0010'
 
67
TMR2                         EQU     H'0011'
 
68
T2CON                        EQU     H'0012'
 
69
SSPBUF                       EQU     H'0013'
 
70
SSPCON                       EQU     H'0014'
 
71
CCPR1L                       EQU     H'0015'
 
72
CCPR1H                       EQU     H'0016'
 
73
CCP1CON                      EQU     H'0017'
 
74
 
 
75
OPTION_REG                   EQU     H'0081'
 
76
TRISA                        EQU     H'0085'
 
77
TRISB                        EQU     H'0086'
 
78
TRISC                        EQU     H'0087'
 
79
TRISD                        EQU     H'0088'
 
80
TRISE                        EQU     H'0089'
 
81
PIE1                         EQU     H'008C'
 
82
PCON                         EQU     H'008E'
 
83
PR2                          EQU     H'0092'
 
84
SSPADD                       EQU     H'0093'
 
85
SSPSTAT                      EQU     H'0094'
 
86
 
 
87
;----- STATUS Bits --------------------------------------------------------
 
88
 
 
89
IRP                          EQU     H'0007'
 
90
RP1                          EQU     H'0006'
 
91
RP0                          EQU     H'0005'
 
92
NOT_TO                       EQU     H'0004'
 
93
NOT_PD                       EQU     H'0003'
 
94
Z                            EQU     H'0002'
 
95
DC                           EQU     H'0001'
 
96
C                            EQU     H'0000'
 
97
 
 
98
;----- INTCON Bits --------------------------------------------------------
 
99
 
 
100
GIE                          EQU     H'0007'
 
101
PEIE                         EQU     H'0006'
 
102
T0IE                         EQU     H'0005'
 
103
INTE                         EQU     H'0004'
 
104
RBIE                         EQU     H'0003'
 
105
T0IF                         EQU     H'0002'
 
106
INTF                         EQU     H'0001'
 
107
RBIF                         EQU     H'0000'
 
108
 
 
109
;----- PIR1 Bits ----------------------------------------------------------
 
110
 
 
111
PSPIF                        EQU     H'0007'
 
112
SSPIF                        EQU     H'0003'
 
113
CCP1IF                       EQU     H'0002'
 
114
TMR2IF                       EQU     H'0001'
 
115
TMR1IF                       EQU     H'0000'
 
116
 
 
117
;----- T1CON Bits ---------------------------------------------------------
 
118
 
 
119
T1CKPS1                      EQU     H'0005'
 
120
T1CKPS0                      EQU     H'0004'
 
121
T1OSCEN                      EQU     H'0003'
 
122
NOT_T1SYNC                   EQU     H'0002'
 
123
T1INSYNC                     EQU     H'0002'    ; Backward compatibility only
 
124
TMR1CS                       EQU     H'0001'
 
125
TMR1ON                       EQU     H'0000'
 
126
 
 
127
;----- T2CON Bits ---------------------------------------------------------
 
128
 
 
129
TOUTPS3                      EQU     H'0006'
 
130
TOUTPS2                      EQU     H'0005'
 
131
TOUTPS1                      EQU     H'0004'
 
132
TOUTPS0                      EQU     H'0003'
 
133
TMR2ON                       EQU     H'0002'
 
134
T2CKPS1                      EQU     H'0001'
 
135
T2CKPS0                      EQU     H'0000'
 
136
 
 
137
;----- SSPCON Bits --------------------------------------------------------
 
138
 
 
139
WCOL                         EQU     H'0007'
 
140
SSPOV                        EQU     H'0006'
 
141
SSPEN                        EQU     H'0005'
 
142
CKP                          EQU     H'0004'
 
143
SSPM3                        EQU     H'0003'
 
144
SSPM2                        EQU     H'0002'
 
145
SSPM1                        EQU     H'0001'
 
146
SSPM0                        EQU     H'0000'
 
147
 
 
148
;----- CCP1CON Bits -------------------------------------------------------
 
149
 
 
150
CCP1X                        EQU     H'0005'
 
151
CCP1Y                        EQU     H'0004'
 
152
CCP1M3                       EQU     H'0003'
 
153
CCP1M2                       EQU     H'0002'
 
154
CCP1M1                       EQU     H'0001'
 
155
CCP1M0                       EQU     H'0000'
 
156
 
 
157
;----- OPTION Bits --------------------------------------------------------
 
158
 
 
159
NOT_RBPU                     EQU     H'0007'
 
160
INTEDG                       EQU     H'0006'
 
161
T0CS                         EQU     H'0005'
 
162
T0SE                         EQU     H'0004'
 
163
PSA                          EQU     H'0003'
 
164
PS2                          EQU     H'0002'
 
165
PS1                          EQU     H'0001'
 
166
PS0                          EQU     H'0000'
 
167
 
 
168
;----- TRISE Bits ---------------------------------------------------------
 
169
 
 
170
IBF                          EQU     H'0007'
 
171
OBF                          EQU     H'0006'
 
172
IBOV                         EQU     H'0005'
 
173
PSPMODE                      EQU     H'0004'
 
174
TRISE2                       EQU     H'0002'
 
175
TRISE1                       EQU     H'0001'
 
176
TRISE0                       EQU     H'0000'
 
177
 
 
178
;----- PIE1 Bits ----------------------------------------------------------
 
179
 
 
180
PSPIE                        EQU     H'0007'
 
181
SSPIE                        EQU     H'0003'
 
182
CCP1IE                       EQU     H'0002'
 
183
TMR2IE                       EQU     H'0001'
 
184
TMR1IE                       EQU     H'0000'
 
185
 
 
186
;----- PCON Bits ----------------------------------------------------------
 
187
 
 
188
NOT_POR                      EQU     H'0001'
 
189
NOT_BO                       EQU     H'0000'
 
190
NOT_BOR                      EQU     H'0000'
 
191
 
 
192
;----- SSPSTAT Bits -------------------------------------------------------
 
193
 
 
194
D                            EQU     H'0005'
 
195
I2C_DATA                     EQU     H'0005'
 
196
NOT_A                        EQU     H'0005'
 
197
NOT_ADDRESS                  EQU     H'0005'
 
198
D_A                          EQU     H'0005'
 
199
DATA_ADDRESS                 EQU     H'0005'
 
200
P                            EQU     H'0004'
 
201
I2C_STOP                     EQU     H'0004'
 
202
S                            EQU     H'0003'
 
203
I2C_START                    EQU     H'0003'
 
204
R                            EQU     H'0002'
 
205
I2C_READ                     EQU     H'0002'
 
206
NOT_W                        EQU     H'0002'
 
207
NOT_WRITE                    EQU     H'0002'
 
208
R_W                          EQU     H'0002'
 
209
READ_WRITE                   EQU     H'0002'
 
210
UA                           EQU     H'0001'
 
211
BF                           EQU     H'0000'
 
212
 
 
213
;==========================================================================
 
214
;
 
215
;       RAM Definition
 
216
;
 
217
;==========================================================================
 
218
 
 
219
        __MAXRAM H'BF'
 
220
        __BADRAM H'0D', H'18'-H'1F', H'8D', H'8F'-H'91', H'95'-H'9F'
 
221
 
 
222
;==========================================================================
 
223
;
 
224
;       Configuration Bits
 
225
;
 
226
;==========================================================================
 
227
 
 
228
_BODEN_ON                    EQU     H'3FFF'
 
229
_BODEN_OFF                   EQU     H'3FBF'
 
230
_CP_ALL                      EQU     H'00CF'
 
231
_CP_75                       EQU     H'15DF'
 
232
_CP_50                       EQU     H'2AEF'
 
233
_CP_OFF                      EQU     H'3FFF'
 
234
_PWRTE_OFF                   EQU     H'3FFF'
 
235
_PWRTE_ON                    EQU     H'3FF7'
 
236
_WDT_ON                      EQU     H'3FFF'
 
237
_WDT_OFF                     EQU     H'3FFB'
 
238
_LP_OSC                      EQU     H'3FFC'
 
239
_XT_OSC                      EQU     H'3FFD'
 
240
_HS_OSC                      EQU     H'3FFE'
 
241
_RC_OSC                      EQU     H'3FFF'
 
242
 
 
243
        LIST