Giter VIP home page Giter VIP logo

Comments (6)

SofiaRafael avatar SofiaRafael commented on August 27, 2024

Hi,
Did you arrive at any conclusion about this?

Thank you very much,
Sofia

from py-spidev.

Troyhy avatar Troyhy commented on August 27, 2024

I'm having similar issues. Any solution?

from py-spidev.

semininja avatar semininja commented on August 27, 2024

You may be able to get the same effect as MOSI default HIGH (also called "active low") by inverting the data you're sending (i.e. flipping each bit before transmission, e.g. converting 0b00110011 to 0b11001100). You can do this easily; if foo is a byte of data, instead of spi.xfer(foo) you'd spi.xfer(~foo).

from py-spidev.

semininja avatar semininja commented on August 27, 2024

As far as setting the CS pin to wake up the chip, will it work if you just send a byte (or a few bytes) of non-data (e.g. 0x00 or 0xFF etc.) first? My cursory inspection of the datasheet implies that for the LTC6804, that should work, although I haven't taken the time to fully understand the function of the device.

from py-spidev.

Troyhy avatar Troyhy commented on August 27, 2024

I believe the OP described the situation well.
I have Arduino witch is generating same SPI command, but data line rests HIGH, but is not inverted. CS will wake the device.
Raspberry sends same command, but MOSI is resting in LOW state and cannot get chip to wake up.

Problem here is that this is not direct SPI connection, but trough LTC6820 isoSPI bus converter.
RaspBerry <-- SPI --> LTC6820 <-- isoSPI --> LTC6804
image

Next step is to add OR gate in MOSI line that another GPIO line can force MOSI up during WAKEUP sequence

from py-spidev.

Troyhy avatar Troyhy commented on August 27, 2024

I can confirm that I got this working with help of additional IO line witch will force MOSI line rest to HIGH. Simple solution with 2 shotky diodes was enough to achieve this.

from py-spidev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.