How can I generate a single pulse using ePWM ... - TI E2E
How can I generate a single pulse using ePWM ... - TI E2E
Hello,
Want more information on pulse/pattern generators for sale? Feel free to contact us.
We could make the PWM do this, but since the PWM is really designed for repetition it's not very straightforward. I think the best solution for you is to use an extra serial communications peripheral such as the SCI. You'll have pulse width control by configuring the data and baud rate.
For example, sending 0xF would create a shorter pulse than 0xFF. Then you can fine tune the width via the baud rate.
EDIT: My apologies, I missed the bit about modulation afterwards. There's a few ways to do this with the ePWM. One of the ways I would look at is to setup a PWM with SYNC in enabled (disable external sync paths). Set the TBPRD to something small like 2 and TBCTR = 0 and TBCTR = PRD set the output low via the AQ. Now set the TBPHS to 0xFFFF- # number of cycles in your pulse. Set CMPA=TBPHS and have CMPA set the PWM output high. You can then force a SYNC event via software, the TBCTR will jump to the CMPA value which is greater than TBPRD. It will then overflow and go back to the few counts between 0 and TBPRD where it is constantly being set low. When you are ready to use the PWM as normal you can then reconfigure it.
Regards,
If you want to learn more, please visit our website What Is Universal Counter.
Additional reading:The Sutherland Rub Test: ASTM D5264
Kris
Generating Single Pulses, Finite Pulse Trains, and ...
Perspectives showcases how NI sees what's next in the world of test and technology.
Are you interested in learning more about Rbw And Vbw In Spectrum Analyzer? Contact us today to secure an expert consultation!
Read our featured article