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

Part Number: TMS320F28P550SJ
Other Parts Discussed in Thread: TMS320F280049C, C2000WARE

Tool/software:

Hello,

I am working on porting a project from a TMS320F280049C into a TMS320F28P55X micro.

We have ADC diagnostics, using OSDETECT module from the F28004x, however there are no drivers nor examples on how to use this on the F28P55X family.

As far as I can understand from the Technical Reference Manuals, on TMS320F28P55X micro, the OSDETECT is handled by the ASYSCTL module.

Could you please shed some light?

Thank you.

  • To be more precise, this is what we were using to configure the OSDETECT on the F280049C family, this was taken from an example

    //*****************************************************************************
    //
    //! 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;
    }

    What would the equivalent for TMS320F28P55X be, given that this is handled via the ASYSCTL?

  • Hi Martin,

    In the latest C2000Ware v5.05 function for OSD has been added in adc.c file. 

    BR,

    Nilesh