element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Minimum spec oscilloscope for rpi spi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 20 replies
  • Answers 7 answers
  • Subscribers 667 subscribers
  • Views 3042 views
  • Users 0 members are here
  • spi
  • oscilloscope
  • raspberry_pi
  • raspberry pi
Related

Minimum spec oscilloscope for rpi spi

Former Member
Former Member over 9 years ago

Hey,

I'm fairly new to the electronics scene and was wondering what the minimum specs for an oscilloscope would be if i needed to look at raspberry pi spi transactions?

thanks.

  • Sign in to reply
  • Cancel
  • Problemchild
    0 Problemchild over 9 years ago in reply to Former Member

    Hi Doug, we need to see that scope... Looks like we should have another round of show me your Lab space!!! What other nice toys do you have?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • amigaamigo
    0 amigaamigo over 9 years ago

    To avoid aliasing (introduction of elements not present In the original signal and loss of information desired) you need to sample at twice the maximum frequency of the signal of interest.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 9 years ago in reply to amigaamigo

    But in order to see anything useful you need to sample at 10x the frequency.

     

    So mid to high end scopes do just that - and average several samples when you are working at lower frequencies to make the 8 bit ADC look more like  a 10 bitter.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gdstew
    0 gdstew over 9 years ago in reply to amigaamigo

    What Michael says is correct, especially for digital signals to get a reasonably accurate look at rise/fall times and other critical timing. I have an old (but nice)

    Tektronix TDS 1012 100MHz, 1 Gs/s two channel w/external trigger digital scope that I bought for exactly that reason. The main drawbacks to the scope is a

    small buffer (2.5K samples), and it is only two channels. 4 channel and 200 MHz (2 Gs/s) models also exist. The TDS 1012 was around $1200 USD when I

    bought it and I still consider it a good investment although I do wish now that I had sprung for the 4 channel 200 MHz model.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago

    I agree with alot of what is being said here but if your not designing the SPI logic or interface then you should be able to trust the signal integrit to a certain extent and what matters more is are you sending the right commands and data to the remote device. this can be achieved with not much more than 2-4X the data bit rate (So you dont miss the edges and are able to decode the signal

     

    I have an MDO3054 (500Mhz 4 Channel with Logic Analyser ) with all the protocol stuff enabled and every time I have had an issue with SPI or I2C, it has come down to either having the wrong mode in my driver software or I forgot to terminate the signals with a suitable pullup

     

    So at the end of the day, slowing down the signal to even below 1Mhz will allow any scope to see what mode your running in and that the levels are where they should be, after that, slowly crank up the speed till it stops working or you get what you want. If it stops working and you can still see the signal on the scope reliably, is it still at the right logic levels. Make sure you have the pull ups on I2C.

     

    Also ask yourself why you need to be at 100+Mhz or even above 4Mhz, unless your driving a graphical display or trying to build a very fast high resolution ADC / DAC then you dont need to. You only need to be a little faster than your desired sample rate and most real world environmental measuring does not require more than a few samples per second, Audio sampling and generation would max out at 200 - 500Khz so still only a few Mbits/Second at best.

     

    Now I have to say, having a real nice scope As Michael says... more expensive than the car, is very welcome, but in many diagnostic scenarios not essential

     

    btw, logic analyzers like the Saliea do not capture the edges, typically they have a highspeed clock and sample the digital data into a RAM buffer at high speed, yes with a programable threashold in some cases to determin if logic 0 or 1 is present but they dont analyze the edges. so a 12Mhz analyzer only needs to sample at maybe 50Mhz but could be much less (24 even)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 9 years ago in reply to Robert Peter Oakes

    Yeah we aren't interested in seeing the relative rise fall times shapes of signals etc ..you are assuming that they have that bit right what are you trying to do is read the SPI bus and interpret the command words going to from the PI. since you have the clock edge provided to sample from the actual sample rate is actually the SPI clock frequency which is some significant divider value of the maximum of 125MHZ.

     

    I know this guy mentioned an Oscilloscope and they as we all know are really cool but remember he doesn't necessarily know what he wants and is explicitly admitting this in the question if a simple logic analyser is what the job needs then we should not get stuck up on his original request but suggest the most appropriate tool for the job.

     

    Not got one handy as any one got a pi taking over SPI to something?  Stick a scope on it and see what the clock rate is ... I bet it's much much slower than the maximum!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 9 years ago in reply to Problemchild

    Hi John,

    From what I can tell, the processor peripheral goes to a very high speed (125MHz according to the BCM peripherals doc that was published), but the Linux driver may limit it (no idea) and then there is the general rule that any signal above 30MHz should always send warning alarms if it is apparent that they are constructed without care over routing those signals. I assumed no care was taken, because it routes to a typical DIL header, and no transmission line. (In a similar vein, any plastic breadboard design would be worriesome if designed for 30MHz+). With that guesstimate in mind, I nevertheless tested at 32MHz SPI clock (square wave, so needs more bandwidth than 32MHz for a nice shape) when I connected it to the XMOS startKIT board quite a while back. I don't have signal traces though : ( And perhaps there could be bit errors and unreliability. It might not be a very nice waveform. Probably higher values could be tried with experimentation (and attempts at minimising reflections), but going above 32MHz clock may not be very sensible without a lot of testing.

    For the SPI communication bursts over a short length ribbon cable between the RPI and XMOS board, 32MHz 'worked' (i.e. it might not be reliable at all over a longer period, or some changing conditions, and a lower value may be more prudent - but it was so long ago, I only have screenshots of the logic analyzer capture from that time, I don't seem to have scope captures from then.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to Problemchild

    I am a retired electrical engineer and HAM radio operator, so a good scope and a Rigol DSA815 spectrum analyzer/tracking generator lets me design and build circuits in digital and RF.  I am old and the mortgage is paid off, so nice toys can be done.  I think the person asking the question is new to this and would do well to start with a low cost logic analyzer.  I got one for less than $100 on eBay that does 24 channels of digital and can decode serial buses (amazing at that price!).  I started electronics when I was 13 (1960) with vacuum tubes and 10 MHz scope and VTVM.  It has been a wild ride and cheaper now than then!  Best wishes, Doug

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago

    The device I'm talking to is a 320x240 tft screen It's 16bit color so 2 transfers per pixel And I'm looking to get at least 30 frames a second So that's 76800 pixels plus a few front and back porch transfers hsync vsync etc So I'll call it  180000180000 transfers to get a little wiggle room So times 30 5.4million transfers a second 8 bits per transfer so 43.2million clock cycles per second I don't know what kind of delay there is between transfers So it seems like I need at least 50Mhz So from what I'm hearing I need 100Mhz scope/logic analyzer If anyone has anything variables I'm not taking into account let me know

     

    Also wow what an amazing community. I've never been to a more active and helpful forum.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to Former Member

    The screen is not fully refreshed each time. So figure on half that average rate.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube