DesignSoft

TINA => Analysis => Topic started by: etl17 on February 11, 2018, 07:45:09 PM



Title: How to "decode" SPI and I2C?
Post by: etl17 on February 11, 2018, 07:45:09 PM
Quick question,

I was wondering if there is a good way to debug / decode an SPI or I2C serial bus in Tina? The logic analyzer doesn't seem to offer a "bus decoding" capability. Is there any other method to decode serial busses?

--Stefanos


Title: Re: How to "decode" SPI and I2C?
Post by: horvatht on February 12, 2018, 12:05:50 PM
You may use the voltage pins (in case of SPI) or a voltmeter (in case of I2C) and run a transient analysis to debug the searial bus.

If you want to see the result of the digital outputs as a vector you can decode the inputs with a simple VHDL block like Vec1 in the examples/vhdl/interactive/Calculator_ex_8.TSC

Set the output property of the voltage pin to 'Digital output' if you want to get a digital curve after a mixed mode transient simulation.

You may use the Logic analyser in case of a digital circuit too.


Title: Re: How to "decode" SPI and I2C?
Post by: etl17 on February 17, 2018, 10:29:17 AM
Thank you, horvatht!

This is definitely helpful. One consideration for future development would be to create an interactive SPI and I2C "debugger", similar to the ones in the Labcenter Proteus. The nice thing about such an approach is that it will allow an interactive troubleshooting of such circuits under development. Of course, one can build such a "debugger" manually using a microcontroller with an LCD, but regardless, it would be nice if it was offered as yet another "virtual measurement instrument" in Tina.

Just my $0.02

:-)