- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Referring to "https://community.infineon.com/t5/AURIX/Create-complementary-pwm-with-IfxGtm-Atom-PwmHl-driver/td-p/..."
Can I configure,
#define PWM0 IfxGtm_ATOM1_1N_TOUT72_P15_1_OUT // LED0
#define CCX0 IfxGtm_ATOM1_3_TOUT71_P15_0_OUT
#define COUTX0 IfxGtm_ATOM1_1N_TOUT72_P15_1_OUT // LED0
#define PWM0_OUTPUT NULL_PTR // Use DTM for output signal
#define PWM1 IfxGtm_ATOM1_2N_TOUT73_P15_2_OUT // LED1
#define CCX1 IfxGtm_ATOM1_6_TOUT74_P15_3_OUT
#define COUTX1 IfxGtm_ATOM1_2N_TOUT73_P15_2_OUT T // LED1
#define PWM1_OUTPUT NULL_PTR // Use DTM for output signal
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like you are trying to configure two pairs of complementary PWM signals using IfxGtm_ATOM1_1N_TOUT72_P15_1_OUT and IfxGtm_ATOM1_2N_TOUT73_P15_2_OUT as the output pins for the PWMs.
However, it seems that there is a mistake in the COUTX0 definition, as there is a "T" at the end of the line. It should be removed.
Apart from that, the configuration looks correct. You are using two Atom PWM channels (IfxGtm_ATOM1_1 and IfxGtm_ATOM1_2) and configuring them to generate complementary PWM signals using their output pins (IfxGtm_ATOM1_1N_TOUT72_P15_1_OUT and IfxGtm_ATOM1_2N_TOUT73_P15_2_OUT) and the CCX output pins (IfxGtm_ATOM1_3_TOUT71_P15_0_OUT and IfxGtm_ATOM1_6_TOUT74_P15_3_OUT) to provide the complementary signals.
You are also setting the PWM0_OUTPUT and PWM1_OUTPUT to NULL_PTR, which means that the DTM (Dead-Time Manager) will be used to generate the complementary signals with the appropriate dead-time between them.
Assuming that the hardware setup is correct and the GTM is configured correctly, this should work as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like you are trying to configure two pairs of complementary PWM signals using IfxGtm_ATOM1_1N_TOUT72_P15_1_OUT and IfxGtm_ATOM1_2N_TOUT73_P15_2_OUT as the output pins for the PWMs.
However, it seems that there is a mistake in the COUTX0 definition, as there is a "T" at the end of the line. It should be removed.
Apart from that, the configuration looks correct. You are using two Atom PWM channels (IfxGtm_ATOM1_1 and IfxGtm_ATOM1_2) and configuring them to generate complementary PWM signals using their output pins (IfxGtm_ATOM1_1N_TOUT72_P15_1_OUT and IfxGtm_ATOM1_2N_TOUT73_P15_2_OUT) and the CCX output pins (IfxGtm_ATOM1_3_TOUT71_P15_0_OUT and IfxGtm_ATOM1_6_TOUT74_P15_3_OUT) to provide the complementary signals.
You are also setting the PWM0_OUTPUT and PWM1_OUTPUT to NULL_PTR, which means that the DTM (Dead-Time Manager) will be used to generate the complementary signals with the appropriate dead-time between them.
Assuming that the hardware setup is correct and the GTM is configured correctly, this should work as expected.