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.
你好,我想将adc的采样频率调到最大,于是对TBPRD进行修改,但没有得到正确的结果。
EPWM_setCounterCompareValue(EPWM1_BASE, EPWM_COUNTER_COMPARE_A, 50);
EPWM_setTimeBasePeriod(EPWM1_BASE, 99);
修改后的图像:
修改前的图像:
两者几乎一样,看着采样频率好像并没有改变,请问我该如何解决这个问题。
我是对例程的这两句进行了修改:
EPWM_setCounterCompareValue(EPWM1_BASE, EPWM_COUNTER_COMPARE_A, 50);
EPWM_setTimeBasePeriod(EPWM1_BASE, 99);
对10KHz的方波进行采样,每个周期里有100个点,说明采样率为1MSPS。
EPWM_setCounterCompareValue(EPWM1_BASE, EPWM_COUNTER_COMPARE_A, 25);
EPWM_setTimeBasePeriod(EPWM1_BASE, 49);
但是我将TBPRD修改为49时,对10KHz的方波进行采样,每个周期里依旧只有100个点,采样率达不到2MSPS。
请问开发指南里12位下采样率能达到3.5MSPS是通过什么方式达到的?
我建议你先看一下用户指南spruhm8i_TMS320F2837xD Dual-Core Delfino Microcontrollers Technical Reference Manual (Rev. I)的Chapter 11 Analog-to-Digital Converter (ADC),里面对于采样率的计算有详细的描述