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.

tms320f28377d的16位adc可以用软件触发ad转换吗,比如写某个寄存器,如果可以请给出具体寄存器的名称,谢谢

Other Parts Discussed in Thread: TMS320F28377D, C2000WARE

tms320f28377d的16位adc可以用软件触发ad转换吗,比如写某个寄存器,如果可以请给出具体寄存器的名称,谢谢

  • 您可以看一下相关的例程(请首先安装C200WARE)

    C:\ti\c2000\C2000Ware_2_00_00_02\device_support\f2837xd\examples\cpu1\adc_soc_software

    TRM内有相关的寄存器

    ADCINTSOCSEL1 ADC Interrupt SOC Selection 1 Register

    ADCINTSOCSEL2 ADC Interrupt SOC Selection 2 Register

    以及

    ADCSOCxCTL

    //###########################################################################
    //
    // FILE:   adc_soc_software_cpu01.c
    //
    // TITLE:  ADC software triggering for F2837xD.
    //
    //! \addtogroup cpu01_example_list
    //! <h1> ADC SOC Software Force (adc_soc_software)</h1>
    //!
    //! This example converts some voltages on ADCA and ADCB  based on a software
    //! trigger.
    //!
    //! After the program runs, the memory will contain:
    //!
    //! - \b AdcaResult0 \b: a digital representation of the voltage on pin A2\n
    //! - \b AdcaResult1 \b: a digital representation of the voltage on pin A3\n
    //! - \b AdcbResult0 \b: a digital representation of the voltage on pin B2\n
    //! - \b AdcbResult1 \b: a digital representation of the voltage on pin B3\n
    //!
    //! Note: The software triggers for the two ADCs happen sequentially, so the
    //! two ADCs will run asynchronously.
    //!
    //
    //###########################################################################