Hi Experts,
We would like to output same duty from 2 different DPWM module , can you show me how to implement this purpose?
other questions,would I get same Yn if I input same xn to CLA?thanks.
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.
Hi Experts,
We would like to output same duty from 2 different DPWM module , can you show me how to implement this purpose?
other questions,would I get same Yn if I input same xn to CLA?thanks.
The easiest way probably is to hook-up two DPWMs to the same filter(CLA).
For example the following connects both DPWM-0 and DPWM-1 to FILTER-0:
//Connect FILTER-0 to DPWM-0
LoopMuxRegs.DPWMMUX.bit.DPWM0_FILTER_SEL = 0;
//Connect FILTER-0 to DPWM-1
LoopMuxRegs.DPWMMUX.bit.DPWM1_FILTER_SEL = 0;
Since a filter may include an integrator branch and integrator remember the history, current Xn does not guarantee certain Yn.
Regards,
Hi Yitzhak,
Thanks for your replies ,I have through this way ,feed same source to different filter,but I am thinking the other ways ,like using intra mux crossover /edgegen,
could you show me how to use intra mux/edgegen? thank you very much!
Let's say you have DPWM1 connected to the filter and you want DPWM0 to output the same waveforms as DPWM1.
You do not need to use the EdgeGen for that.
If you just set :
PWM_A_INTRA_MUX on DPWM0 to the value 4 (Pass-through below A)
and
PWM_B_INTRA_MUX on DPWM0 to the value 5 (Pass-through below B)
then both DPWM0 and DPWM1 will send out the same waveforms.
Regards,