F28004x Code Generation + DSP Oscilloscope - Digital input and output issue
Hi,
I am trying to perform a simple test using Code Generation feature in PSIM v2023.1. However, I am facing issues to make it work that is why I am addressing here to see if you can help me understand what I am doing wrong.
As input I have two external square signals (Sig 1 and Sig 2) of equal amplitude, 130kHz and 50% duty cycle both with a fixed 20% delay between them. As output I want to perform XOR operation. The inputs are assigned at GPIO 6 and 7, while output is GPIO 12. In addition, I am setting SCI communication to double check what is happening inside the DSP with the DSP Oscilloscope utility. Schematic is depicted here below and .psimsch is also attached in .zip folder.
Simulation results are good as expected (left figure) where the phase delay between both inputs Sig1 and Sig2 is reflected at the output XOR. However, running the generated code in TMDSCNCD280049C DSP card I am not able to get the same results. Please check oscilloscope capture (right figure) where yellow and blue are Sig 1 and Sig 2 accordingly and purple represents XOR output where it is clear that it is not working.
Neither DSP Oscilloscope is working. Despite the SCI connection with the DSP has been performed correctly data integrity is low and the scope is not showing anything. I tried at different baud rates still the same issue.
I would like to know what I am doing wrong, maybe some configuration issue? As I said, PSIM simulation is working fine while real hardware test is not giving any good results.
Thanks in advance!
Regards, Denys.