Author Topic: How many channels do I need to decode any serial interface with oscilloscope?  (Read 8363 times)

0 Members and 1 Guest are viewing this topic.

Offline caveleiraTopic starter

  • Newbie
  • Posts: 4
  • Country: es
Hi, I am considering to buy an oscilloscope for our Company. Not sure yet exactly what for, and nothing too expensive.
What for sure seems interesting is the possibility of Decoding Serial Interfaces. Since 4 Channels is quite more expensive than 2, comes the question, how many channels do I Need? SPI for example uses 4 lines, means that the oscilloscope Needs the four channels attached to decode the data? Makes sense, but is not yet so well informed by the manufacturers. So hope someone can hier clarify me that.
Thanks in advance!
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
You may also consider Saleae Logic-products in addition to the oscilloscope. The Saleae Logic-products are very handy and can really save your day. There might be some other similar products in the market, but I have used the Saleae Logic-devices in my professional life with great success.
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Most oscilloscopes do not allow you to decode serial interfaces on the analogue channels.
(Some do but you have to check the individual oscilloscope features and then they are software enabled add ons, ie more moeny).

What you are talking about is a Mixed Signal Oscilloscope, where they have 2/4 analogue channels and 8/16/24/32 digital channels.
Again, the serial decode will likely be software enabled add on.
 

Offline caveleiraTopic starter

  • Newbie
  • Posts: 4
  • Country: es
You may also consider Saleae Logic-products in addition to the oscilloscope. The Saleae Logic-products are very handy and can really save your day. There might be some other similar products in the market, but I have used the Saleae Logic-devices in my professional life with great success.

no thanks, I want all in one Piece

Most oscilloscopes do not allow you to decode serial interfaces on the analogue channels.
(Some do but you have to check the individual oscilloscope features and then they are software enabled add ons, ie more moeny).

What you are talking about is a Mixed Signal Oscilloscope, where they have 2/4 analogue channels and 8/16/24/32 digital channels.
Again, the serial decode will likely be software enabled add on.

well, the ones im looking at, they can decode, and they are not MSO.
Of course Im thinking buying also the Serial decode Software.
The question is still.. can the Software decode with 2 channels, or Need 4.
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
SPI needs at least 3, and 4 if you want to watch both directions, UART can of course make do with 2 as can I2C.

Regards, Dan.
 
The following users thanked this post: caveleira

Offline Kilrah

  • Supporter
  • ****
  • Posts: 1852
  • Country: ch
Well obviously you need as many channels as the particular interface you want to decode has lines... so that's only one for one-wire, SPI needs 4 and others may need more.

no thanks, I want all in one Piece

Don't know your reasons, but in most cases a standalone PC-based logic analyzer is more useful than the same feature built in to a scope.
 

Offline caveleiraTopic starter

  • Newbie
  • Posts: 4
  • Country: es
thank you very much dmills, now is clarified

Well obviously you need as many channels as the particular interface you want to decode has lines... so that's only one for one-wire, SPI needs 4 and others may need more.

no thanks, I want all in one Piece

Don't know your reasons, but in most cases a standalone PC-based logic analyzer is more useful than the same feature built in to a scope.

thanks to you too
PD:because of the work Environment, no PC
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7307
  • Country: nl
  • Current job: ATEX product design
Get a 4 channel MSO with built in 16 channel Logic analiser. Saleeaeie is a toy, with other USB logic analisers you lose time instead of working.
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Quote
Hi, I am considering to buy an oscilloscope for our Company. Not sure yet exactly what for, and nothing too expensive.
What for sure seems interesting is the possibility of Decoding Serial Interfaces. Since 4 Channels is quite more expensive than 2, comes the question, how many channels do I Need? SPI for example uses 4 lines, means that the oscilloscope Needs the four channels attached to decode the data? Makes sense, but is not yet so well informed by the manufacturers. So hope someone can hier clarify me that.

To decode SPI, you must have 4 channels, you can get away with 3 if you are not bothered about the ChipSelect.

4 Channel DSO are way more expensive than 2 channel ones, probably because the low end 2 channel models are targeted for hobbiests but the 4 channel models are targeted for companies.

A compromised would be a Mixed Signal Oscilloscope with 2 analogue channels and 8/16 digital channels. I do not know if any vendor does one of these today, I have certainly used one that was a HP that was nearly 20 years old. Hopefully, this will be a cheaper option that the 4 channel DSO but I do not know.
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16794
  • Country: lv
Hopefully, this will be a cheaper option that the 4 channel DSO but I do not know.
certainly not
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
PD:because of the work Environment, no PC

You're developing and/or debugging a serial interface and you don't have access to a computer?  How does that work?

I'm struggling to think of an application in which you would need to decode a serial data stream, but you wouldn't have a computer there with which you could actually do something with the information you learn from the LA.
« Last Edit: July 20, 2016, 03:03:31 pm by suicidaleggroll »
 

Offline Aeternam

  • Supporter
  • ****
  • Posts: 97
  • Country: lu
    • Schartz Engineering
A compromised would be a Mixed Signal Oscilloscope with 2 analogue channels and 8/16 digital channels. I do not know if any vendor does one of these today, I have certainly used one that was a HP that was nearly 20 years old. Hopefully, this will be a cheaper option that the 4 channel DSO but I do not know.

The new R&S HMO1002 fits the bill: https://www.rohde-schwarz.com/product/hmo1002-productstartpage_63493-61541.html I believe Dave did review and tear down videos not too long ago.

Be aware though that you'll need (a) the serial bus decode option and (b) the optional digital probe.
 

Offline caveleiraTopic starter

  • Newbie
  • Posts: 4
  • Country: es
PD:because of the work Environment, no PC

You're developing and/or debugging a serial interface and you don't have access to a computer?  How does that work?

I'm struggling to think of an application in which you would need to decode a serial data stream, but you wouldn't have a computer there with which you could actually do something with the information you learn from the LA.

This should be a multipurpose tool. Sometimes there will be PC, sometimes not.

Thats all about this topic my friends, I already have info from oscilloscopes and so on, thanks for your help.  :-+
 

Offline Nozzer

  • Contributor
  • Posts: 29
  • Country: gb
A compromised would be a Mixed Signal Oscilloscope with 2 analogue channels and 8/16 digital channels. I do not know if any vendor does one of these today, I have certainly used one that was a HP that was nearly 20 years old. Hopefully, this will be a cheaper option that the 4 channel DSO but I do not know.

The new R&S HMO1002 fits the bill: https://www.rohde-schwarz.com/product/hmo1002-productstartpage_63493-61541.html I believe Dave did review and tear down videos not too long ago.

Be aware though that you'll need (a) the serial bus decode option and (b) the optional digital probe.

The newer HMO12nn series offer it too. I was reading their manual (available online) and it suggests that if you buy their full software option you get the 8 digital channels on the POD plus three analogue channels on their two channel scope. Apparently the output for the built-in 25KHz signal generator serves as the third analogue input. This is interesting as the HMO2024 which I was considering and has 4 analogue channels only offers 3 usable analogue channels despite having 4.
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 28136
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
well, the ones im looking at, they can decode, and they are not MSO.
Of course Im thinking buying also the Serial decode Software.
The question is still.. can the Software decode with 2 channels, or Need 4.
.
Some protocols do require more than 2 channels and as others have described if you need to see all the related signals you'll want 4.
Additional digital channels to 2 analogue channels in that case may be a cheaper option, the Siglent SDS1000X or plus series with 16 ch La and Decode might interest you.
http://www.siglenteu.com/pdxx.aspx?id=2373&T=2&tid=1
If you drill down into the accessories tab you'll see the LA has a wide flat ribbon cable that can be a little inflexible however ASAIK it can be substituted with an SCPI cable that is more flexible.

A SDS2000X series on the other hand is available in 2 or 4 ch versions and a 16 ch LA option can be added if required, it's a nicer unit with the LA cable, while still a flat cable is split into 2 x 8 channel cables with a detachable pod on the end of each cable that is ~1m long.
The second image in this page gives you an idea of what it looks like:
http://www.siglenteu.com/pdxx.aspx?id=1195&T=2&tid=1
There's some upgrade deals on these ATM that might be worth considering.

There's also the option of using the external trigger input that both these Siglent models provide for a de facto 3rd channel.
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7307
  • Country: nl
  • Current job: ATEX product design
well, the ones im looking at, they can decode, and they are not MSO.
Of course Im thinking buying also the Serial decode Software.
The question is still.. can the Software decode with 2 channels, or Need 4.
.
Some protocols do require more than 2 channels and as others have described if you need to see all the related signals you'll want 4.
Additional digital channels to 2 analogue channels in that case may be a cheaper option, the Siglent SDS1000X or plus series with 16 ch La and Decode might interest you.
http://www.siglenteu.com/pdxx.aspx?id=2373&T=2&tid=1
If you drill down into the accessories tab you'll see the LA has a wide flat ribbon cable that can be a little inflexible however ASAIK it can be substituted with an SCPI cable that is more flexible.

A SDS2000X series on the other hand is available in 2 or 4 ch versions and a 16 ch LA option can be added if required, it's a nicer unit with the LA cable, while still a flat cable is split into 2 x 8 channel cables with a detachable pod on the end of each cable that is ~1m long.
The second image in this page gives you an idea of what it looks like:
http://www.siglenteu.com/pdxx.aspx?id=1195&T=2&tid=1
There's some upgrade deals on these ATM that might be worth considering.

There's also the option of using the external trigger input that both these Siglent models provide for a de facto 3rd channel.
It is for a company. You dont suggest chinatech scopes for a company. You buy an Agilent, R&S, or LeCroy based on taste, or Tektronics if you are a clueless manager.
 

Offline wraper

  • Supporter
  • ****
  • Posts: 16794
  • Country: lv
As nothing too expensive asked, and likely cannot be cracked as for the company, then 4 ch GW Instek GDS-2000E series 4ch scope might fit. Serial decoders come by default, no options to purchase or crack, everything already there.
 

Offline LabSpokane

  • Super Contributor
  • ***
  • Posts: 1899
  • Country: us
Don't know your reasons, but in most cases a standalone PC-based logic analyzer is more useful than the same feature built in to a scope.

Yup. You need the scope when looking for signal integrity issues and the decoded data. For pure decode, a separate device is more useful.

In Keysight's line, it's worth being aware the decoding is supported on the MSO lines on the 3000 series and above scopes. Never mind that the 2000 series has logic probes.
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 28136
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
It is for a company. You dont suggest chinatech scopes for a company. You buy an Agilent, R&S, or LeCroy based on taste, or Tektronics if you are a clueless manager.
::)
Tell that to my company customers.  :palm:
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline vodka

  • Frequent Contributor
  • **
  • Posts: 518
  • Country: es
Quote
It is for a company. You dont suggest chinatech scopes for a company. You buy an Agilent, R&S, or LeCroy based on taste, or Tektronics if you are a clueless manager.

I think that the caveleira corporation is a little corporation i doubt that they can spend on expensive instruments as Tektronicks or Agilent
 

Offline vodka

  • Frequent Contributor
  • **
  • Posts: 518
  • Country: es
It is for a company. You dont suggest chinatech scopes for a company. You buy an Agilent, R&S, or LeCroy based on taste, or Tektronics if you are a clueless manager.
::)
Tell that to my company customers.  :palm:

The problem is that the  Agilent , Lecroys  etc instruments are manufactured in China as the Siglent and Rigol, but 4 or 5 times more expensives.

Now if the  instruments traditional corporation want to sell, they know that they must do.
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3452
  • Country: it
chinatech doesn't mean "made in china"
that would be stupid.
 

Offline Nozzer

  • Contributor
  • Posts: 29
  • Country: gb
It is for a company. You dont suggest chinatech scopes for a company. You buy an Agilent, R&S, or LeCroy based on taste, or Tektronics if you are a clueless manager.
::)
Tell that to my company customers.  :palm:

The problem is that the  Agilent , Lecroys  etc instruments are manufactured in China as the Siglent and Rigol, but 4 or 5 times more expensives.

Now if the  instruments traditional corporation want to sell, they know that they must do.

The new Rohde and Schwartz are manufactured in the Czech Republic under strict German supervision. The HMO1202 100MHz version sells for under £700 (before tax) in the UK and a little under £1500 for the 300 MHz version. The external digital probe and software will add around an extra £600 to that figure. The downside is that it only offers 10,000 wfs.
 

Offline vodka

  • Frequent Contributor
  • **
  • Posts: 518
  • Country: es
Quote
The HMO1202 100MHz version sells for under £700 (before tax) in the UK and a little under £1500 for the 300 MHz version.

I see the oscilloscope series HMO1202  prices any low from 1000€ (exclude VAT) . Besides ,i compare among the oficial house and distribuitor and the price are the same

Spanish Rohde
http://shop.rohde-schwarz.com/es/catalogsearch/result/index/?dir=asc&limit=25&order=price&q=hmo

German Rohde
http://shop.rohde-schwarz.com/de/catalogsearch/result/index/?dir=asc&limit=25&order=name&q=HMO

Spanish Farnell

http://es.farnell.com/webapp/wcs/stores/servlet/Search?catalogId=15001&langId=-5&storeId=10176&categoryId=700000027009&eq=N%3D220630%26amp%3BNs%3DP_STORE_MARKETING_RANK_FARNELL_ES%257c0%257c%257cP_MAN_PART_NUM%257c0%26amp%3BNtpc%3D1%26amp%3BNtpr%3D1&showResults=true&aa=true&pf=513163562&vw=

And  testing the manufactured place

https://en.wikipedia.org/wiki/Rohde_%26_Schwarz
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
You said cost was a consideration, then discussed no PC.

If you get a PC, which you need to debug unless you are using stand alone board with
display, these are very low cost, most serial busses -

http://www.ebay.com/itm/24MHz-8-Channel-USB-Logic-Analyzer-8-CH-Logic-Analyzer-for-Arduino-MCU-/191685084604?hash=item2ca15245bc:g:KFYAAOSwyQtV1vOO


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline Galenbo

  • Super Contributor
  • ***
  • Posts: 1469
  • Country: be
... SPI for example uses 4 lines,...

I am currently working on an SPI (=serial) problem, and it's more parallel than you think.

I try to connect 3 different modules (ETH, GLCD, MCP) on the same SPI "port" of a PIC processor, the way it's theoretically described for ages in every book. Mosi, Miso, Clock. Finished.

in practice:
-every SPI module needs his own CS_EN pin.
-to rule out problems and easy time-based debug, I chose to give every module temporarily it's own RST pin.
-for some reason, the GLCD has an AO pin: data or command. You can drive the backlight led with pwm.
-the ETH and MCP module can give feedback on an interrupt pin.
-to control start/stop sampling of the analyser, I control an output bit in my program on suspicious places

This gives:
3-clk, miso, mosi
3-cs0 cs1 cs2
3-rst0 rst1 rst2
2-AO, led_pwm
2-int0 int1
1-bit for start/stop analyser

"only" 14 channels, to debug a "serial" protocol, witch I consider easy and basic. (and shitty)
I have a 8-channel analyser witch is enough for this, but less is really not workable.

You may also consider Saleae Logic-products in addition to the oscilloscope. The Saleae Logic-products are very handy and can really save your day. There might be some other similar products in the market, but I have used the Saleae Logic-devices in my professional life with great success.
+1, due to their "sold out" at the time I bought the cheapest $10 replica, that device seems to replace everything in the -y2010 -500$ market.

After this experiences, I would never choose a scope with integrated analyser, except maybe a $10K scope with a $4K analyser, for a $50BN project, witch is far away from my abilities and needs at the moment.

The only need to get it integrated I see at the moment is the ability to see synchronisation between analog and digital, but in my accuracy and frequency range this can easily be done by triggering one device with the other, or record 1 channel with both devices the same time.
« Last Edit: July 22, 2016, 03:14:05 pm by Galenbo »
If you try and take a cat apart to see how it works, the first thing you have on your hands is a nonworking cat.
 

Offline Galenbo

  • Super Contributor
  • ***
  • Posts: 1469
  • Country: be
... with built in 16 channel Logic analiser. Saleeaeie is a toy, with other USB logic analisers you lose time instead of working.
Please enlight me on this.
 
-What I do not mean: You are wrong, I do not agree, you know nothing,...
-What I mean: Can you give me some personal examples and situations where you clearly saw the differences and where the better soft/hard where really worth the money? Where did the others fail or made you loose a day?
If you try and take a cat apart to see how it works, the first thing you have on your hands is a nonworking cat.
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7307
  • Country: nl
  • Current job: ATEX product design
... with built in 16 channel Logic analiser. Saleeaeie is a toy, with other USB logic analisers you lose time instead of working.
Please enlight me on this.
 
-What I do not mean: You are wrong, I do not agree, you know nothing,...
-What I mean: Can you give me some personal examples and situations where you clearly saw the differences and where the better soft/hard where really worth the money? Where did the others fail or made you loose a day?
I was working a lot with LAs when I was working with ADCs, switched front end. So if you dont see the analog signal, your conclusion was wrong. Also, you cannot quickly check that signal integrity is correct. The reason that the LA is connected to a system is 90% because something went wrong. Now, with an DSO, you dont usually have enought channels or capabilities to trigger correctly on a bit error, or CAN error frame or anything like, with an USB LA you cannot see what is causing the issue. I had this with digital isolators. The USB LA told me that everything is fine, when in reality, it was  signals from the glitchland. When you need a USB LA or a MSO... There might be a very fine line. I think it is better to spend the company's money on something that I'm sure will do the job, than on something that "might be enough".
And take a look at the list prices (farnell) for scopes, like the MSOX3024T (personal opinion to be minimum for electronics related work at the workplace). It is the same price as the DSOX3024T. But check other price. DPO2024B and MSO2024B has 600 EUR difference. It is hardly justifiable to buy just a DSO for work these days.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
FYI - the newer Saleae models also do analog sampling.  It only runs at 50 MSps so it can't do high speed lines, but it's more than enough to check for signal integrity on I2C, UART, CAN, and other <5 MHz digital signals.
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3452
  • Country: it
SPI is shitty?
not really.
it's dead simple.
it can be goddamn fast.
itrather easy to make automated transfert with dma or internal buffers and the right peripheral.
there are not all simultaneously verified for many other of the popular transfer methods. the downside is that you need a separate chip select line for each peripheral, i'll give you that
(hint to reduce number of pins: demux with inverted outputs and enable)

+1 for a MSO, get a proper tool. I would use a LA only if i had to check differential lines or a parallel bus or i have to keep track of more than 2 analog channels, otherwise i always use the analog channels and the decoder, i need to see what the hell is really going on, not ones and zeros.
and even in that case the keysight 3000 would be the starting point, an instrument one can trust with only an hint of skepticism.

another one i would pick is the picoscope because the advanced triggering comes out of the box.. that's the one i use at work, at the time it was the only scope that offered SENT decoding without asking for your future son and grandson as a collateral

.. by the way, how good is the GWI GDS2000A Series logic analyzer?
« Last Edit: July 22, 2016, 05:55:09 pm by JPortici »
 

Offline Kilrah

  • Supporter
  • ****
  • Posts: 1852
  • Country: ch
I was working a lot with LAs when I was working with ADCs, switched front end. So if you dont see the analog signal, your conclusion was wrong. Also, you cannot quickly check that signal integrity is correct.

So you had a particular application where an USB LA was not enough, fair enough, but that's no reason to say it's just "a toy".

I've had a Saleae device for 5 years (and just bought a new one after it was stolen), and it's always done a perfectly fine job of letting me debug/analyze things at protocol-level which is what I typically need. When I have to debug logic signals I'll typically do a 5-min check with the scope to see if signal integrity is OK just in case, once confirmed I can forget about it and go on spend my couple of days of protocol coding/fixing for which a scope would just be unnecessary and excessively bulky.
 

Offline Galenbo

  • Super Contributor
  • ***
  • Posts: 1469
  • Country: be
I was working a lot with LAs when I was working with ADCs, switched front end. So if you dont see the analog signal, your conclusion was wrong. Also, you cannot quickly check that signal integrity is correct...
You are clearly on a whole other level than me.
But for checking signal integrity, what is the difference between me connecting my probe+LA and you connecting the probe+LA cable?

And take a look at the list prices (farnell) for scopes, like the MSOX3024T (personal opinion to be minimum for electronics related work at the workplace). It is the same price as the DSOX3024T. But check other price. DPO2024B and MSO2024B has 600 EUR difference. It is hardly justifiable to buy just a DSO for work these days.
You are right about the $4K scopes, it makes hardly a difference. The "leather option" is cheaper for a Mercedes than for a Lada.
But for my 4ch $1K scope (2009), the price for a model including a LA was double.
On top of that, I was somewhat scared the internal LA would be limited, not be upgradeable, difficult to control,... compared to a PC-based device.

A disadvantage I have, is that my scope doesn't have a Pass/Fail output, to connect to my LA. The newer 1054Z has this on the back.

But the topic starter seems to have his reason for not wanting a PC-based LA.
Maybe the Topic starter can say what the budget for 1 MSO scope is?
« Last Edit: July 23, 2016, 01:19:37 am by Galenbo »
If you try and take a cat apart to see how it works, the first thing you have on your hands is a nonworking cat.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf