导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    T113-S3 SPI clk 波形异常

    Linux
    2
    2
    38
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • J
      Jaron LV 2 最后由 编辑

      e32d433a-5048-4903-bfa6-a149413a36c9-ab9f585fed23576a0bff69e4e03f8e4.jpg

      &spi1 {
      clock-frequency = <100000000>;
      pinctrl-0 = <&spi1_pins_a &spi1_pins_b>;
      // pinctrl-1 = <&spi1_pins_c>;
      // pinctrl-names = "default", "sleep";
      pinctrl-names = "default";
      spi_slave_mode = <0>;
      spi1_cs_number = <1>;
      spi1_cs_bitmap = <1>;

      status = "okay";
      debug=<0xFFFFFFFF>;
      spi_oled@0 {
      	// device_type = "spi_oled";
      	compatible = "solomon,ssd1322";
      	spi-max-frequency = <10000000>;
      	reg = <0x0>;
      	spi-cpha;
      	spi-cpol;
          reset-gpios = <&pio PD 3 GPIO_ACTIVE_LOW>;
          dc-gpios = <&pio PD 4 GPIO_ACTIVE_HIGH>;
          width = <256>;
          height = <64>;
          buswidth = <8>;
          fps = <30>;
          rotate = <0>;
      	status = "okay";
      	debug=<0xFFFFFFFF>;
      };
      

      };

      1 条回复 最后回复 回复 引用 分享 0
      • PCaT113S4user
        PCaT113S4user LV 3 最后由 编辑

        我对 Keysight 示波器不太熟悉,但我理解的没错吧,信号是用 1 倍探头而不是 10 倍探头探测的?

        这一点很重要,因为使用 1 倍探头会大幅降低带宽。

        你的 SPI 时钟频率设置为 100MHz,需要一台性能良好的示波器才能正确显示信号。构成方波的谐波是奇次谐波,因此示波器的带宽需要远大于 100MHz,并且采样率也要与之匹配。

        所以在我看来,你示波器上的波形看起来并不算异常,尤其考虑到 3.3V 的信号经过截止频率约为 6MHz 的一阶探头滤波器衰减后,其幅度会远小于 3.3V 的输出电压。

        Translated from English:
        I'm not familiar with keysight scopes, but am I right when saying that the signal is probed with a 1x probe instead of 10x.
        Why this is important, is that with a 1x probe the bandwidth is reduced quite a bit.
        With your SPI clock set to 100MHz one needs a good scope to see a proper representation of the signal. The harmonics that make up the square wave are the odd ones, so the scope needs to have a bandwidth of way more than 100MHz and a sampling rate to go with it.
        So to me the trace on your scope does not look that abnormal, also considering that a 3.3V signal reduced by a first order probe filter with a cutoff point around 6MHz will be far less than the 3.3V output.

        1 条回复 最后回复 回复 引用 分享 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策