Comments (6)
Hi,
Did you arrive at any conclusion about this?
Thank you very much,
Sofia
from py-spidev.
I'm having similar issues. Any solution?
from py-spidev.
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.
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.
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
Next step is to add OR gate in MOSI line that another GPIO line can force MOSI up during WAKEUP sequence
from py-spidev.
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)
- Reading from SPI 0.0 is always zero HOT 3
- CS line double pulsing HOT 3
- spurious low pulse on CS0 HOT 28
- SPI CE0 bounce problem HOT 1
- after close and recreate got Bad file decriptor HOT 1
- The CS_HIGH handling code triggers a lockup on Raspberry Pi in 5.10 HOT 3
- [RPi 4] Spurious CS pulse after transfer HOT 3
- Type interface to writebytes not clear HOT 1
- RX buffer overwrites the TX buffer in 'xfer2' HOT 2
- "xfer2"/"xfer" command erases slave data / slave is unable to respond HOT 6
- support for python 3.9.4 HOT 1
- Please tag 3.5 version
- Unexpected SCK behavior
- Installation Python Spidev fails on Alpine Linux aarch64 HOT 3
- How to define a GPIO pin of Raspberry Pi while I'm using spidev lib? HOT 1
- Install failing on macos [missing linux/spi/spidev.h] HOT 1
- Supporting with-statements
- The open() method is not well suited to hot-plugged SPI device controllers (e.g. USB, Thunderbolt, PCIe and similar situations). HOT 2
- Could not build wheels for spidev HOT 2
- Quad and Dual format support for Synopsys Enhanced SPI controllers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-spidev.