Giter VIP home page Giter VIP logo

Comments (2)

RTimothyEdwards avatar RTimothyEdwards commented on July 24, 2024

I'm not sure what I'm looking at in the above graphs. . . SCK and SDO both from the SPI master? In principle, it looks right; the SDO is aligned with the rising edge of the clock in one mode and the falling edge of the clock in the other mode. But do you have an SPI slave in the testbench that can also be put in mode 0 or mode 1? The modes of master and slave have to match, or else yes, there will definitely be race conditions and misinterpretation of data.

from caravel_openframe_project.

M0stafaRady avatar M0stafaRady commented on July 24, 2024

yes, sck and sdo are from the SPI master.
yes the slave works with different modes.

The mode that align with rising edge is functionally right only the last pose edge reads 1 at this example. However the mode that aligns with negative edge reads 1 at edges number 6 and 7 (counting from 0)
image

Here are some other trials sending byte in this mode to provide more details about the shift between clock driving and data sending.

try sending 0x00 but it sends 0x1
image

try sending 0x7F but it sends 0xFF
image

try sending 0x02 but it sends 0x05
image

try sending 0x03 but it sends 0x07
image

from caravel_openframe_project.

Related Issues (15)

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.