Hi !
I am using PSIM software simcoder to run a TI28335 DSP.
My current goal is to calculate the phase difference between two input analog signals.
The signals are high frequency signals (300-500 kHz) such that I cannot just randomly sample them. In addition, their frequency might very and is not also known during operation.
In order for my logic circuit to work and provide the right phase within one switching cycle, I need to force the hardware to sample the signals on their rising and falling edges.
I read that there is a capture block in PSIM, but I find it hard to understand how to use it to my needs, didn't find any examples of such simulations as well.
Any help would be much appreciated.
A picture for clarity is added.