我想问下:TMS320F28069 这颗片子是不是不如其它片子比如28035,同样是带cla功能。这款28069性能是不是不太好,比如AD采样,之类的。
我遇到一个问题,输出电压和输出电流,同样的DSP28069只是批次不一样的,效果差很大。通过更改采样通道,采样频率等问题都解决不了,换了其它批次的片子就可以了。
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.
我想问下:TMS320F28069 这颗片子是不是不如其它片子比如28035,同样是带cla功能。这款28069性能是不是不太好,比如AD采样,之类的。
我遇到一个问题,输出电压和输出电流,同样的DSP28069只是批次不一样的,效果差很大。通过更改采样通道,采样频率等问题都解决不了,换了其它批次的片子就可以了。
都是更换F28069。理论上是28069比28035性能更好,所以我才用28069的。
我的意思是,28069在AD采样方面性能比28035差一些,28069是比28035更新,还相对不稳定一些?
还是说我这边对28069的用法不对。要是不对的话,我更换了另外一片28069,性能就非常好了。一共试用了4台,都是这样的结果。前后28609批次不一样导致的?
不是,这里的意思是在顺序或同时采样模式的第一个采样值可能不正确,解决方法就是①向ADCCTRL2寄存器的ADCNONOVERLAP位写入1或者②丢弃第一次soc采样的数值。
For sequential mode, discard the first sample at the beginning of every series of
conversions. For instance, if the application calls for a given series of conversions,
SOC0→SOC1→SOC2, to initiate periodically, then set up the series instead as
SOC0→SOC1→SOC2→SOC3 and only use the last three conversions, ADCRESULT1,
ADCRESULT2, ADCRESULT3, thereby discarding ADCRESULT0.
For simultaneous sample mode, discard the first sample of both the A and B channels at
the beginning of every series of conversions.
User application should validate if this workaround is acceptable in their application.
The magnitude of error is significantly reduced by writing a 1 to the ADCNONOVERLAP
bit in the ADCCTRL2 register, which only allows the sampling of ADC channels when the
ADC is finished with any pending conversion. Typically, the difference between the first
sample and subsequent samples, with ADCNONOVERLAP enabled, will be less than or
equal to four LSBs.
方法①可以参考F28069的例程C:\ti\c2000\C2000Ware_3_03_00_00\device_support\f2806x\examples\c28\adc_soc第158行代码:
AdcRegs.ADCCTL2.bit.ADCNONOVERLAP = 1; // Enable non-overlap mode
方法②可以参考F28035的例程C:\ti\c2000\C2000Ware_3_03_00_00\device_support\f2803x\examples\c28\adc_soc第155、156行注释和第169~171行代码(通道4被启动了两次,即丢弃第一次采样的值):
// Note: Channel ADCINA4 will be double sampled to workaround the
// ADC 1st sample issue for rev0 silicon errata
AdcRegs.ADCSOC0CTL.bit.CHSEL = 4;
AdcRegs.ADCSOC1CTL.bit.CHSEL = 4; //set SOC1 channel select to ADCINA4