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. Does Bob have an Embedded page?

Does Bob have an Embedded page?

Scheduled Pinned Locked Moved The Lounge
c++hardwarequestion
26 Posts 9 Posters 2 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.
  • H honey the codewitch

    You're probably using a crappy graphics driver. I have one that may work better for you depending on the type of MCU you're using, but your best bet is to actually use sprintf(tmp,"formatspecifier",value); and then display tmp so you have total control over the formatting of it.

    To err is human. Fortune favors the monsters.

    G Offline
    G Offline
    glennPattonWork3
    wrote on last edited by
    #21

    Quote:

    You're probably using a crappy graphics driver.

    Graphics Driver I wish, No RTOS a while(1) or a for(;;)...

    Quote:

    sprintf(tmp,"formatspecifier",value);

    I would have to load stdio for sprintf()... no room. Think it's the I2C having a bit of noise. Will play more tomorrow. Thanks Glenn

    H 1 Reply Last reply
    0
    • G glennPattonWork3

      Quote:

      You're probably using a crappy graphics driver.

      Graphics Driver I wish, No RTOS a while(1) or a for(;;)...

      Quote:

      sprintf(tmp,"formatspecifier",value);

      I would have to load stdio for sprintf()... no room. Think it's the I2C having a bit of noise. Will play more tomorrow. Thanks Glenn

      H Offline
      H Offline
      honey the codewitch
      wrote on last edited by
      #22

      I meant the library you're using to communicate to your I2C or SPI display. Clearly, I don't know enough about your platform. It might be simpler to just roll your own ftoa type function

      To err is human. Fortune favors the monsters.

      G 1 Reply Last reply
      0
      • H honey the codewitch

        I meant the library you're using to communicate to your I2C or SPI display. Clearly, I don't know enough about your platform. It might be simpler to just roll your own ftoa type function

        To err is human. Fortune favors the monsters.

        G Offline
        G Offline
        glennPattonWork3
        wrote on last edited by
        #23

        Interesting...get the scope on the pins lots of noise I think the fault is with the board, I'm gonna start probing... Also know of a good I2C reference... ;)

        K 1 Reply Last reply
        0
        • Greg UtasG Greg Utas

          Richard, Richard. I don't think I've seen you troll anyone before. :-D

          Robust Services Core | Software Techniques for Lemmings | Articles
          The fox knows many things, but the hedgehog knows one big thing.

          G Offline
          G Offline
          Gary Wheeler
          wrote on last edited by
          #24

          He was just being a dick. [rim-shot]

          Software Zen: delete this;

          1 Reply Last reply
          0
          • G glennPattonWork3

            Interesting...get the scope on the pins lots of noise I think the fault is with the board, I'm gonna start probing... Also know of a good I2C reference... ;)

            K Offline
            K Offline
            kholsinger
            wrote on last edited by
            #25

            Check the values of the pullup resistors. Too low and the drivers can't sink the current. Too high and they can't deal with the capacitance of the wires (sounds like you must have wires to an off-board display). You might try twisting wires, too, thought that's more to keep radiated noise out of other circuits.

            G 1 Reply Last reply
            0
            • K kholsinger

              Check the values of the pullup resistors. Too low and the drivers can't sink the current. Too high and they can't deal with the capacitance of the wires (sounds like you must have wires to an off-board display). You might try twisting wires, too, thought that's more to keep radiated noise out of other circuits.

              G Offline
              G Offline
              glennPattonWork3
              wrote on last edited by
              #26

              Yup I know, wires all over the place, but I did look into that. I think I may be on to the issue the board, I am using was 'claimed' from a pile of write offs and given to me (with out telling me!) so a day spent looking for the circuit diagram and hunting with a Toneohm leads me to think the I2C chip is not properly grounded took it off had a look, missing Gnd pad! start to do some surgry to the board and get caught with a meeting...more on Monday coming, I hope thanks though:thumbsup:

              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