我做了一个延迟函数。用ccs中的clock观察始终周期数不准确,这是怎么回事
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.
你好,我用的就是DELAY_US.可是我加了断点以后,发现两次的语句执行的时间周期,不同,为什么,我把28335和2812的程序,你给
2812用SPI通信接dac7714
SpiaRegs.SPITXBUF = out1;
while(SpiaRegs.SPISTS.bit.INT_FLAG == 0) {}
//for(temp=0; temp<2;temp++) {}
temp = SpiaRegs.SPIRXBUF;
GpioDataRegs.GPFTOGGLE.bit.GPIOF13 = 1; //Enable the LOADDACS pin for DAC7714
for(temp=0; temp<10;temp++) {}
GpioDataRegs.GPFDAT.bit.GPIOF13 = 1; //
for(temp=0; temp<2;temp++) {}
如果用28335中的DELAY函数,延迟时间是多少啊