Part Number: TMDSPREX28335
I have two external square wave signal with frequency of 100kHz, how can I measure the phasee difference with DSP28335?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Please take a look at this thread for same topic.
Regards, Santosh
Thank you Santosh, but I think using a timer and two eCAP modules is a bit complicated in programming, I want to use one eCAP module to capture the rising and falling edge of the AND output of the two external signal.
I wonder if it's OK to directly connect the AND output with DSP28335. The product I want to use to realize AND function is SN74LVC1G08.
Best regards,
cliu
Cliu,
You can connect the output of AND function to GPIO and configure through Input XBAR. However we have not tried it. I tried to visualize in excel, but I am not sure if gets the phase difference. Is this what you are expecting?
Regards, Santosh
Yes, it's what I am expecting. If we subtract half cycle with the duty cycle of the AND signal, we will get the phase different. In this way, only one eCAP module is needed. However, I haven't used any logic IC before. Is it OK to directly connect the output signal to DSP or do I need to add a resistor to limit its current? Thank you again for your timely reply!