Other Parts Discussed in Thread: TMS320F28027
There is a problem about ADC sample rate with TMS320F28027.
Our goal is sampling analog signal at 1Mbps, so we modified ADC_SOC example. Sample rate in ADC_SOC is triggered by EPWM, SYSTEMCLK Frequency is 50MHz, and we set PWMCLkDiv to 1, TBPRT to 49, CmpA to 25, used countup mode. The desired frequency of EPWM is TBCLK/(TBPRT+1), that is 1MHz.
But I set and clear gpio every time goes to adc_isr and captured by DSO, only about 122KHz detected. So confused.
Then I change TBPRT to 499 and 4999, frequency detected is 25KHz and 2.5KHz, which seems normal.
Can anyone help us to trigger adc with a sample rate at 1MHz. If EPWM can not genrate 1MHz trigger, is there anyother way to set the ADC working at 1MHz?
Thanks!