K40 MCU features:
All channels can be configured for center-aligned PWM mode
• Each pair of channels can be combined to generate a PWM signal (with independent control of both
edges of the PWM signal)
• FTM channels can operate as pairs with equal outputs, as pairs with complementary outputs, or as
independent channels (with independent outputs)
• Deadtime insertion is available for each complementary pair
but the TU unit in processor expert software,the channel mode only select compare and capture,have not PWM mode.
Can i config to drive Three-phase ACIM in processor expert software?
Hi, sorry for the delay.
The macro is FTM_PDD_WriteChanngeValueReg(channel, value);
The FTM needs to be configured to produce to be initialized properly, including channels and their settings to perform output toggling (e.g. clear on overrun and set on compare). You can also see generated sources of TimerUnit_LDD or PPG components.
for the PWM there is only a basic PWM_LDD component that can handle simple PWM output, which probably won't be enough in your case.
To use advanced FTM features related to PWM you'd need to use the Init_FTM component that can provide you to setup complete FTM initialization, including all PWM options like Fault control, complnementary mode etc.
For the runtime control, you can use the PDD macros listed under the Init_FTM componet in the Component view.
Processor Expert Support Team