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/TMS320F28377D: 28377 DAC Dual_core

Part Number: TMS320F28377D

Tool/software: Code Composer Studio

Hi,

Need suggestion to use DACA and DACB in both CPU1 and CPU2. I want to generate sine wave in CPU1 which uses DACA and Triangular wave in CPU2 which uses DACB. I have tried dual_core blinky code and it is working well. I have made changes to generate waveform, but codes written in CPU1 is working. Is there any configuration for this?

Regards

Shirly

  • Hi Shirly,

    The usual approach to using peripherals on CPU2 is to configure the peripheral on CPU1 then hand ownership of the peripheral to CPU2. So in this case you would configure DACA and DACB on CPU1. After that, you give control of DACB to CPU2.
  • Frank,

    Thanks for your response....i can understand the concept of configuring the peripherals that are used in CPU2 must be initialised in CPU1 in the blinky example....is there any API to configure DAC for CPU2 like GPIO_SetupPinMux(34,GPIO_MUX_CPU2,0); function to configure GPIO34?

  • Shirly,

    You can also configure the peripherals on CPU2 after CPU1 hands-off ownership. To give CPU2 control of the DAC, set DevCfgRegs.CPUSEL14.bit.DAC_X for the respective DAC. We don't have any dual CPU examples for the DAC but you can base it off the adc_epwm dual CPU example in f2837xd\examples\dual\adc_epwm\cpu01 and f2837xd\examples\dual\adc_epwm\cpu02. The flow should be similar for the DAC.