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.
Part Number: LAUNCHXL-F28377S
Tool/software: Code Composer Studio
I have a question about “2837x_rfft_adc_rt”:
I need to increase my sample rate analog to digital from 100ksps to 500 Ksps,
changing the following parameter in the "example_setup.h" is enough?
#define ADC_SAMPLING_FREQ 100000.0L
or other changes in the project is necessary.
Thank you for your help.
Did a reply answer your question? If yes, please click the "Verify Answer" button located at the bottom of that post.Visit these helpful C2000 Links!
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Whitney Dewey:
Thank you for your reply. How do I change it to 500ksps?
In reply to amin:
In this project(2837x_rfft_adc_rt) there is a square wave generator, I want to control the start and stop point of each pulses and sampling the analog signal in other ADC channel at the same time.
How can I generate a certain number of square wave, for example 1 square wave? I need to have the “start” and “end” points of each square wave in the project and run ADC pin_A0 from start point to end point of each square wave.
In other words, If we assume “A” is the start point of each pulse period, and the end point of each period is point “B”, then:
start point of ADC= at the beginning of square wave(point A)
end point of ADC= at the end point of square wave(point B)
How do I synchronize the ADC channel and Square wave generator?
Thank you and best regards,
The example you're using already has the PWMs configured to start their clocks at the same time. That's what's happening in FPU_startEPWM() where the TBCLKSYNC bit is being set. Then if you've configured the two PWM modules to have the same period and dividers (see the TBPRD and TBCTL registers) they should have the same end points too. Have you tried that?
In examples_setup.h :
#define CPU_FRQ_200MHZ 1
#define ADC_SAMPLING_FREQ 100000.0L
#define EPWM_CLK 100000000UL // EPWM_CLK starts off SYSCLK/2
#define EPWM_CLKDIV 1 // TBCLK = SYSCLK/(2*2)
#define EPWM_HSPCLKDIV 4 // = SYSCLK/(2*2*8) or EPWM_CLK/(2*8)
// desired freq 100KHz
#define EPWM1_PERIOD EPWM_CLK/(2*8*100000UL)
#define EPWM1_DUTY_CYCLE EPWM1_PERIOD/2UL
// desired freq 10KHz
#define EPWM2_PERIOD (EPWM_CLK)/(2*8*10000UL)
#define EPWM2_DUTY_CYCLE EPWM2_PERIOD/2UL
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.