04-15-2016 06:00 AM
Hi guys,
I am working with myRIO FPGA.
I have seen some examples to generate PWM pulses in FPGA target with the help of timed structures. The timed structures can hold the frame in flat sequence structure with the least time control of 1 micro second (1MHz).
But I want to generate PWM pulses from the digital pins in hundreds of nano seconds.
I have seen the data sheet of myRIO - 1900. It can generate a frequency till 40MHz.
I need pulses in the range of 10MHz.
Can anyone help me how to generate PWM pulses in the range of 10MHz?
Solved! Go to Solution.
04-15-2016 06:30 AM
04-15-2016 06:41 AM
I have tried using ticks. Even they are giving 1 micro second nly
04-15-2016 06:50 AM
Hi trip,
on a FPGA VI you can use wait functions with a tick resolution. Point.
Attach what you have tried. Show a VI where you can't use tick resolution for wait functions!
04-15-2016 06:53 AM
@triptathakur wrote:I have tried using ticks. Even they are giving 1 micro second nly
No, the ticks are at the 40MHz. So you must be having at least 4 ticks happening inside of your structure. Attach your code and we will see what we can figure out for you.
04-15-2016 07:38 PM
Another way to do it is using a single cycle timed loop with pulse generating code inside. I needed to generate very short pulses of <100ns with better resolution than given by the standard 25ns ticks of the 40MHz clock.
By giving the SCTL a higher rate derived clock you can get smaller clock ticks. It can be tricky to write code that will compile at higher clock rate, but that's part of the fun!
04-16-2016 04:15 AM - edited 04-16-2016 04:16 AM
Sir,
Its a different way. I may like this wa
Let me try to build the code as you recommend me.
Thanks for suggesting