)\rlength-;\rvoid WriteOne(unsigned char dat)\runsigned char j;\rfor (j=0; j<8; j++)\r(\rCLK=O;\rif(0x80 == (dat & 0x80))\r(\rSDI=1;//SET_SDO(); //Send one to SDIN pin of AD5422\r)\relse\r(\rSDI=0;//CLR_SDO(); //Send zero to SDIN pin of AD5422\r)\rdelay(l);\rCLK=1;//SET_SCL();üýþ\rdelay(l);\rdat <<= 1; //Rotate data\r}\rp./012ÿ DAC714 0\rvoid WriteToDAC714( unsigned int D)\r(\runsigned char dacH,dacL;\rdacH=D/256; @P`p? \rdacL=D%256;@P`p? \rCLK=0;\rA0=0; @??\rAl=l; @D/A.\rWriteOne(dacH); @???DAC714\rWriteOne(dacL); @\rDAC714\rA0=l;\rCLK=O;\rAl=0;\rdelay(2);\rCLK=1;\rAl=l;\rvoid main(void)\r{\rint D=0x8000;@?\n \rWriteToDAC714(D);@? !\rwhile(l);