-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblinkled.lst
315 lines (288 loc) · 12.4 KB
/
blinkled.lst
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
MPASM 5.46 BLINKLED.ASM 10-8-2015 8:26:41 PAGE 1
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00001 #include<P16F628A.INC>
00001 LIST
00002
00003 ;==========================================================================
00004 ; MPASM PIC16F628A processor include
00005 ;
00006 ; (c) Copyright 1999-2012 Microchip Technology, All rights reserved
00007 ;==========================================================================
00008
00385 LIST
00000001 00002 tmr0 equ 01h
00000020 00003 counter equ 20h
0000 1683 00004 bsf STATUS,5
0001 3000 00005 movlw 00h
0002 0086 00006 movwf PORTB
0003 30D7 00007 movlw b'11010111'
0004 0081 00008 movwf tmr0
0005 1283 00009 bcf STATUS,5
0006 168B 00010 bsf INTCON,5
0007 00011 start:
0007 30FF 00012 movlw 0ffh
0008 0086 00013 movwf PORTB
0009 200D 00014 call delay
000A 0186 00015 clrf PORTB
000B 200D 00016 call delay
000C 2807 00017 goto start
00018
000D 00019 delay:
000D 301E 00020 movlw d'30'
000E 00A0 00021 movwf counter
000F 00022 frank:
000F 1D0B 00023 btfss INTCON,2
0010 280F 00024 goto frank
0011 110B 00025 bcf INTCON,2
0012 0BA0 00026 decfsz counter,1
0013 280F 00027 goto frank
0014 110B 00028 bcf INTCON,2
0015 0008 00029 return
00030 end
MPASM 5.46 BLINKLED.ASM 10-8-2015 8:26:41 PAGE 2
SYMBOL TABLE
LABEL VALUE
ADDEN 00000003
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
CCPR1 00000015
CCPR1H 00000016
CCPR1L 00000015
CIS 00000003
CM0 00000000
CM1 00000001
CM2 00000002
CMCON 0000001F
CMIE 00000006
CMIF 00000006
CREN 00000004
CSRC 00000007
DATA_CP_OFF 00003FFF
DATA_CP_ON 00003EFF
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
MPASM 5.46 BLINKLED.ASM 10-8-2015 8:26:41 PAGE 3
SYMBOL TABLE
LABEL VALUE
NOT_RBPU 00000007
NOT_T1SYNC 00000002
NOT_TO 00000004
OERR 00000001
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
RA0 00000000
RA1 00000001
RA2 00000002
RA3 00000003
RA4 00000004
RA5 00000005
RA6 00000006
RA7 00000007
RB0 00000000
RB1 00000001
RB2 00000002
RB3 00000003
RB4 00000004
RB5 00000005
RB6 00000006
RB7 00000007
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
STATUS 00000003
SYNC 00000004
T0CS 00000005
T0IE 00000005
MPASM 5.46 BLINKLED.ASM 10-8-2015 8:26:41 PAGE 4
SYMBOL TABLE
LABEL VALUE
T0IF 00000002
T0SE 00000004
T1CKPS0 00000004
T1CKPS1 00000005
T1CON 00000010
T1OSCEN 00000003
T2CKPS0 00000000
T2CKPS1 00000001
T2CON 00000012
TMR0 00000001
TMR0IE 00000005
TMR0IF 00000002
TMR1 0000000E
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
TRISA0 00000000
TRISA1 00000001
TRISA2 00000002
TRISA3 00000003
TRISA4 00000004
TRISA5 00000005
TRISA6 00000006
TRISA7 00000007
TRISB 00000086
TRISB0 00000000
TRISB1 00000001
TRISB2 00000002
TRISB3 00000003
TRISB4 00000004
TRISB5 00000005
TRISB6 00000006
TRISB7 00000007
TRMT 00000001
TX9 00000006
TX9D 00000000
TXEN 00000005
TXIE 00000004
TXIF 00000004
TXREG 00000019
TXSTA 00000098
MPASM 5.46 BLINKLED.ASM 10-8-2015 8:26:41 PAGE 5
SYMBOL TABLE
LABEL VALUE
VR0 00000000
VR1 00000001
VR2 00000002
VR3 00000003
VRCON 0000009F
VREN 00000007
VROE 00000006
VRR 00000005
W 00000000
WR 00000001
WREN 00000002
WRERR 00000003
Z 00000002
_BODEN_OFF 00003FBF
_BODEN_ON 00003FFF
_BOREN_OFF 00003FBF
_BOREN_ON 00003FFF
_CONFIG 00002007
_CPD_OFF 00003FFF
_CPD_ON 00003EFF
_CP_OFF 00003FFF
_CP_ON 00001FFF
_DEVID1 00002006
_ER_OSC_CLKOUT 00003FFF
_ER_OSC_NOCLKOUT 00003FFE
_EXTCLK_OSC 00003FEF
_FOSC_ECIO 00003FEF
_FOSC_EXTRCCLK 00003FFF
_FOSC_EXTRCIO 00003FFE
_FOSC_HS 00003FEE
_FOSC_INTOSCCLK 00003FFD
_FOSC_INTOSCIO 00003FFC
_FOSC_LP 00003FEC
_FOSC_XT 00003FED
_HS_OSC 00003FEE
_IDLOC0 00002000
_IDLOC1 00002001
_IDLOC2 00002002
_IDLOC3 00002003
_INTOSC_OSC_CLKOUT 00003FFD
_INTOSC_OSC_NOCLKOUT 00003FFC
_INTRC_OSC_CLKOUT 00003FFD
_INTRC_OSC_NOCLKOUT 00003FFC
_LP_OSC 00003FEC
_LVP_OFF 00003F7F
_LVP_ON 00003FFF
_MCLRE_OFF 00003FDF
_MCLRE_ON 00003FFF
_PWRTE_OFF 00003FFF
_PWRTE_ON 00003FF7
_RC_OSC_CLKOUT 00003FFF
_RC_OSC_NOCLKOUT 00003FFE
_WDTE_OFF 00003FFB
MPASM 5.46 BLINKLED.ASM 10-8-2015 8:26:41 PAGE 6
SYMBOL TABLE
LABEL VALUE
_WDTE_ON 00003FFF
_WDT_OFF 00003FFB
_WDT_ON 00003FFF
_XT_OSC 00003FED
__16F628A 00000001
__DEBUG 1
counter 00000020
delay 0000000D
frank 0000000F
start 00000007
tmr0 00000001
MEMORY USAGE MAP ('X' = Used, '-' = Unused)
0000 : XXXXXXXXXXXXXXXX XXXXXX---------- ---------------- ----------------
All other memory blocks unused.
Program Memory Words Used: 22
Program Memory Words Free: 2026
Errors : 0
Warnings : 0 reported, 0 suppressed
Messages : 0 reported, 0 suppressed