Hi,
To generate the requested waveform on the ePWM pin, you can XOR the chopped signal with '1' using the CLB. Please follow these steps:
1. Enable the chopper in the ePWM block.
2. Open the CLB project in CCS:
- Launch Code Composer Studio (CCS) and open the SysConfig tool for an empty CLB project from the TI examples.You can use the project located at:C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f2837xd\examples\cpu1\clb\CCS\clb_empty.projectspec
- In SysConfig, set up the XOR operation in the Look-Up Table output.
- Input 0: Boundary input (output of the ePWM pin)
- Input 1: Constant '1' (to be XORed in the output logic equation)
- Build this CCS project within CCS.
3.Configure MATLAB and hardware
- In MATLAB, go to Configuration Parameters → Hardware Implementation → Target Hardware Resources → CLB.
- Enable the CLB tile and route the OUT0 signal to ePWM1A.
- In the CLB configuration header file (clb_config.h) and CLB configuration source file (clb_config.c), select the files generated in step 2.
4. Build, deploy, and run the project.
After deployment, you should observe the output signal on the ePWM pin.
You will now get the desired waveform. You can further adjust the values as required to achieve the specific waveform pattern through ePWM.
Regards,
Aditya