Other Parts Discussed in Thread: UCD3138, TIDA-00318
Hello,
After reading the firmware for tiDA-00381, I have a few questions.
1、The phase shift registers of DPWM0 and DPWM2 are set to the same value. Why is phase shift performed only for DPWM2 ?
2、When a DPWM uses edge mode.need to enable all other DPWMS?
3、In resonant mode, is the output of Filter Period related to the DPWM Period? How can I see the output value of Filter Period?
In resonant mode, I test the DPWM with an oscilloscope and check the register values with Fusion.
The DPWM Period measured by oscilloscope should be twice the output value of Filter Duty, which has no corresponding relationship with Filter Period.
DPWMFILTERDUTYREAD * 250ps*2 = 19622*250ps*2 = 9.8us
()FILTERYNREAD * DPWMPRD)>>20 = Filter Period
4、The dead zone of DPWM0 is larger in phase shift mode than in frequency conversion mode.
This causes a problem: the pulse width of DPWM2 exceeds DPWM0 on both sides of the phase shift and frequency conversion boundary.
as following picture shows:
ch1:DPWM0A ch2:DPWM2A ch4:DPWM1B (EF)
Oh, I just began to learn UCD3138, I have so many questions, I hope experts to answer patiently, thank you.