blob: 87df3f928a91238ac89fac887dfcaf4f69dc7e91 (
plain)
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
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
|
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 1
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00001 ;--------------------------------------------------------
00002 ; File Created by SDCC : free open source ANSI-C Compiler
00003 ; Version 2.7.4 #4943 (Oct 27 2007) (UNIX)
00004 ; This file was generated Fri Jun 13 14:34:00 2008
00005 ;--------------------------------------------------------
00006 ; PIC port for the 14-bit core
00007 ;--------------------------------------------------------
00008 ; .module serial2
00009 list p=16f648a
00010 radix dec
00011 include "p16f648a.inc"
00001 LIST
00002 ; P16F648A.INC Standard Header File, Version 1.00 Microchip Technology, Inc.
00264 LIST
00012 ;--------------------------------------------------------
00013 ; external declarations
00014 ;--------------------------------------------------------
00015 extern _flashLED
00016 extern _LEDon
00017 extern _setFlash
00018 extern _uartTransmit
00019 extern _sendReply
00020 extern _sendMessage
00021 extern _sendDataByte
00022 extern _endMessage
00023 extern _sendMessageISR
00024 extern _sendDataByteISR
00025 extern _endMessageISR
00026 extern _releaseLock
00027 extern _serialInterruptHandler
00028 extern _packetReady
00029 extern _uartNotifyReceive
00030 extern _serial_init
00031 extern _CCP1CON_bits
00032 extern _CMCON_bits
00033 extern _EECON1_bits
00034 extern _INTCON_bits
00035 extern _OPTION_REG_bits
00036 extern _PCON_bits
00037 extern _PIE1_bits
00038 extern _PIR1_bits
00039 extern _PORTA_bits
00040 extern _PORTB_bits
00041 extern _RCSTA_bits
00042 extern _STATUS_bits
00043 extern _T1CON_bits
00044 extern _T2CON_bits
00045 extern _TRISA_bits
00046 extern _TRISB_bits
00047 extern _TXSTA_bits
00048 extern _VRCON_bits
00049 extern _serialStatus
00050 extern _INDF
00051 extern _TMR0
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 2
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00052 extern _PCL
00053 extern _STATUS
00054 extern _FSR
00055 extern _PORTA
00056 extern _PORTB
00057 extern _PCLATH
00058 extern _INTCON
00059 extern _PIR1
00060 extern _TMR1L
00061 extern _TMR1H
00062 extern _T1CON
00063 extern _TMR2
00064 extern _T2CON
00065 extern _CCPR1L
00066 extern _CCPR1H
00067 extern _CCP1CON
00068 extern _RCSTA
00069 extern _TXREG
00070 extern _RCREG
00071 extern _CMCON
00072 extern _OPTION_REG
00073 extern _TRISA
00074 extern _TRISB
00075 extern _PIE1
00076 extern _PCON
00077 extern _PR2
00078 extern _TXSTA
00079 extern _SPBRG
00080 extern _EEDATA
00081 extern _EEADR
00082 extern _EECON1
00083 extern _EECON2
00084 extern _VRCON
00085
00086 extern PSAVE
00087 extern SSAVE
00088 extern WSAVE
00089 extern STK12
00090 extern STK11
00091 extern STK10
00092 extern STK09
00093 extern STK08
00094 extern STK07
00095 extern STK06
00096 extern STK05
00097 extern STK04
00098 extern STK03
00099 extern STK02
00100 extern STK01
00101 extern STK00
00102 ;--------------------------------------------------------
00103 ; global declarations
00104 ;--------------------------------------------------------
00105 global _clearwdt
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 3
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00106 global _delay_10us
00107 global _buffer
00108 global _transmitBuffer
00109 global _sendPacket
00110
00111 ;--------------------------------------------------------
00112 ; global definitions
00113 ;--------------------------------------------------------
00114 UD_serial2_0 udata
00115 _buffer res 16
00116
00117 UD_serial2_1 udata
00118 _transmitBuffer res 16
00119
00120 UD_serial2_2 udata
00121 _sendPacket res 16
00122
00123 ;--------------------------------------------------------
00124 ; absolute symbol definitions
00125 ;--------------------------------------------------------
00126 ;--------------------------------------------------------
00127 ; compiler-defined variables
00128 ;--------------------------------------------------------
00129 ;--------------------------------------------------------
00130 ; initialized data
00131 ;--------------------------------------------------------
00132 ;--------------------------------------------------------
00133 ; overlayable items in internal ram
00134 ;--------------------------------------------------------
00135 ; udata_ovr
00136 ;--------------------------------------------------------
00137 ; code
00138 ;--------------------------------------------------------
00139 code_serial2 code
00140 ;***
00141 ; pBlock Stats: dbName = C
00142 ;***
00143 ;entry: _clearwdt ;Function start
00144 ; 2 exit points
00145 ;has an exit
00146 ;; Starting pCode block
0000 00147 _clearwdt ;Function start
00148 ; 2 exit points
0000 0064 00149 CLRWDT
00150
0001 0008 00151 RETURN
00152 ; exit point of _clearwdt
00153
00154 ;***
00155 ; pBlock Stats: dbName = C
00156 ;***
00157 ;entry: _delay_10us ;Function start
00158 ; 2 exit points
00159 ;has an exit
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 4
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00160 ;; Starting pCode block
0002 00161 _delay_10us ;Function start
00162 ; 2 exit points
0002 0000 00163 NOP
0003 0000 00164 NOP
0004 0000 00165 NOP
0005 0000 00166 NOP
0006 0000 00167 NOP
0007 0000 00168 NOP
0008 0000 00169 NOP
0009 0000 00170 NOP
000A 0000 00171 NOP
000B 0000 00172 NOP
00173
000C 0008 00174 RETURN
00175 ; exit point of _delay_10us
00176
00177
00178 ; code size estimation:
00179 ; 2+ 0 = 2 instructions ( 4 byte)
00180
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 5
SYMBOL TABLE
LABEL VALUE
ADEN 00000003
BRGH 00000002
C 00000000
C1INV 00000004
C1OUT 00000006
C2INV 00000005
C2OUT 00000007
CCP1CON 00000017
CCP1IE 00000002
CCP1IF 00000002
CCP1M0 00000000
CCP1M1 00000001
CCP1M2 00000002
CCP1M3 00000003
CCP1X 00000005
CCP1Y 00000004
CCPR1H 00000016
CCPR1L 00000015
CIS 00000003
CM0 00000000
CM1 00000001
CM2 00000002
CMCON 0000001F
CMIE 00000006
CMIF 00000006
CREN 00000004
CSRC 00000007
DC 00000001
EEADR 0000009B
EECON1 0000009C
EECON2 0000009D
EEDATA 0000009A
EEIE 00000007
EEIF 00000007
F 00000001
FERR 00000002
FSR 00000004
GIE 00000007
INDF 00000000
INTCON 0000000B
INTE 00000004
INTEDG 00000006
INTF 00000001
IRP 00000007
NOT_BO 00000000
NOT_BOD 00000000
NOT_BOR 00000000
NOT_PD 00000003
NOT_POR 00000001
NOT_RBPU 00000007
NOT_T1SYNC 00000002
NOT_TO 00000004
OERR 00000001
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 6
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
OPTION_REG 00000081
OSCF 00000003
PCL 00000002
PCLATH 0000000A
PCON 0000008E
PEIE 00000006
PIE1 0000008C
PIR1 0000000C
PORTA 00000005
PORTB 00000006
PR2 00000092
PS0 00000000
PS1 00000001
PS2 00000002
PSA 00000003
PSAVE 00000000
RBIE 00000003
RBIF 00000000
RCIE 00000005
RCIF 00000005
RCREG 0000001A
RCSTA 00000018
RD 00000000
RP0 00000005
RP1 00000006
RX9 00000006
RX9D 00000000
SPBRG 00000099
SPEN 00000007
SREN 00000005
SSAVE 00000000
STATUS 00000003
STK00 00000000
STK01 00000000
STK02 00000000
STK03 00000000
STK04 00000000
STK05 00000000
STK06 00000000
STK07 00000000
STK08 00000000
STK09 00000000
STK10 00000000
STK11 00000000
STK12 00000000
SYNC 00000004
T0CS 00000005
T0IE 00000005
T0IF 00000002
T0SE 00000004
T1CKPS0 00000004
T1CKPS1 00000005
T1CON 00000010
T1OSCEN 00000003
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 7
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
T2CKPS0 00000000
T2CKPS1 00000001
T2CON 00000012
TMR0 00000001
TMR1CS 00000001
TMR1H 0000000F
TMR1IE 00000000
TMR1IF 00000000
TMR1L 0000000E
TMR1ON 00000000
TMR2 00000011
TMR2IE 00000001
TMR2IF 00000001
TMR2ON 00000002
TOUTPS0 00000003
TOUTPS1 00000004
TOUTPS2 00000005
TOUTPS3 00000006
TRISA 00000085
TRISB 00000086
TRMT 00000001
TX9 00000006
TX9D 00000000
TXEN 00000005
TXIE 00000004
TXIF 00000004
TXREG 00000019
TXSTA 00000098
VR0 00000000
VR1 00000001
VR2 00000002
VR3 00000003
VRCON 0000009F
VREN 00000007
VROE 00000006
VRR 00000005
W 00000000
WR 00000001
WREN 00000002
WRERR 00000003
WSAVE 00000000
Z 00000002
_BODEN_OFF 00003FBF
_BODEN_ON 00003FFF
_BOREN_OFF 00003FBF
_BOREN_ON 00003FFF
_CCP1CON 00000000
_CCP1CON_bits 00000000
_CCPR1H 00000000
_CCPR1L 00000000
_CMCON 00000000
_CMCON_bits 00000000
_CP_OFF 00003FFF
_CP_ON 00001FFF
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 8
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
_DATA_CP_OFF 00003FFF
_DATA_CP_ON 00003EFF
_EEADR 00000000
_EECON1 00000000
_EECON1_bits 00000000
_EECON2 00000000
_EEDATA 00000000
_ER_OSC_CLKOUT 00003FFF
_ER_OSC_NOCLKOUT 00003FFE
_EXTCLK_OSC 00003FEF
_FSR 00000000
_HS_OSC 00003FEE
_INDF 00000000
_INTCON 00000000
_INTCON_bits 00000000
_INTOSC_OSC_CLKOUT 00003FFD
_INTOSC_OSC_NOCLKOUT 00003FFC
_INTRC_OSC_CLKOUT 00003FFD
_INTRC_OSC_NOCLKOUT 00003FFC
_LEDon 00000000
_LP_OSC 00003FEC
_LVP_OFF 00003F7F
_LVP_ON 00003FFF
_MCLRE_OFF 00003FDF
_MCLRE_ON 00003FFF
_OPTION_REG 00000000
_OPTION_REG_bits 00000000
_PCL 00000000
_PCLATH 00000000
_PCON 00000000
_PCON_bits 00000000
_PIE1 00000000
_PIE1_bits 00000000
_PIR1 00000000
_PIR1_bits 00000000
_PORTA 00000000
_PORTA_bits 00000000
_PORTB 00000000
_PORTB_bits 00000000
_PR2 00000000
_PWRTE_OFF 00003FFF
_PWRTE_ON 00003FF7
_RCREG 00000000
_RCSTA 00000000
_RCSTA_bits 00000000
_RC_OSC_CLKOUT 00003FFF
_RC_OSC_NOCLKOUT 00003FFE
_SPBRG 00000000
_STATUS 00000000
_STATUS_bits 00000000
_T1CON 00000000
_T1CON_bits 00000000
_T2CON 00000000
_T2CON_bits 00000000
gpasm-0.13.4 beta serial2.asm 6-13-2008 14:34:00 PAGE 9
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
_TMR0 00000000
_TMR1H 00000000
_TMR1L 00000000
_TMR2 00000000
_TRISA 00000000
_TRISA_bits 00000000
_TRISB 00000000
_TRISB_bits 00000000
_TXREG 00000000
_TXSTA 00000000
_TXSTA_bits 00000000
_VRCON 00000000
_VRCON_bits 00000000
_WDT_OFF 00003FFB
_WDT_ON 00003FFF
_XT_OSC 00003FED
__16F648A 00000001
_buffer 00000000
_clearwdt 00000000
_delay_10us 00000002
_endMessage 00000000
_endMessageISR 00000000
_flashLED 00000000
_packetReady 00000000
_releaseLock 00000000
_sendDataByte 00000000
_sendDataByteISR 00000000
_sendMessage 00000000
_sendMessageISR 00000000
_sendPacket 00000000
_sendReply 00000000
_serialInterruptHandler 00000000
_serialStatus 00000000
_serial_init 00000000
_setFlash 00000000
_transmitBuffer 00000000
_uartNotifyReceive 00000000
_uartTransmit 00000000
Errors : 0
Warnings : 0 reported, 0 suppressed
Messages : 0 reported, 0 suppressed
|