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

📄 rtc.lst

📁 FE42X单相防窃电电表DEMO(编译器 AQ430 AQ430 V2.0.6.5)
💻 LST
📖 第 1 页 / 共 5 页
字号:
05ac 00000040     1195     .long 0x40
05b0 01020001     1196     .long 0x1020001
05b4 000005c8     1197     .long DBG105
05b8 000000d0     1198     .long DBG112-DBG113
05bc 00000220     1199     .long DBG114
05c0 000012c0     1200     .long DBG111
05c4 00000000     1201     .long 0x0
                  1202     .pseg rtc_code
                  1203 DBG113:
                  1204     .dbgseg dbg_syms
                  1205 DBG105:
05c8 0066622e     1206     .long 0x66622e
05cc 00000000     1207     .long 0x0
05d0 00000176     1208     .long DBG113
05d4 00000000     1209     .long 0x0
05d8 01650001     1210     .long 0x1650001
05dc 00000000     1211     .long 0x0
05e0 000000a3     1212     .long 0xa3
05e4 00000000     1213     .long 0x0
05e8 000012c0     1214     .long DBG116
05ec 00000000     1215     .long 0x0
                  1216     .dbgseg dbg_line
                  1217 DBG114:
0220 000005a0     1218     .long DBG100
0224 00000000     1219     .long 0x0
0228 00000176     1220     .long _correct_rtc
022c 00000001     1221     .long 0x1
0230 00000176     1222     .long DBG118
0234 00000002     1223     .long 0x2
0238 00000176     1224     .long DBG119
023c 00000003     1225     .long 0x3
0240 00000176     1226     .long DBG120
0244 00000004     1227     .long 0x4
0248 00000180     1228     .long DBG121
024c 00000005     1229     .long 0x5
0250 000001be     1230     .long DBG122
0254 00000006     1231     .long 0x6
0258 000001c2     1232     .long DBG123
025c 00000008     1233     .long 0x8
0260 000001c8     1234     .long DBG124
0264 00000009     1235     .long 0x9
0268 000001da     1236     .long DBG125
026c 0000000a     1237     .long 0xa
0270 000001e2     1238     .long DBG126
0274 0000000e     1239     .long 0xe
0278 000001e4     1240     .long DBG127
027c 0000000f     1241     .long 0xf
0280 000001ea     1242     .long DBG128
0284 00000010     1243     .long 0x10
0288 000001ea     1244     .long DBG129
028c 00000011     1245     .long 0x11
0290 000001fa     1246     .long DBG130
0294 00000012     1247     .long 0x12
0298 00000208     1248     .long DBG131
029c 00000013     1249     .long 0x13
02a0 00000208     1250     .long DBG132
02a4 00000014     1251     .long 0x14
02a8 00000210     1252     .long DBG133
02ac 00000016     1253     .long 0x16
02b0 00000214     1254     .long DBG134
02b4 00000017     1255     .long 0x17
02b8 00000214     1256     .long DBG135
02bc 00000018     1257     .long 0x18
02c0 00000214     1258     .long DBG137
02c4 00000019     1259     .long 0x19
02c8 00000216     1260     .long DBG138
02cc 0000001a     1261     .long 0x1a
02d0 00000216     1262     .long DBG139
02d4 0000001b     1263     .long 0x1b
02d8 00000226     1264     .long DBG140
02dc 0000001c     1265     .long 0x1c
02e0 00000234     1266     .long DBG141
02e4 0000001d     1267     .long 0x1d
02e8 00000234     1268     .long DBG142
02ec 0000001e     1269     .long 0x1e
02f0 00000240     1270     .long DBG143
02f4 00000020     1271     .long 0x20
02f8 00000244     1272     .long DBG144
02fc 00000021     1273     .long 0x21
0300 00000244     1274     .long DBG145
0304 00000022     1275     .long 0x22
0308 00000244     1276     .long DBG147
030c 00000023     1277     .long 0x23
                  1278     .pseg rtc_code
                  1279     .global _correct_rtc
                  1280 _correct_rtc:
                  1281 ; ENTRY
                  1282 DBG117:
                  1283 ; temp in reg  size 4
                  1284 ; {
                  1285 DBG118:
                  1286 ;     int32 temp =0;
                  1287 DBG119:
                  1288 ;     temp = emeter.i_temperature - emeter.ul_TempSampleOffset;
                  1289 DBG120:
0176 1d421000     1290     mov &_emeter+0x10,r13
017a 1d825c00     1291     sub &_emeter+0x5c,r13
017e 0c43         1292     mov #0x0,r12
                  1293 DBG148:
                  1294 DBG121:
                  1295 ;     temp = ((((float)temp)/32768.0) * 640.0 - 343.349)/1.257 + 0.5 ; 
0180 b0120000     1296     call    #__l_to_s
                  1297 DBG149:
0184 0f43         1298     mov #0x0,r15
0186 3e400047     1299     mov #0x4700,r14
                  1300 DBG150:
018a b0120000     1301     call    #__s_div
                  1302 DBG151:
018e 0f43         1303     mov #0x0,r15
0190 3e402044     1304     mov #0x4420,r14
                  1305 DBG152:
0194 b0120000     1306     call    #__s_mul
                  1307 DBG153:
0198 3f40acac     1308     mov #0xacac,r15
019c 3e40ab43     1309     mov #0x43ab,r14
                  1310 DBG154:
01a0 b0120000     1311     call    #__s_sub
                  1312 DBG155:
01a4 3f4060e5     1313     mov #0xe560,r15
01a8 3e40a03f     1314     mov #0x3fa0,r14
                  1315 DBG156:
01ac b0120000     1316     call    #__s_div
                  1317 DBG157:
01b0 0f43         1318     mov #0x0,r15
01b2 3e40003f     1319     mov #0x3f00,r14
                  1320 DBG158:
01b6 b0120000     1321     call    #__s_add
                  1322 DBG159:
01ba b0120000     1323     call    #__s_to_l
                  1324 DBG122:
                  1325 DBG160:
                  1326 ;     emeter.i_last_temperature = (int16)temp; 
01be 824d0e00     1327     mov r13,&_emeter+0xe
                  1328 DBG123:
                  1329 ;     temp -= 25;
01c2 3d801900     1330     sub #0x19,r13
01c6 0c73         1331     subc    #0x0,r12
                  1332 DBG124:
                  1333 ;     temp = temp*temp*35* 5 ;
01c8 0f4d         1334     mov r13,r15
01ca 0e4c         1335     mov r12,r14
                  1336 DBG161:
01cc b0120000     1337     call    #__smult32
                  1338 DBG162:
01d0 3f40af00     1339     mov #0xaf,r15
01d4 0e43         1340     mov #0x0,r14
                  1341 DBG163:
01d6 b0120000     1342     call    #__smult32
                  1343 DBG125:
                  1344 DBG164:
                  1345 ;     temp = -temp;
01da 0f43         1346     mov #0x0,r15
01dc 0e43         1347     mov #0x0,r14
01de 0f8d         1348     sub r13,r15
01e0 0e7c         1349     subc    r12,r14
                  1350 DBG126:
                  1351 ;     temp += 0 ;
01e2 0e53         1352     add #0x0,r14
                  1353 DBG127:
                  1354 ;     if (rtc_correction >= 0)
01e4 82930a00     1355     cmp #0x0,&_rtc_correction+0x2
01e8 1638         1356     jl  correct_rtc_L1
                  1357 DBG129:
                  1358 DBG128:
                  1359 ;     {
                  1360 ;         rtc_correction += temp;
01ea 825f0800     1361     add r15,&_rtc_correction
01ee 826e0a00     1362     addc    r14,&_rtc_correction+0x2
01f2 1d420800     1363     mov &_rtc_correction,r13
01f6 1c420a00     1364     mov &_rtc_correction+0x2,r12
                  1365 DBG130:
                  1366 ;         if (rtc_correction >= 1000000000)
01fa 3e4000ca     1367     mov #0xca00,r14
01fe 3f409a3b     1368     mov #0x3b9a,r15
0202 0d8e         1369     sub r14,r13
0204 0c7f         1370     subc    r15,r12
0206 1e38         1371     jl  correct_rtc_L3
                  1372 DBG132:
                  1373 DBG131:
                  1374 ;         {
                  1375 ;             rtc_correction -= 1000000000;
0208 828e0800     1376     sub r14,&_rtc_correction
020c 827f0a00     1377     subc    r15,&_rtc_correction+0x2
                  1378 DBG133:
                  1379 ;             emeter.ui_meter_status |= (0x0001) ;
0210 92d30000     1380     bis #0x1,&_emeter
                  1381 DBG135:
                  1382 DBG134:
                  1383 ;         }
                  1384 correct_rtc_L2:
                  1385 DBG136:
                  1386 ;     }
                  1387 DBG137:
0214 173c         1388     jmp correct_rtc_LL2
                  1389 correct_rtc_L1:
                  1390 ;     else
                  1391 ;     {
                  1392 DBG138:
                  1393 ;         rtc_correction += temp;
                  1394 DBG139:
0216 825f0800     1395     add r15,&_rtc_correction
021a 826e0a00     1396     addc    r14,&_rtc_correction+0x2
021e 1f420800     1397     mov &_rtc_correction,r15
0222 1d420a00     1398     mov &_rtc_correction+0x2,r13
                  1399 DBG140:
                  1400 ;         if (rtc_correction <= -1000000000)
0226 3e400036     1401     mov #0x3600,r14
022a 3c4065c4     1402     mov #-0x3b9b,r12
022e 0e8f         1403     sub r15,r14
0230 0c7d         1404     subc    r13,r12
0232 0838         1405     jl  correct_rtc_L4
                  1406 DBG142:
                  1407 DBG141:
                  1408 ;         {
                  1409 ;             rtc_correction += 1000000000;
0234 b25000ca0800 1410     add #0xca00,&_rtc_correction
023a b2609a3b0a00 1411     addc    #0x3b9a,&_rtc_correction+0x2
                  1412 DBG143:
                  1413 ;             rtc_bumper();
0240 b0127001     1414     call    #_rtc_bumper
                  1415 DBG145:
                  1416 DBG144:
                  1417 ;         }
                  1418 correct_rtc_L4:
                  1419 DBG146:
                  1420 correct_rtc_L3:
                  1421 ;     }
                  1422 DBG147:
                  1423 correct_rtc_LL2:
                  1424 ; EXIT
                  1425 DBG165:
0244 3041         1426     ret
                  1427     .dbgseg dbg_syms
05f0 00000000     1428     .long 0x0
05f4 000000bc     1429     .long DBG17
05f8 00000000     1430     .long 0x0
05fc 00000000     1431     .long 0x0
0600 00010002     1432     .long 0x10002
0604 00000000     1433     .long 0x0
0608 000002bc     1434     .long DBG18
060c 00000002     1435     .long 0x2
0610 00000000     1436     .long 0x0
0614 00010002     1437     .long 0x10002
0618 504e5f5f     1438     .long 0x504e5f5f
061c 534d5241     1439     .long 0x534d5241
0620 00000000     1440     .long 0x0
0624 00000000     1441     .long 0x0
0628 00010002     1442     .long 0x10002
                  1443 DBG99:
062c 0062622e     1444     .long 0x62622e
0630 00000000     1445     .long 0x0
0634 00000180     1446     .long DBG121
0638 00000000     1447     .long 0x0
063c 01640001     1448     .long 0x1640001
0640 00000000     1449     .long 0x0
0644 00000005     1450     .long 0x5
0648 00000000     1451     .long 0x0
064c 00000690     1452     .long DBG166
0650 00000000     1453     .long 0x0
0654 706d6574     1454     .long 0x706d6574
0658 00000000     1455     .long 0x0
065c 00000200     1456     .long 0x200
0660 00000005     1457     .long 0x5
0664 0204ffff     1458     .long 0x204ffff
0668 706d6574     1459     .long 0x706d6574
066c 00000000     1460     .long 0x0
0670 000c0102     1461     .long 0xc0102
0674 00000005     1462     .long 0x5
0678 0104ffff     1463     .long 0x104ffff
067c 706d6574     1464     .long 0x706d6574
0680 00000000     1465     .long 0x0
0684 000d0102     1466     .long 0xd0102
0688 00000005     1467     .long 0x5
068c 0004ffff     1468     .long 0x4ffff
                  1469 DBG166:
0690 0062622e     1470     .long 0x62622e
0694 00000000     1471     .long 0x0
0698 00000180     1472     .long DBG148
069c 00000000     1473     .long 0x0
06a0 01640001     1474     .long 0x1640001
06a4 00000000     1475     .long 0x0
06a8 00000006     1476     .long 0x6
06ac 00000000     1477     .long 0x0
06b0 000006f4     1478     .long DBG167
06b4 00000000     1479     .long 0x0
06b8 00000000     1480     .long 0x0
06bc 000001d4     1481     .long DBG98
06c0 00000000     1482     .long 0x0
06c4 00000000     1483     .long 0x0
06c8 00010002     1484     .long 0x10002
06cc 0062652e     1485     .long 0x62652e
06d0 00000000     1486     .long 0x0
06d4 00000184     1487     .long DBG149
06d8 00000000     1488     .long 0x0
06dc 01640001     1489     .long 0x1640001
06e0 00000000     1490     .long 0x0
06e4 00000006     1491     .long 0x6
06e8 0

⌨️ 快捷键说明

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