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 C2000 Delfino MCUs F28377S LaunchPad. I want to obtain two signals, vs1 and vs2, as it is shown in the picture. After reading datas from ADCs, the microcontroller will do some basic calculation, and it will adjust frequency, duty cycle, phase shift and number of pulses.
The max switching frequency of the first signal, vs1, is 250kHz. Number of pulses can be 1, 2, 3 or 4.
At first, I used PWM chopper, but minimum number of pulses was 4, and there was a phase jittering.
Secondly, I tried CPU timer to obtain vs2 signal, but there was a phase jittering, again, even if the switching frequency is 16 kHz.
At last, I decided to use multiple PWMs with "or gate" . Each pulse will be obtained by PWM module, and after it be summed by or gate. In order to obtain a signal vs2, which has 3 pulses, I used 3 PWMs for only this signal. However, after synchronization these 3 signal with the first signal vs1, I could not adjust the phase shift. My question: Is it possible to synchronize 4 or 5 PWMs with phase shift control? If it is possible, how?
Second question: I can synchronize 1.PWM with 2. PWM, and I can control the phase between 1.PWM and 2. PWM, but I could not control the phase between 3.PWM with 4.PWM, If I synchronize them. How can I synchronize them with phase control?
Thank you in advance
You can definitely synchronize all the ePWMs together. For some modules, you may need to configure the mux selections here to get the desired sync. input source:
The only caveat here is that you want to keep the length of a daisy chained sync path (module uses sync. in and then passes the sync signal through) to 4 ePWM modules.
The external OR gate solution will definitely be simple to program and will incur very little CPU BW, but will require external HW.
I think it is probably possible to get the multi-pulse waveform out of ePWM2 only by switching the period at the first rising edge and then triggering an event after the nth period to switch back to synchronized with ePWM1. I'm investigating exactly how this could work.
C2000 TI Wiki PagesTI Forum Sitemap
ControlSUITEC2000 Getting Started
CLA FAQsWorkshop Material!
In reply to Devin Cottier:
Thank you for your reply.
I have already synchronized all PWMs like the picture. PWM1 is master, and PWM2,3,4,5,6,7 are slaves. I can change the phase of PWM 6, but I could not change the phase of PWM 7. When I want to shift the phases, the micro-controller does not produce the shifted phase PWM. Do I need to do extra things to control the phase shift?
Do you know there is a document how I configure the mux selections?
In reply to Mert Turhan:
Hi Mert, (edit: correct name!)
I don't think it is possible to actually synchronize the ePWMs directly as shown in the diagram. If you look at the diagram I linked above, I think you need to:
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. 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 respect to these materials. 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.