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.
  • G glennPattonWork3

    Hi All, Do we have an Embedded page or shall I ask in C/C++ forum..? Glenn.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #17

    Anyway, MS is coming out with a G5 ARM Surface Go; and VS can generate ARM code ...

    "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

    R 1 Reply Last reply
    0
    • L Lost User

      Anyway, MS is coming out with a G5 ARM Surface Go; and VS can generate ARM code ...

      "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

      R Offline
      R Offline
      Rick York
      wrote on last edited by
      #18

      I would guess this is the wrong topic for your reply.

      "They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

      1 Reply Last reply
      0
      • H honey the codewitch

        I do IoT stuff, which is related and similar, and am diving into more embedded here. For my part, I just ask C questions in the C section, whether it's embedded or not. What's harder is asking about the things where the hardware and firmware meet, but typically I'll just consider that a programming question, tag it as best I can, and then make sure I'm clear about what I'm doing in the description. There are enough embedded devs here I think you'll be able to cast a net and get something that way.

        To err is human. Fortune favors the monsters.

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

        Not to worry I solved the original problem and as is the case meant something else broke, bodged that. Now being left over night to see what breaks next... The LCD driver is a pain yes, you can send it an integer or float but will display a decimal point? Some times yes some times no, and will it return I2C address? (so I can hook up a real time clock that use I2C) No is the answer. Shall I try to get the data sheet, oh company went bust and some genius bought a load of LCD's on Ebay... :rolleyes: Circuit diagrams, who needs those! Glenn (I need :beer:)

        H 1 Reply Last reply
        0
        • G glennPattonWork3

          Not to worry I solved the original problem and as is the case meant something else broke, bodged that. Now being left over night to see what breaks next... The LCD driver is a pain yes, you can send it an integer or float but will display a decimal point? Some times yes some times no, and will it return I2C address? (so I can hook up a real time clock that use I2C) No is the answer. Shall I try to get the data sheet, oh company went bust and some genius bought a load of LCD's on Ebay... :rolleyes: Circuit diagrams, who needs those! Glenn (I need :beer:)

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

          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 1 Reply Last reply
          0
          • 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