cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
478 Views
Registered: ‎09-01-2018

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 ) .

Thank for help

 

 

53713863_343912626269911_8061836008968159232_n.png
0 Kudos
1 Reply
Highlighted
Visitor
Visitor
167 Views
Registered: ‎08-06-2019

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. 

0 Kudos