⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msp430dayii_democ.lst

📁 MSP430 RTC temperature compensation
💻 LST
📖 第 1 页 / 共 5 页
字号:
03d4 0066652e     1163     .long 0x66652e
03d8 00000000     1164     .long 0x0
03dc 00000152     1165     .long DBG129
03e0 00000000     1166     .long 0x0
03e4 01650001     1167     .long 0x1650001
03e8 00000000     1168     .long 0x0
03ec 0000010f     1169     .long 0x10f
03f0 00000000     1170     .long 0x0
03f4 00000000     1171     .long 0x0
03f8 00000000     1172     .long 0x0
                  1173     .pseg MSP430dayII_democ_code
                  1174 DBG111:
                  1175     .dbgseg dbg_syms
03fc 73616c66     1176     .long 0x73616c66
0400 44434c68     1177     .long 0x44434c68
0404 00000154     1178     .long DBG111
0408 00000000     1179     .long 0x0
040c 00ff0001     1180     .long 0xff0001
                  1181 ; }
                  1182 ; void calibrate()
                  1183 DBG110:
0410 00000000     1184     .long 0x0
0414 0000003c     1185     .long DBG136
0418 00000154     1186     .long _calibrate
041c 00000040     1187     .long 0x40
0420 01020001     1188     .long 0x1020001
0424 00000438     1189     .long DBG114
0428 000000de     1190     .long DBG133-DBG134
042c 00000308     1191     .long DBG135
0430 000004d8     1192     .long DBG132
0434 00000000     1193     .long 0x0
                  1194     .pseg MSP430dayII_democ_code
                  1195 DBG134:
                  1196     .dbgseg dbg_syms
                  1197 DBG114:
0438 0066622e     1198     .long 0x66622e
043c 00000000     1199     .long 0x0
0440 00000154     1200     .long DBG134
0444 00000000     1201     .long 0x0
0448 01650001     1202     .long 0x1650001
044c 00000000     1203     .long 0x0
0450 00000111     1204     .long 0x111
0454 00000000     1205     .long 0x0
0458 00000500     1206     .long DBG137
045c 00000000     1207     .long 0x0
                  1208     .dbgseg dbg_line
                  1209 DBG135:
0308 00000410     1210     .long DBG110
030c 00000000     1211     .long 0x0
0310 00000154     1212     .long _calibrate
0314 00000001     1213     .long 0x1
0318 00000156     1214     .long DBG139
031c 00000002     1215     .long 0x2
0320 00000156     1216     .long DBG140
0324 00000003     1217     .long 0x3
0328 00000158     1218     .long DBG141
032c 00000005     1219     .long 0x5
0330 0000015e     1220     .long DBG142
0334 00000006     1221     .long 0x6
0338 00000164     1222     .long DBG143
033c 00000007     1223     .long 0x7
0340 0000016a     1224     .long DBG144
0344 00000009     1225     .long 0x9
0348 0000016c     1226     .long DBG145
034c 0000000a     1227     .long 0xa
0350 00000170     1228     .long DBG146
0354 0000000b     1229     .long 0xb
0358 0000017c     1230     .long DBG147
035c 0000000d     1231     .long 0xd
0360 00000190     1232     .long DBG148
0364 0000000e     1233     .long 0xe
0368 00000190     1234     .long DBG149
036c 00000013     1235     .long 0x13
0370 00000196     1236     .long DBG150
0374 00000015     1237     .long 0x15
0378 000001a0     1238     .long DBG151
037c 00000016     1239     .long 0x16
0380 000001a0     1240     .long DBG152
0384 00000017     1241     .long 0x17
0388 000001a4     1242     .long DBG153
038c 00000018     1243     .long 0x18
0390 000001a4     1244     .long DBG154
0394 00000019     1245     .long 0x19
0398 000001ae     1246     .long DBG155
039c 0000001a     1247     .long 0x1a
03a0 000001ae     1248     .long DBG156
03a4 0000001b     1249     .long 0x1b
03a8 000001b2     1250     .long DBG157
03ac 0000001c     1251     .long 0x1c
03b0 000001b2     1252     .long DBG158
03b4 0000001e     1253     .long 0x1e
03b8 000001b8     1254     .long DBG159
03bc 0000001f     1255     .long 0x1f
03c0 000001be     1256     .long DBG160
03c4 00000021     1257     .long 0x21
03c8 000001c2     1258     .long DBG161
03cc 00000023     1259     .long 0x23
03d0 000001c6     1260     .long DBG162
03d4 00000024     1261     .long 0x24
03d8 000001ca     1262     .long DBG163
03dc 00000025     1263     .long 0x25
03e0 000001cc     1264     .long DBG164
03e4 00000026     1265     .long 0x26
03e8 000001e0     1266     .long DBG165
03ec 00000027     1267     .long 0x27
03f0 000001e4     1268     .long DBG166
03f4 00000028     1269     .long 0x28
03f8 000001e8     1270     .long DBG167
03fc 00000029     1271     .long 0x29
0400 000001ee     1272     .long DBG168
0404 0000002b     1273     .long 0x2b
0408 000001f8     1274     .long DBG169
040c 0000002c     1275     .long 0x2c
0410 00000202     1276     .long DBG170
0414 0000002d     1277     .long 0x2d
0418 0000020e     1278     .long DBG171
041c 0000002e     1279     .long 0x2e
0420 0000021a     1280     .long DBG172
0424 00000030     1281     .long 0x30
0428 0000021c     1282     .long DBG173
042c 00000032     1283     .long 0x32
0430 00000222     1284     .long DBG174
0434 00000033     1285     .long 0x33
0438 00000228     1286     .long DBG175
043c 00000034     1287     .long 0x34
0440 0000022e     1288     .long DBG176
0444 00000036     1289     .long 0x36
                  1290     .pseg MSP430dayII_democ_code
                  1291     .global _calibrate
                  1292 _calibrate:
0154 0412         1293     push    r4
                  1294 DBG140:
                  1295 DBG139:
                  1296 DBG138:
                  1297 ; ENTRY
                  1298 ; {
                  1299 ;   _DINT();
0156 32c2         1300     dint
                  1301 DBG141:
                  1302 ;   Refcal_ram = 1500;                    
0158 b240dc050600 1303     mov #0x5dc,&_Refcal_ram
                  1304 DBG142:
                  1305 ;   Temp_slope_ram = 761;                 
015e b240f9020800 1306     mov #0x2f9,&_Temp_slope_ram
                  1307 DBG143:
                  1308 ;   Temp_offset_ram = 469;                
0164 b240d5010a00 1309     mov #0x1d5,&_Temp_offset_ram
                  1310 DBG144:
                  1311 ;   _EINT();
016a 32d2         1312     eint
                  1313 DBG145:
                  1314 ;   getTemp();
016c b0123202     1315     call    #_getTemp
                  1316 DBG146:
                  1317 ;   Temp_offset_ram += tempF - 75;        
0170 1c420400     1318     mov &_tempF,r12
0174 3c804b00     1319     sub #0x4b,r12
0178 825c0a00     1320     add r12,&_Temp_offset_ram
                  1321 DBG147:
                  1322 ;   while( !((~P2IN & (1 << 1) ) && (~P2IN & (1 << 2) )))
                  1323 calibrate_L1:
017c 5c422800     1324     mov.b   &0x28,r12
0180 3ce3         1325     inv r12
0182 2cb3         1326     bit #0x2,r12
0184 0524         1327     jeq calibrate_L3
0186 5c422800     1328     mov.b   &0x28,r12
018a 3ce3         1329     inv r12
018c 2cb2         1330     bit #0x4,r12
018e 1e20         1331     jne calibrate_L2
                  1332 calibrate_L3:
                  1333 ;   {
                  1334 DBG148:
                  1335 ;     P2IE &= ~( (1 << 1)  + (1 << 2) );        
                  1336 DBG149:
0190 f2f0f9002d00 1337     and.b   #0xf9,&0x2d
                  1338 DBG150:
                  1339 ;     if(~P2IN & (1 << 1) )
0196 5c422800     1340     mov.b   &0x28,r12
019a 3ce3         1341     inv r12
019c 2cb3         1342     bit #0x2,r12
019e 0224         1343     jeq calibrate_L4
                  1344 DBG152:
                  1345 DBG151:
                  1346 ;     {
                  1347 ;       Temp_offset_ram++;
01a0 92530a00     1348     add #0x1,&_Temp_offset_ram
                  1349 DBG154:
                  1350 DBG153:
                  1351 ;     }
                  1352 calibrate_L4:
                  1353 ;     if(~P2IN & (1 << 2) )
01a4 5c422800     1354     mov.b   &0x28,r12
01a8 3ce3         1355     inv r12
01aa 2cb2         1356     bit #0x4,r12
01ac 0224         1357     jeq calibrate_L5
                  1358 DBG156:
                  1359 DBG155:
                  1360 ;     {
                  1361 ;       Temp_offset_ram--;
01ae 92830a00     1362     sub #0x1,&_Temp_offset_ram
                  1363 DBG158:
                  1364 DBG157:
                  1365 ;     }
                  1366 calibrate_L5:
                  1367 ;     TACCR1  = 10000;                       
01b2 b24010277401 1368     mov #0x2710,&0x174
                  1369 DBG159:
                  1370 ;     TACCTL1  = (0x0010) ;                       
01b8 b24010006401 1371     mov #0x10,&0x164
                  1372 DBG160:
                  1373 ;     _BIS_SR( ( (0x0080) + (0x0040) + (0x0010) ) ) ;                               
01be 32d0d000     1374     bis #0xd0,sr
                  1375 DBG161:
                  1376 ;     getTemp();
01c2 b0123202     1377     call    #_getTemp
                  1378 DBG162:
                  1379 ;     displayTemp();
01c6 b012a602     1380     call    #_displayTemp
                  1381 DBG163:
01ca d83f         1382     jmp calibrate_L1
                  1383 calibrate_L2:
                  1384 ;   }
                  1385 ;   while( (~P2IN & (1 << 1) ) && (~P2IN & (1 << 2) ) ); 
                  1386 DBG164:
                  1387 calibrate_L6:
01cc 5c422800     1388     mov.b   &0x28,r12
01d0 3ce3         1389     inv r12
01d2 2cb3         1390     bit #0x2,r12
01d4 0524         1391     jeq calibrate_L7
01d6 5c422800     1392     mov.b   &0x28,r12
01da 3ce3         1393     inv r12
01dc 2cb2         1394     bit #0x4,r12
01de f623         1395     jne calibrate_L6
                  1396 calibrate_L7:
                  1397 ;   tempModeTime = 0;
                  1398 DBG165:
01e0 82430200     1399     mov #0x0,&_tempModeTime
                  1400 DBG166:
                  1401 ;   P2IFG = 0;
01e4 c2432b00     1402     mov.b   #0x0,&0x2b
                  1403 DBG167:
                  1404 ;   P2IE |= (1 << 1)  + (1 << 2) ;           
01e8 f2d006002d00 1405     bis.b   #0x6,&0x2d
                  1406 DBG168:
                  1407 ;   flash_erase((void *)&Refcal_flash);   
01ee 34400200     1408     mov #_Refcal_flash,r4
01f2 0c44         1409     mov r4,r12
01f4 b012f004     1410     call    #_flash_erase
                  1411 DBG169:
                  1412 ;   flash_write((void *)&Refcal_flash, Refcal_ram);
01f8 1d420600     1413     mov &_Refcal_ram,r13
01fc 0c44         1414     mov r4,r12
01fe b012ca04     1415     call    #_flash_write
                  1416 DBG170:
                  1417 ;   flash_write((void *)&Temp_offset, Temp_offset_ram);
0202 1d420a00     1418     mov &_Temp_offset_ram,r13
0206 3c400400     1419     mov #_Temp_offset,r12
020a b012ca04     1420     call    #_flash_write
                  1421 DBG171:
                  1422 ;   flash_write((void *)&Temp_slope, Temp_slope_ram);
020e 1d420800     1423     mov &_Temp_slope_ram,r13
0212 3c400000     1424     mov #_Temp_slope,r12
0216 b012ca04     1425     call    #_flash_write
                  1426 DBG172:
                  1427 ;   _EINT();                              
021a 32d2         1428     eint
                  1429 DBG173:
                  1430 ;   Refcal_ram = Refcal_flash;            
021c 924202000600 1431     mov &_Refcal_flash,&_Refcal_ram
                  1432 DBG174:
                  1433 ;   Temp_slope_ram = Temp_slope;          
0222 924200000800 1434     mov &_Temp_slope,&_Temp_slope_ram
                  1435 DBG175:
                  1436 ;   Temp_offset_ram = Temp_offset;        
0228 924204000a00 1437     mov &_Temp_offset,&_Temp_offset_ram
                  1438 DBG177:
                  1439 DBG176:
                  1440 ; EXIT
                  1441 ; .temp1 at stkloc 0 (0x0) size 2
022e 3441         1442     pop r4
0230 3041         1443     ret
                  1444     .dbgseg dbg_syms
0460 00000000     1445     .long 0x0
0464 00000024     1446     .long DBG60
0468 00000002     1447     .long 0x2
046c 00000000     1448     .long 0x0
0470 00010002     1449     .long 0x10002
0474 00000000     1450     .long 0x0
0478 00000108   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -