04-15-2014 10:21 AM
Hi everyone!
Here is the code which generates accurate PWM for Half bridge Control with programmable dead-time, now here is the issue i want to shift the same signals on two DIO's with half the period of the signal. i ve tried following:
1. I copied the same code in FPGA and delayed it with half period using a wait( but it is consumes double resources and some times the half period phase difference is also not accurate).
I need some other technique to shift the same signal by half-period( or copy paste the same signals onto 2 other outputs by not copying the same code and thus saving resources). Any help is appreciated.
Best regards,
azy
04-22-2014 03:22 AM
Hey,
why do you use the sub vi two times?
Do you use a NI modul and even if which one?
regards
Patrik
04-22-2014 05:45 AM
Hello patrik,
Thanx for the reply.
i am using the NI9401 module for PWM signal generation, and i use the subVI 2 times because the rising edge delay has to be at both edges of a pulse, if there is dead-time at starting edge and not at ending edge there might be a short circuit between high and low side mosfets. do u have any idead to copy code with halp period shifted without duplicating code in FPGA ??
Best Regards,
azy
04-23-2014 02:49 AM
Hey azy,
I´ve two links for you. I hope they will help you.
http://www.ni.com/white-paper/3254/en/#toc6
https://decibel.ni.com/content/docs/DOC-1065
Will the frequency stay constant or do you want it variable?
regards Patrik