DesignSoft
February 22, 2018, 08:25:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to TINACloud, the cloud based version of TINA, running in your browser without any installation and anywhere in the world. For limited time, now you can get it for free if you purchase a new license or upgrade to v10 version of TINA at www.tinacloud.com.  With this great extension you can present or modify your designs wherever you are in the world and even while travelling.

We are eager to hear from you any comments and feedback.
 
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to "decode" SPI and I2C?  (Read 80 times)
etl17
Newbie
*
Posts: 36


View Profile
« 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
Logged
horvatht
Global Moderator
Full Member
*****
Posts: 147


View Profile
« Reply #1 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.
Logged
etl17
Newbie
*
Posts: 36


View Profile
« Reply #2 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

:-)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!