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.

[参考译文] TMS320F28P550SJ:ADC OSDETECT

Guru**** 2405245 points
Other Parts Discussed in Thread: TMS320F280049C, C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1538318/tms320f28p550sj-adc-osdetect

器件型号:TMS320F28P550SJ
主题中讨论的其他器件:TMS320F280049CC2000WARE

工具/软件:

您好:

我正在努力将工程从 TMS320F280049C 移植到 TMS320F28P55X 微控制器中。

我们使用  F28004x 中的 OSDETECT 模块提供 ADC 诊断功能、但是、 F28P55X 系列上没有有关如何使用该功能的驱动程序和示例。

据我从 TMS320F28P55X Micro 的技术参考手册中了解、OSDETECT 由 ASYSCTL 模块处理。

您能说明一下吗?

谢谢你。

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

    更准确地说、我们使用此文件在 F280049C 系列上配置 OSDETECT、这是从 一个例子中提取出来的

    //*****************************************************************************
    //
    //! Configures Open/Shorts Detection Circuit Mode.
    //!
    //! \param base is the base address of the ADC.
    //! \param modeVal is the desired open/shorts detection circuit mode.
    //!
    //! This function configures the open/shorts detection circuit mode of the ADC.
    //!
    //! \return None.
    //
    //*****************************************************************************
    static inline void
    ADC_configOSDetectMode(uint32_t base, ADC_OSDetectMode modeVal)
    {
        //
        // Configure open/shorts detection circuit mode.
        //
        EALLOW;
        HWREGH(base + ADC_O_OSDETECT) = ((HWREGH(base + ADC_O_OSDETECT) &
                                         (~ADC_OSDETECT_DETECTCFG_M)) |
                                         (uint16_t)modeVal);
        EDIS;
    }

     鉴于通过 ASYSCTL 来处理 TMS320F28P55X、其等效值是多少?

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

    尊敬的 Martin:

    在最新的 C2000Ware v5.05 中、OSD 函数已添加到 adc.c 文件中。  

    BR、

    Nilesh