Code Monkey home page Code Monkey logo

Comments (10)

YuzukiTsuru avatar YuzukiTsuru commented on August 23, 2024 1

这不是老版本手册,这是H616的手册,SPI驱动是在H616上实现的

from syterkit.

YuzukiTsuru avatar YuzukiTsuru commented on August 23, 2024

image

这个寄存器是控制SPI时钟的,在新版IP中已经不推荐这样使用,但是这里为了方便还是这样设置

from syterkit.

Emin017 avatar Emin017 commented on August 23, 2024

image

这个寄存器是控制SPI时钟的,在新版IP中已经不推荐这样使用,但是这里为了方便还是这样设置

有旧版本的手册吗?另外新版本中应该如何控制SPI时钟呢?

from syterkit.

YuzukiTsuru avatar YuzukiTsuru commented on August 23, 2024

新版本需要控制父时钟并设置分频,通过CCU控制输入时钟而不是使用SPI硬件,这样可以获得更灵活的频率,但是需要实现完整的clk框架,目前SyterKit使用的是简易框架没有实现

from syterkit.

Emin017 avatar Emin017 commented on August 23, 2024

OK,感谢大佬(最后想问一下有旧版本的文档吗

from syterkit.

XHTimmo avatar XHTimmo commented on August 23, 2024

我可以理解为两块芯片使用的是同一个SPI控制器,所以D1S的配置和使用的方式也可以参照H616嘛

from syterkit.

YuzukiTsuru avatar YuzukiTsuru commented on August 23, 2024

不是一个控制器,有部分升级,只是在boot阶段需求较少这样用没问题

from syterkit.

XHTimmo avatar XHTimmo commented on August 23, 2024

那框架中sys-spi只适用于boot。如果要用来驱动外设的话,驱动代码是不完整的嘛。

from syterkit.

YuzukiTsuru avatar YuzukiTsuru commented on August 23, 2024

是的,使用SPI_CCR的时钟分频非常粗糙,只有几个固定频点可以用,对于部分特殊需求的设备不适用

from syterkit.

XHTimmo avatar XHTimmo commented on August 23, 2024

好的,那我再自己RTFM研究一下,如果后续还是不能驱动ST7789再来请教大佬

from syterkit.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.