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.

DAC7724调试时遇到的问题

Other Parts Discussed in Thread: DAC7724

我是用DSP28335来驱动DAC7724,DAC7724的几根控制引脚我是用过IO口输出高低电平来控制的,但是4路输出一直都是-10V,请问这个是为什么?以下是我程序,求解答。

 while(1)  {

  CHA_DATA =3000; //要输入的值  

  dataPort&= 0xf000;    

 LDAC=HIGH;   

  RW=HIGH;

   CS=HIGH;  

   DELAY_US(1);     //延时10us    

RW=LOW;    for(j=0;j<4;j++);    //延时800ns  

 CS=LOW;  

 A0=LOW;  

  A1=LOW;  

 dataPort|=CHA_DATA ;// A输出口要输出的值

  DELAY_US(2);    //延时20us    

 CS=HIGH;     for(j=0;j<4;j++);   //延时800ns   

  RW=HIGH;     DELAY_US(3);  //延时30us    

 LDAC= LOW;    //载入数据

 DELAY_US(2);  //延时20us

 LDAC= HIGH;  

 for(j=0;j<1;j++);  //延时200ns

  CS=LOW;  }