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.

Not be able to write DSP DAC system registers

Other Parts Discussed in Thread: SYSBIOS, TMS320F28377D

Hi 

i am trying to use DAC for which i initialized the corresponding DAC registers. For some reason, those registers are not being set to the value i am trying to set them to. I did a single step execution but i dont see a change in the register value. Below is the code i am using.

void initDAC(void)
{
EALLOW; // To write to EALLOW protected registers
DacaRegs.DACCTL.bit.DACREFSEL = 1;
DacaRegs.DACOUTEN.bit.DACOUTEN = 1; //Enable DAC output
DacaRegs.DACCTL.bit.LOADMODE = 0; //Enable DAC output
EDIS; // To disable write protected registers

EALLOW; // To write to EALLOW protected registers
DacbRegs.DACCTL.bit.DACREFSEL = 1;
DacbRegs.DACOUTEN.bit.DACOUTEN = 1; //Enable DAC output
DacbRegs.DACCTL.bit.LOADMODE = 0; //Enable DAC output
EDIS; // To disable write protected registers

EALLOW; // To write to EALLOW protected registers
DaccRegs.DACCTL.bit.DACREFSEL = 1;
DaccRegs.DACOUTEN.bit.DACOUTEN = 1; //Enable DAC output
DaccRegs.DACCTL.bit.LOADMODE = 0; //Enable DAC output
EDIS; // To disable write protected registers
} //End of initDAC()

when i checked the above registers in the debug mode, those values dont get set.

CCS version : 6.1

SYSBIOS : 6.41.4.54

Compiler: 6.4.2

Processor: TMS320F28377D

Any help would be gratly appreciated.

Thanks