Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Half a bit

Half a bit

Scheduled Pinned Locked Moved The Lounge
graphicshardwareregexhelp
3 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • honey the codewitchH Online
    honey the codewitchH Online
    honey the codewitch
    wrote on last edited by
    #1

    Banging on the bits My spi reads getting no hits my timing's not tight something ain't right this driver is giving me fits seriously though, my clock signal is *half a bit* behind my MOSI signal using the ESP-IDF, but bang on using the Arduino framework, I think. At least that's what digging around the internet has strongly implied. I'll know by the 15th when my logic analyzer gets here. I figured out it was a timing issue because I was getting 0xFFFF back for my pixel reads, but sometimes 0x0000, and when I plotted them in a square I got a zebra pattern. Unfortunately I may have to rewrite the entire SPI subsystem under the ESP-IDF if I want this stuff to work. What I don't get is how more people haven't had these problems. I think part of it is nearly everyone uses the Arduino framework except for the hackers, which is unfortunate because the ESP-IDF has a number of advantages. They just need to work the kinks out of it apparently. I've got a lot of code invested in the ESP-IDF but if I can't get this to work I will have no e-paper/e-ink support in my graphics stuff for it because none of the controllers seem to be able to handle the timing being off by half a bit.

    Real programmers use butterflies

    M 1 Reply Last reply
    0
    • honey the codewitchH honey the codewitch

      Banging on the bits My spi reads getting no hits my timing's not tight something ain't right this driver is giving me fits seriously though, my clock signal is *half a bit* behind my MOSI signal using the ESP-IDF, but bang on using the Arduino framework, I think. At least that's what digging around the internet has strongly implied. I'll know by the 15th when my logic analyzer gets here. I figured out it was a timing issue because I was getting 0xFFFF back for my pixel reads, but sometimes 0x0000, and when I plotted them in a square I got a zebra pattern. Unfortunately I may have to rewrite the entire SPI subsystem under the ESP-IDF if I want this stuff to work. What I don't get is how more people haven't had these problems. I think part of it is nearly everyone uses the Arduino framework except for the hackers, which is unfortunate because the ESP-IDF has a number of advantages. They just need to work the kinks out of it apparently. I've got a lot of code invested in the ESP-IDF but if I can't get this to work I will have no e-paper/e-ink support in my graphics stuff for it because none of the controllers seem to be able to handle the timing being off by half a bit.

      Real programmers use butterflies

      M Offline
      M Offline
      markkuk
      wrote on last edited by
      #2

      honey the codewitch wrote:

      my clock signal is *half a bit* behind my MOSI signal

      Doesn't that mean you are using wrong SPI Transfer Mode[^]? Configuring a different mode doesn't need any rewrite of ESP-IDF code.

      honey the codewitchH 1 Reply Last reply
      0
      • M markkuk

        honey the codewitch wrote:

        my clock signal is *half a bit* behind my MOSI signal

        Doesn't that mean you are using wrong SPI Transfer Mode[^]? Configuring a different mode doesn't need any rewrite of ESP-IDF code.

        honey the codewitchH Online
        honey the codewitchH Online
        honey the codewitch
        wrote on last edited by
        #3

        Nope, it's the right transfer mode (Mode 0 in this case) Here's part of the relevant information I've been able to find on this issue ESP32-WROVER-KIT use of SPI master - ESP32 Forum[^]

        Real programmers use butterflies

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups