Code Monkey home page Code Monkey logo

Comments (3)

Frans-Willem avatar Frans-Willem commented on July 4, 2024 3

The framebuffer is a bit of a misnomer, it's more of a GPIO-output-buffer. Seeing as it also embeds the clock signal, each data bit is in there twice: once with a 0 on the clock bit, and once with a 1.
So in a smaller (but theoretical) example, let's assume you have a device with 8 GPIO outputs, that you can write out a byte array to using DMA. Imagine connecting GPIO 0 to 6 to the input side of 7 shift registers, and GPIO7 to all the clock on those shift registers. Then if I'd want to shift out 2 bits on each shift register, I'd need to schedule 4 bytes to the DMA: 1 byte where the first 7 bits are the first input bits to the shift registers, and the final bit being 0, Another byte being identical to the first one, but now with the final bit (clock) being 1, then a byte containing all 7 second bits to the shift registers and a 0 again for the clock, and again identical byte with the clock signal set to 1.

Thus, to use to DMA-to-GPIO to shift out X bits to a number of parallel shift registers, you need X*2 entries.

I'll see if I can get back to your other questions over the e-mail tomorrow :)

from ledmatrixhub75.

wz233 avatar wz233 commented on July 4, 2024

Sorry for any inconvenience, I guess I understood now. Since you combine clock signals with data. Space for speed and convenience. Gotcha!

from ledmatrixhub75.

wz233 avatar wz233 commented on July 4, 2024

OMG, your response just came when I got your method! I understood now. As for other questions in my email, I already got answers via your article, and I am now drawing some graph to visualize your frame buffer implementation. Hope it can help other DIYers.

Again, thanks for your response!

from ledmatrixhub75.

Related Issues (3)

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.