Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 10 of 10

Thread: What does this tell you about my SPI signal?

  1. #1
    Senior Member
    Join Date
    Jun 2013
    Posts
    567

    What does this tell you about my SPI signal?

    I'm trying to get an LCD panel working with a custom T4.1 device, but I'm getting mostly garbage on the screen, so I'm thinking I have signal integrity issues. Here's a pic of the SPI CLCK on my oscilloscope.
    Click image for larger version. 

Name:	SDS00001.png 
Views:	44 
Size:	19.8 KB 
ID:	31997

    I'm guessing I can slow down the SPI interface and get the LCD working properly, but I'm more curious about what this says about how I have things wired up. It almost looks like there's a capacitor on the line. What can cause this kind of issue? Could my traces be too long or too thick? Could SPI CLCK line being too close to other traces account for this?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,478
    Any chance your scope is configured in bandwidth limit mode?

  3. #3
    Senior Member
    Join Date
    Jul 2020
    Posts
    2,017
    Or your probe isn't set to x10? 10:1 probes have much reduced bandwidth on x1.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,478
    Ah yes, good call on the probe setting.

    Name:  1x.jpg
Views: 176
Size:  4.3 KB

    I didn't even think of this because my scope's probes (Keysight N2894A) don't have a 1X vs 10X mode switch.

  5. #5
    Senior Member
    Join Date
    Jun 2013
    Posts
    567
    Thanks guys. I switch to 10x and it's looking more realistic. Now I'm seeing a significant amount of ringing. I suspect this could be the cause of my issue?

    Click image for larger version. 

Name:	SDS00002.png 
Views:	17 
Size:	17.9 KB 
ID:	32003

  6. #6
    Senior Member
    Join Date
    Jun 2013
    Posts
    567
    I had the SDO (MISO) hooked up incorrectly. Everything is working fine now.

  7. #7
    Senior Member
    Join Date
    Jul 2020
    Posts
    2,017
    The ringing you see is probably the ground lead of your probe - it has inductance. For really fast signals there are little ground springs you can use on a probe to allow much less inductance probing of a board. See the home-made example in the photos at the bottom of this EEVBlog thread: https://www.eevblog.com/forum/projec...oise-concepts/

  8. #8
    Senior Member PaulS's Avatar
    Join Date
    Apr 2015
    Location
    Netherlands
    Posts
    1,253
    This $5-$6 CalTest Probe Tip Ground Kit is doing its job perfectly.

    Paul

  9. #9
    Senior Member
    Join Date
    Sep 2021
    Posts
    242
    When it comes to this, and really fast signals, the layout on the board also plays a role. But i'm sure the lcd is well below 100MHz, more likely 30..60MHz max.

    Quote Originally Posted by yeahtuna View Post
    I'm trying to get an LCD panel working [...]
    Could SPI CLCK line being too close to other traces account for this?
    Just try to keep the layout of faster signals short.

  10. #10
    Senior Member
    Join Date
    Jul 2020
    Posts
    2,017
    50MHz will be pushing it without transmission-line / impedance controlled signals. To run a 3.3V single-ended logic signal impedance-matched requires 30 to 60mA, which is why things break down at higher speeds where stray impedances are measured in low hundreds of ohms. LVDS is extensively used for higher speed logic as its both differential and low-voltage/low-current. The low voltage makes the power consumption plausible, differential maximizes the chance of clean reception in the face of signal degradation, and allows it to go off-board easily (laptop screens extensively use LVDS over 4 to 8 pairs).

    So without LVDS stick to 30MHz tops for a good chance of success...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •