Setup PWMSVM01 using DAVE3

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi,
We are using Relax KIT XMC4500 and Dave 3.1.4 date 5.11.2012.

We would like to setup the SVM PWM modulator in such a way that CC80/0 would have phase 1 (U) PWM1H,PWM1L, CC81/0 would have phase 2 (V) PWM2H,PWM2L, CC82/0 would drive phase 3 (W) PWM3H,PWM3L,
We would like to use pins P0.0 - P0.5, which should be possible. The signals should use CCU80.0x, CCU80.1x,CCU80.2x, where x is only 0 and 1.

The C80/1, C81/1, C81/2 are used for other purposes.

The issue is that IO002/5 uses pin P0.11 and IO002/4 uses pin P0.6. which isCCU80.OUT31 and CCU80.OUT30.

Via manual signal assigment we have following:
App Signal Connected To App Signal
CCU8GLOBAL/0 Clock <---- CLK001/0 CCU Clock
CCU8GLOBAL/0 Global ----> PWMSVM01/0 Phase V Global
CCU8GLOBAL/0 Global ----> PWMSVM01/0 Phase V Global
CLK001/0 CCU Clock ----> CCU8GLOBAL/0 Clock
CLK001/0 CCU Clock ----> CCU8GLOBAL/0 Clock
IO004/0 Pin Signal <---- IO004/0 Software Controlled Output Signal
PWMSVM01/0 Input - Phase U External Start <---- PWMSVM01/0 SCU Sync Start
PWMSVM01/0 Input - Phase V External Start <---- PWMSVM01/0 SCU Sync Start
PWMSVM01/0 Input - Phase W External Start <---- PWMSVM01/0 SCU Sync Start
PWMSVM01/0 Phase U Global <---- CCU8GLOBAL/0 Global
PWMSVM01/0 Phase U High Side ----> IO002/0 Pad Signal
PWMSVM01/0 Phase U High Side ----> IO002/0 Pad Signal
PWMSVM01/0 Phase U Low Side ----> IO002/1 Pad Signal
PWMSVM01/0 Phase U Low Side ----> IO002/1 Pad Signal
PWMSVM01/0 Phase V Global <---- CCU8GLOBAL/0 Global
PWMSVM01/0 Phase V High Side ----> IO002/2 Pad Signal
PWMSVM01/0 Phase V High Side ----> IO002/2 Pad Signal
PWMSVM01/0 Phase V High Side ----> IO002/2 Pad Signal
PWMSVM01/0 Phase V Low Side ----> IO002/3 Pad Signal
PWMSVM01/0 Phase W Global <---- CCU8GLOBAL/0 Global
PWMSVM01/0 Phase W High Side ----> IO002/4 Pad Signal
PWMSVM01/0 Phase W High Side ----> IO002/4 Pad Signal
PWMSVM01/0 Phase W Low Side ----> IO002/5 Pad Signal
PWMSVM01/0 Phase W Low Side ----> IO002/5 Pad Signal
PWMSVM01/0 Phase1 Timer Concatenation Output ----> PWMSVM01/0 Phase2 Timer Concatenation Input
PWMSVM01/0 Phase2 Timer Concatenation Output ----> PWMSVM01/0 Phase3 Timer Concatenation Input

Best regards, Evgen
0 Likes
2 Replies
Not applicable
Hi,
If I understand correctly, you would like to use P0.11 (CCU80.OUT31) & P0.6 (CCU80.OUT30) to drive phase 3. In this case, you need to use P0.1 (CCU80.OUT11) & P0.4 (CCU80.OUT10) to drive phase 1 and P0.0 (CCU80.OUT21) & P0.3 (CCU80.OUT20) to drive phase 2. The reason is that the 3 time slices used for driving 3 phases must be consecutive.
0 Likes
Not applicable
Hello, how would be best to use CCU80 in such a way, that would be possible to drive 3 phase pwm modulation and on top of that implementing measurement of for each phase switching delay. For example when phase1 switches from 0 to 1, command is given to driver, and what would be best used to measure that delay betwen reference switching (output to Gate of the switching element) and actual switching middle- input (digital) at Udc/2.

My idea is to use: CC80/0 would have phase 1 (U) PWM1H,PWM1L, CC81/0 would have phase 2 (V) PWM2H,PWM2L, CC82/0 would drive phase 3 (W) PWM3H,PWM3L, time would be measured with CC80/1, CC80/2 and CC80/3 at each corresponding phase using External capture.
0 Likes