📄 bldc.lst
字号:
367 005e 0000! .word _F24x_WD_Disable+0
368 005f 0000! .word _F24x_WD_ResetCounter+0
369 0002 IS5 .set 2
370
371 .sym _wdog,_wdog,8,2,32,.fake3
372 .globl _wdog
373 .globl _isr_ticker
374 0000 .text
375
376 .sym _main,_main,32,2,0
377 .globl _main
378
379 .func 95
380 ;>>>> void main()
381 ******************************************************
382 * FUNCTION DEF : _main
383 ******************************************************
384 0000 _main:
385 0000 8aa0 POPD *+
386 0001 80a0 SAR AR0,*+
387 0002 8180 SAR AR1,*
388 0003 b001 LARK AR0,1
389 0004 00e0 LAR AR0,*0+
390
391 .line 6
392 ;>>>> RstSystem();
393 0005 7a80 CALL _RstSystem
0006 007c'
394 .line 11
395 ;>>>> pwm.init(&pwm); /* pwm driver initialization */
396 0007 bf80 LALK _pwm+0
0008 0006-
397 0009 90a0 SACL *+
398 000a bc00- LDPK _pwm+4
399 000b 100a- LAC _pwm+4
400 000c be30 CALA
401 000d 8b90 MAR *-
402 .line 16
403 ;>>>> adc.init(&adc); /* adc driver initialization */
404 000e bf80 LALK _adc+0
000f 000c-
405 0010 90a0 SACL *+
406 0011 bc00- LDPK _adc+9
407 0012 1015- LAC _adc+9
408 0013 be30 CALA
409 0014 8b90 MAR *-
TMS320C24xx COFF Assembler Version 7.02 Fri Jul 07 11:06:57 2006
Copyright (c) 1987-2002 Texas Instruments Incorporated
../temp/bldc.asm PAGE 10
410 .line 21
411 ;>>>> time_base_init();
412 ;>>>> #if (REAL_TIME == TRUE)
413 0015 7a80 CALL _time_base_init
0016 00dd'
414 .line 28
415 ;>>>> rtmon_init(); /* Call the monitor init function */
416 ;>>>> #endif /* REAL_TIME==TRUE */
417 0017 7a80 CALL _rtmon_init
0018 00d2'
418 .line 34
419 ;>>>> evm_pwm_init();
420 0019 7a80 CALL _evm_pwm_init
001a 00ec'
421 .line 42
422 ;>>>> adc.a4_ch_sel = CHANNEL_SETTINGS;
423 001b bc00- LDPK _adc+8
424 001c ae14- SPLK #25923,_adc+8
001d 6543
425 .line 48
426 ;>>>> BLDC_TI_Init(&bldc);
427 001e bf80 LALK _bldc+0
001f 0017-
428 0020 90a0 SACL *+
429 0021 7a80 CALL _BLDC_TI_Init
0022 0000!
430 0023 8b90 MAR *-
431 .line 50
432 ;>>>> pwm.d_func = ALIGN_DUTY;
433 ;>>>> #if (BUILDLEVEL==LEVEL1)
434 0024 bc00- LDPK _pwm+3
435 0025 ae09- SPLK #3072,_pwm+3
0026 0c00
436 .line 58
437 ;>>>> dac.qptr0 = &bldc.impl.out;
438 ;>>>> #endif /* BUILDLEVEL==LEVEL1 */
439 ;>>>> #if (BUILDLEVEL==LEVEL2)
440 ;>>>> adc.c1_gain = 0x0800; /* gain = 0.125 (Q13) */
441 ;>>>> adc.c2_gain = 0x0800; /* gain = 0.125 (Q13) */
442 ;>>>> adc.c3_gain = 0x0800; /* gain = 0.125 (Q13) */
443 ;>>>> adc.c4_gain = 0x1fff; /* gain = 1.0 (Q13) */
444 ;>>>> dac.qptr0 = &adc.c1_out;
445 ;>>>> dac.qptr1 = &adc.c2_out;
446 ;>>>> dac.qptr2 = &adc.c3_out;
447 ;>>>> dac.qptr3 = &adc.c4_out;
448 ;>>>> #endif /* BUILDLEVEL==LEVEL2 */
449 ;>>>> #if (BUILDLEVEL==LEVEL3)
450 ;>>>> adc.c1_gain = 0x0800; /* gain = 0.125 (Q13) */
451 ;>>>> adc.c2_gain = 0x0800; /* gain = 0.125 (Q13) */
452 ;>>>> adc.c3_gain = 0x0800; /* gain = 0.125 (Q13) */
453 ;>>>> adc.c4_gain = 0x1fff; /* gain = 1.0 (Q13) */
454 ;>>>> dac.qptr0 = &bldc.cmtn.trig;
455 ;>>>> #if 0
456 ;>>>> dac.qptr1 = &bldc.cmtn.neutral;
TMS320C24xx COFF Assembler Version 7.02 Fri Jul 07 11:06:57 2006
Copyright (c) 1987-2002 Texas Instruments Incorporated
../temp/bldc.asm PAGE 11
457 ;>>>> #endif
458 ;>>>> dac.qptr2 = &bldc.cmtn.zc_trig;
459 ;>>>> dac.qptr3 = &bldc.cmtn.debug_Bemf;
460 ;>>>> #endif /* BUILDLEVEL==LEVEL3 */
461 ;>>>> #if (BUILDLEVEL==LEVEL4)
462 ;>>>> adc.c1_gain = 0x0800; /* gain = 0.125 (Q13) */
463 ;>>>> adc.c2_gain = 0x0800; /* gain = 0.125 (Q13) */
464 ;>>>> adc.c3_gain = 0x0800; /* gain = 0.125 (Q13) */
465 ;>>>> adc.c4_gain = 0x1fff; /* gain = 1.0 (Q13) */
466 ;>>>> dac.qptr0 = &adc.c1_out;
467 ;>>>> dac.qptr1 = &adc.c2_out;
468 ;>>>> dac.qptr2 = &adc.c3_out;
469 ;>>>> dac.qptr3 = &adc.c4_out;
470 ;>>>> #endif /* BUILDLEVEL==LEVEL4 */
471 ;>>>> #if (BUILDLEVEL==LEVEL5)
472 ;>>>> adc.c1_gain = 0x0800; /* gain = 0.125 (Q13) */
473 ;>>>> adc.c2_gain = 0x0800; /* gain = 0.125 (Q13) */
474 ;>>>> adc.c3_gain = 0x0800; /* gain = 0.125 (Q13) */
475 ;>>>> adc.c4_gain = 0x1fff; /* gain = 1.0 (Q13) */
476 ;>>>> bldc.current_set = 0x0065;
477 ;>>>> dac.qptr0 = &adc.c1_out;
478 ;>>>> dac.qptr1 = &adc.c2_out;
479 ;>>>> dac.qptr2 = &adc.c3_out;
480 ;>>>> dac.qptr3 = &adc.c4_out;
481 ;>>>> #endif /* BUILDLEVEL==LEVEL5 */
482 0027 bf80 LALK _bldc+9
0028 0020-
483 0029 9000- SACL _dac
484 .line 165
485 ;>>>> enable_ints(); /* set off the system running */
486 ;>>>> while(1) /* Nothing running in the background at present */
487 002a 7a80 CALL _enable_ints
002b 0000!
488 002c L1:
489 .line 174
490 002c 7980 B L1
002d 002c'
491 .endfunc 270,000000000H,1
492
493 .sym _c_int03,_c_int03,32,2,0
494 .globl _c_int03
495
496 .func 273
497 ;>>>> void interrupt c_int03()
498 ******************************************************
499 * FUNCTION DEF : _c_int03
500 ******************************************************
501 002e _c_int03:
502 002e 7a80 CALL I$$SAVE
002f 0000!
503 0030 8180 SAR AR1,*
504 0031 b001 LARK AR0,1
505 0032 00e0 LAR AR0,*0+
506
TMS320C24xx COFF Assembler Version 7.02 Fri Jul 07 11:06:57 2006
Copyright (c) 1987-2002 Texas Instruments Incorporated
../temp/bldc.asm PAGE 12
507 .line 3
508 ;>>>> asm(" CLRC XF ");
509 0033 be4c CLRC XF
510 .line 5
511 ;>>>> isr_ticker++;
512 ;>>>> #if TARGET==F243
513 ;>>>> EVIFRB=0x0ffff; /* Clear all Group A EV interrupt flags */
514 ;>>>> #elif TARGET==F2407
515 0034 bc00- LDPK _isr_ticker
516 0035 1057- LAC _isr_ticker
517 0036 b801 ADDK 1
518 0037 9057- SACL _isr_ticker
519 .line 12
520 ;>>>> EVAIFRB=0x0ffff; /* Clear all EV1 Group A EV interrupt flags*/
521 ;>>>> #endif/* #if TARGET */
522 0038 bf0b LARK AR3,29744
0039 7430
523 003a 8b8b MAR * ,AR3
524 003b ae80 SPLK #-1,*
003c ffff
525 .line 15
526 ;>>>> if (bldc.align_flag != FALSE ) {
527 003d 101e- LAC _bldc+7
528 003e e388 BZ L2
003f 005f'
529 .line 16
530 ;>>>> bldc.mod6.cntr = 0;
531 0040 b900 LACK 0
532 0041 9024- SACL _bldc+13
533 .line 17
534 ;>>>> pwm.cmtn_ptr_bd = 0;
535 0042 9006- SACL _pwm
536 .line 18
537 ;>>>> pwm.update(&pwm);
538 0043 bf80 LALK _pwm+0
0044 0006-
539 0045 8b89 MAR * ,AR1
540 0046 90a0 SACL *+
541 0047 100b- LAC _pwm+5
542 0048 be30 CALA
543 0049 8b90 MAR *-
544 .line 23
545 ;>>>> if (bldc.cmtn.v_timer < V_TIMER_THRESHOLD){
546 004a be47 SSXM
547 004b bc00- LDPK _bldc+33
548 004c 1038- LAC _bldc+33
549 004d bfa0 SUBK 32512
004e 7f00
550 004f e38c BGEZ L3
0050 005d'
551 .line 24
552 ;>>>> update_v_timer();
553 0051 7a80 CALL _update_v_timer
0052 0104'
TMS320C24xx COFF Assembler Version 7.02 Fri Jul 07 11:06:57 2006
Copyright (c) 1987-2002 Texas Instruments Incorporated
../temp/bldc.asm PAGE 13
554 .line 25
555 ;>>>> dac.update(&dac);
556 0053 bf80 LALK _dac+0
0054 0000-
557 0055 90a0 SACL *+
558 0056 bc00- LDPK _dac+5
559 0057 1005- LAC _dac+5
560 0058 be30 CALA
561 0059 8b90 MAR *-
562 .line 26
563 ;>>>> asm(" SETC XF ");
564 005a be4d SETC XF
565 .line 27
566 ;>>>> return;
567 005b 7980 B EPI0_2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -