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.

TLC 5628 Coding issues

Other Parts Discussed in Thread: TLC5628

Hie all,

I am new to the coding of DAC on DSP28335. I am using DSP 28335 as a controller and I need an SPI interface DAC to view some outputs. based on the datasheet of the DAC IC TLC5628, I coded the SPI as below:

void InitSpi(void)
{
SpiaRegs.SPICCR.all = 0x000B; // Reset on, rising edge, 12-bit char bits
SpiaRegs.SPICTL.all = 0x0006; // Enable master mode, normal phase,
// enable talk, and SPI int disabled.
SpiaRegs.SPIBRR = 45;    // Set to be less than 1Mhz since maximum CLK freq of the DAC is 1Mhz
SpiaRegs.SPIPRI.bit.FREE = 1; // Set so breakpoints don't disturb xmission
SpiaRegs.SPICCR.all = 0x00DB; // Relinquish SPI from Reset,ClK polarity is data output on falling edge
}

Also I enabled the respective SPI GPIO's

When I to send data to the DAC. the output is a pulsating signal for a constant single value data and any changes in the data sent to the DAC is not been reflected.

Please help me out with problem.