Power Electronics Development Center

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I generate a triangular wave in MyRIO FPGA

Hello all,

I am trying to build a PWM sinal bycomparing a sinusoidal signal with atriangular wave i can see a in built function for sine wave but not for triangular wave Can abyone help me?.

0 Kudos
Message 1 of 2
(3,417 Views)

Hi,

the triangular wareform can be simply generated by an up counter, if you want an asymmentrical carrier. Otherwise, you can implement and up-down counter on the FPGA to have symmentrical carrier signal.

Use smallest integer data-type that fits your requirements, FPGA resources are precious.

0 Kudos
Message 2 of 2
(2,906 Views)