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. I've overcome the datasheet, and the hardware from heck. finally

I've overcome the datasheet, and the hardware from heck. finally

Scheduled Pinned Locked Moved The Lounge
linuxhardwarehelp
4 Posts 3 Posters 0 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 Offline
    honey the codewitchH Offline
    honey the codewitch
    wrote on last edited by
    #1

    Today I finally got a NXP PCAL6534 34-bit GPIO expander working. I couldn't before. It wasn't showing up as an I2C device, even when I scanned the bus. I solved the problem, but the evaluation board is just funky. Furthermore I just spent the last 4 hours (mostly) poring over a datasheet for because nobody wrote a driver for it, aside from one for linux which is actually weird considering it's not really meant for full fledged computers. I got it working, and ported a stepper motor driver library to work with it, such that you can tie most of the motor's lines to the expander, and you only need one for each attached directly to the MCU (because it's time sensitive.) All in about 4.5 hours today, which is over twice as long as I like to work in a day, but I had a lot to do. From what I understand of my pace, and just generally what I know of work like this is I did it very quickly so I feel pretty good about it, especially given it involved datasheets, which usually make me cross-eyed, and then the finicky and obscure hardware on top of it. Why we didn't go with a more common expander I will probably never know. I'm not a hardware engineer.

    To err is human. Fortune favors the monsters.

    J E 2 Replies Last reply
    0
    • honey the codewitchH honey the codewitch

      Today I finally got a NXP PCAL6534 34-bit GPIO expander working. I couldn't before. It wasn't showing up as an I2C device, even when I scanned the bus. I solved the problem, but the evaluation board is just funky. Furthermore I just spent the last 4 hours (mostly) poring over a datasheet for because nobody wrote a driver for it, aside from one for linux which is actually weird considering it's not really meant for full fledged computers. I got it working, and ported a stepper motor driver library to work with it, such that you can tie most of the motor's lines to the expander, and you only need one for each attached directly to the MCU (because it's time sensitive.) All in about 4.5 hours today, which is over twice as long as I like to work in a day, but I had a lot to do. From what I understand of my pace, and just generally what I know of work like this is I did it very quickly so I feel pretty good about it, especially given it involved datasheets, which usually make me cross-eyed, and then the finicky and obscure hardware on top of it. Why we didn't go with a more common expander I will probably never know. I'm not a hardware engineer.

      To err is human. Fortune favors the monsters.

      J Offline
      J Offline
      jmaida
      wrote on last edited by
      #2

      You are even better than a hardware engineer. You are a hardware/software engineer. Pretty good one. You have a bigger picture. A good thing.

      "A little time, a little trouble, your better day" Badfinger

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

        Today I finally got a NXP PCAL6534 34-bit GPIO expander working. I couldn't before. It wasn't showing up as an I2C device, even when I scanned the bus. I solved the problem, but the evaluation board is just funky. Furthermore I just spent the last 4 hours (mostly) poring over a datasheet for because nobody wrote a driver for it, aside from one for linux which is actually weird considering it's not really meant for full fledged computers. I got it working, and ported a stepper motor driver library to work with it, such that you can tie most of the motor's lines to the expander, and you only need one for each attached directly to the MCU (because it's time sensitive.) All in about 4.5 hours today, which is over twice as long as I like to work in a day, but I had a lot to do. From what I understand of my pace, and just generally what I know of work like this is I did it very quickly so I feel pretty good about it, especially given it involved datasheets, which usually make me cross-eyed, and then the finicky and obscure hardware on top of it. Why we didn't go with a more common expander I will probably never know. I'm not a hardware engineer.

        To err is human. Fortune favors the monsters.

        E Offline
        E Offline
        englebart
        wrote on last edited by
        #3

        Why? Because the marketing department wanted to say: “cutting edge technology using NXP PCAL6534 34-bit GPIO expander”

        honey the codewitchH 1 Reply Last reply
        0
        • E englebart

          Why? Because the marketing department wanted to say: “cutting edge technology using NXP PCAL6534 34-bit GPIO expander”

          honey the codewitchH Offline
          honey the codewitchH Offline
          honey the codewitch
          wrote on last edited by
          #4

          Funny thought, but I know that's not how this happened. I know the guy that made the decision. I could ask him, but he probably just went with NXP because he's used to them, and this is what they had. He's not up on the software end of things, so the fact that NXP doesn't do a good job (apparently) of providing source code to work with their hardware is almost certainly lost on him. It's not a big deal - if anything it means more work for me, and that's not always a bad thing - not when I'm already ahead anyway. :-D

          To err is human. Fortune favors the monsters.

          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