AnsweredAssumed Answered

BF531 SPORT interface to LTC1661 DAC

Question asked by deepak.a on Jul 27, 2011
Latest reply on Aug 2, 2011 by vinodbableshwar

Hi,

 

I am working on a SPORT programming for DAC on BF531 custom board.

My SCLK is 133Mhz

 

I have initialized the SPORT as follows.

 

void Init_SPORT0(void)
{

  *pSPORT0_TFSDIV = 0x001F;      // frame sync every 32 clk cycles
  *pSPORT0_TCLKDIV =0x0002;
  *pSPORT0_TCR2 = SLEN;    // SLEN is 0F
  *pSPORT0_TCR1 = 0x7602;
  *pSPORT0_TCR1 = 0x7603;
 

  ssync();

}

 

 

void main()
{

initcode();
sysreg_write(reg_SYSCFG, 0x32);  //Initialize System Configuration Register
Init_EBIU();
Init_SDRAM();
Init_SPORT0();
  while(TXHRE != 1)

     {
       *pSPORT0_TX16 = 0xFFFF ;
      }
}

 

 

I am trying to just pust the data FFFF to the DAC LTC1661. So could you please help me with this.

I can view the Parallel TX/RX register being updated in the simulator mode and when i run on the actual hardware i dont see this register being updated

Outcomes