Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    FiPy interface with a two Dout lines in the SPI interface

    Scheduled Pinned Locked Moved Discussion
    4 Posts 2 Posters 86 Views 2 Watching
    Loading More Posts
    • 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.
    • M Offline
      MarcosC
      last edited by

      Hello everyone,

      I´m trying to find a way to connect a AD7606 ADC to my Fipy. This ADC has a non standard SPI interface so it has two Dout lines to read from. According to the datasheet, the ADC simultanously send data from both lines but it is buffered so I could read the data from one line and later on switch to the second line and retrieve the data but it should require to reconfigure the SPI interface on each sample. Has anyone deal with this challenge? Is there a way to fix this? Thanks

      Marcos

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @MarcosC
        last edited by

        @MarcosC You can always re-configure or re-create a SPI interface. You could also use an external gate controlled by a GPIO pin. That may be a little bit faster than re-configuring the SPI.

        Since you cannot read both outputs at the same time, you could as well simply use just one output from the AD7606, Output A.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MarcosC @robert-hh
          last edited by

          @robert-hh said in FiPy interface with a two Dout lines in the SPI interface:

          ay be a little bit faster than re-configuring the SPI.

          Thanks Robert. Those were in my list of options but I was unsure if the first trick ( reconfgure de SPI ) impacted in the overall performance of the GPy. Y
          our inputs are much appreciated.

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @MarcosC
            last edited by

            @MarcosC

            Since you cannot read both outputs at the same time, you could as well simply use just one output from the AD7606, Output A.

            I would go for this one. As far as I understand the data sheet, you will read the data of outputB at outputA too. They just follow the first data set. That seems to be the easiest and fastest method.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom