How to activate PWM_SVM app

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

cross mob
ericjoy
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hi, 

I follow the manual (on the menu-->help-->help content)

of PWM_SVM usage (main-->usage).

It compiles ok, But I could not find any PWM signal output on my  Tektronix oscilloscope.

Does there any input I need to add?

Thank you, eric

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Owen_Su
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

Hi, @ericjoy ,

    TRAP signal is used for board fault detection, this signal can be disabled. And I tested with my XMC4500, I found that if I only select 'PeriodMatchInterruptHandler', the debugger can easily get into the interrupt, because we have definition in the main.c.

    And for the 'enable pin' and 'trap pin', you can refer to the figure below: Inverter Enable is an output, Trap is an input.

Owen_Su_0-1676885220968.png

    Here I give you some suggestions:

    1) Define you own 'TrapIRQHandler' in main.c;

    2) Or you can disable 'Trap event- phase U';

    3) You can set a breakpoint to check if you have enter the IRQ

Owen_Su_1-1676885541871.png

    Hope this can help you.

Regards,

Owen

View solution in original post

0 Likes
4 Replies
ericjoy
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

I found my program never enter interrupt service routine (ISR),

void PeriodMatchInterruptHandler(void)

 Why?
0 Likes
Owen_Su
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

Hi, @ericjoy ,

    Can you share your project with us? And which board are you using now?

Regards,

Owen

0 Likes
ericjoy
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hi,

I use xmc4400-drive-card (https://www.infineon.com/cms/en/product/evaluation-boards/kit_xmc4400_dc_v1/)

I use new-->dave project-->choose xmc4400-drive-card

I follow the manual (on the menu-->help-->help content) of PWM_SVM usage (main-->usage),

add one SVM app, and two INTERRUPT app.

no pwm signal on the 6 signal.

If I don't  use "enable" and "trap" signal on the setting of SVPWM, 

I can get the stationary PWM signal on the 6 pins.

I know the program is intend to make a rotating PWM signal.

the program never goes into the ISR(interrupt service routine).

the question I wonder

(1) there are 2 interrupt app, but only one  ISR listed.

(2)the "enable pin"  is input or output?

(3)the "trap pin" is input or output?

If someone can help me, I am very appreciate.

eric.

0 Likes
lock attach
Attachments are accessible only for community members.
Owen_Su
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

Hi, @ericjoy ,

    TRAP signal is used for board fault detection, this signal can be disabled. And I tested with my XMC4500, I found that if I only select 'PeriodMatchInterruptHandler', the debugger can easily get into the interrupt, because we have definition in the main.c.

    And for the 'enable pin' and 'trap pin', you can refer to the figure below: Inverter Enable is an output, Trap is an input.

Owen_Su_0-1676885220968.png

    Here I give you some suggestions:

    1) Define you own 'TrapIRQHandler' in main.c;

    2) Or you can disable 'Trap event- phase U';

    3) You can set a breakpoint to check if you have enter the IRQ

Owen_Su_1-1676885541871.png

    Hope this can help you.

Regards,

Owen

0 Likes