How to generate PWM triangular carrier by AXI Timer in SDK
The Vivado Ver. 2018.3 is already support the PWM Mode in AXI Timer but the function of instant PWM is Generate by use down count mode The first question is in the bottom picture the down count mode is PWM that generate with SAWTOOTH carrier right?
And if i want to generate The PWM by use Triangular carrier for the motor drive application How can i adapt C code in PWM example in ( C:\Xilinx\SDK\2018.3\data\embeddedsw\XilinxProcessorIPLib\drivers\tmrctr_v4_5 ) .
I just solved this issue. You need to use tmrctr_4.6 version which supports the pwm module with axi_timer IP core. You can find it from github and it comes with an example to show you how to enable that.