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.

CCS/TMS320F28069M: Configuring DAC

Part Number: TMS320F28069M
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I am working on TMS320F28069M. I am not able to configure DAC. Are there any sample codes available so that I can refer to. Could you please help me how to configure DAC. 

Thanks.

  • Kiran V1,

    F2806x examples are distributed through C2000Ware: \C2000Ware_XXXX\device_support\f2806x\examples\

    To be clear, the only embedded DACs on F2806x are the internal reference DACs that can only be used with the comparators. The comparator example in epwm_dcevent_trip_comp will configure the DAC after uncommenting the lines indicated by the comment:

        //
        // Uncomment following 2 lines to use DAC instead of pin COMP1B
        //
        // Connect the inverting input to the internal DAC
        //
        //Comp1Regs.COMPCTL.bit.COMPSOURCE = 0;  
        //Comp1Regs.DACVAL.bit.DACVAL = 512;	    // Set DAC output to midpoint
        //

    -Tommy

  • Hello 

    I am working on the same launchpad as Kiran V1. My idea is to sense analog voltage and convert it to digital value using on-board ADC. Then convert the digital value to analog domain using the on-board DAC and verify that ADC and I have already configured ADC. My questions are

    1) The launchpad XL-F28069M has a 12-bit ADC. Is the on-board DAC of 12-bit? 

    2) How to configure the board such that we can give ADC output to DAC input and read the analog output on DAC pins?

    3)  Any example codes will be helpful as reference. 

    Thanks

  • Mallikarjun Kompella said:
    1) The launchpad XL-F28069M has a 12-bit ADC. Is the on-board DAC of 12-bit?

    This information can be found in the datasheet and TRM. The internal reference DAC is 10-bits.

    Mallikarjun Kompella said:
    2) How to configure the board such that we can give ADC output to DAC input and read the analog output on DAC pins?

    The internal DACs are not directly observable.

    Mallikarjun Kompella said:
    3)  Any example codes will be helpful as reference.

    See my original reply. If you have additional questions, please start a new question thread.