This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TIDM-1000:三相 Vienna 整流器:ISR 存储器映射

Guru**** 663810 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1310706/tidm-1000-three-phase-vienna-rectifier-isr-memory-mapping

器件型号:TIDM-1000

您好!

在 Vienna 整流器代码中、针对控制代码 ISR 和仪表 ISR 进行内存映射、如下所示、使用段 "isrcodefuncs"和"ramfuncs"

如果我要编写 ADC ISR、应该如何进行存储器映射。 我可以使用相同的" isrcodefuncs "来定义任何其他中断、如 ADC 吗?

或者我应该在 CMD 文件中定义一个新段。

---------------------------------------------------------------------------------------------------------

#if VIENNA_CONTROL_RUNNING_ON == C28x_CORE

#ifndef __TMS320C28XX_CLA__
#pragma 中断(ISR1、HPI)
#pragma code_section (ISR1、"isrcodefuncs");
中断失效 ISR1 (void);
#endif

#else
#endif

#if Vienna_Instrument_ISR_RUNNING_ON == C28x_CORE

#ifndef __TMS320C28XX_CLA__
#pragma code_section (ISR2、"ramfuncs");
中断失效 ISR2 (void);
#endif

#else
#endif

----------------------------------------------------------------------------------------------------------------

谢谢。此致、

内拉哈

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Neeraja:  

    我发现您需要 向 s/w 添加一个额外的 ISR。  我建议使用.cmd 文件中类似于 ramfuncs/isrcodefuncs 的组。 这也可以是用户定义的名称。

    此致、

    乌坦姆

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢。 对于 新的 ISR,我可以分配与 ISR ' isrcodefuncs'相同的存储器位置,如下所示。


    {
    isrcodefuncs
    dclfuncs
    }LOAD = FLASHH、
    运行= RAMLS2LS3LS4LS5、
    Load_start (isrcodefuncsLoadStart)、
    Load_Size (isrcodefuncsLoadSize)、
    Load_End (isrcodefuncsLoadEnd)、
    RUN_START (isrcodefuncsRunStart)、
    RUN_SIZE (isrcodefuncsRunSize)、
    RUN_END (isrcodefuncsRunEnd)、
    PAGE = 0、ALIGN (4)

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Neeraja:

    我建议将其分开、这有助于评估每个 ISR 占用的存储器、然后对其进行改进。  

    不过、这是您的选择。

    谢谢。此致、

    乌坦姆