How can I generate code for TC2000 in order to output pulses on a GPIO(General Purpose Input Output) port using ePWM (Enhanced Pulse Width Modulator) interrupts?

3 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Oct 2009
The ability to generate code for TC2000 in order to output pulses on a GPIO port using ePWM interrupts is available in Target Support Package TC2 3.2 (R2009a).
The following steps have been implemented in the attached example to use the "ePWM" block to output pulses on the GPIO port on the board.
1. Configure the "ePWM" block to produce interrupts.
2. Configure the hardware interrupt block to call function call subsystem on PWM interrupt.
3. Configure the sub-system to output the pulses on the GPIO port.
For more information on the "ePWM" block, refer to the documentation link below.
<http://www.mathworks.com/access/helpdesk/help/toolbox/targetsupport/tic2000/c280xc28x3xepwm.html>

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2009a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!