I am new to the simcode generation of the PSIM. To start with, I have taken a simple example of Dual Active Bridge (DAB) converter.
It has 8 switches (4 switches in each bridge) as shown in the attached PSIM file.
I am simply using a square wave generator and giving a dead band in the top and bottom switches with the help of an AND circuit.
The above square wave generator is sampled using a ZOH block and then given to the Digital Output
Everything is working fine in the simulation, but when I am generating the code I am getting a continuous high (always 1) on the output pins of GPIO.
Note: The code is successfully burnt on DSP using cc studio.
Kindly see the model and let me know what mistakes I am doing and how to get a PWM at the GPIO pins of DSP using the above control logic…?