Coder Social home page Coder Social logo

xfer2 glitch on cs. about py-spidev HOT 4 CLOSED

doceme avatar doceme commented on July 21, 2024
xfer2 glitch on cs.

from py-spidev.

Comments (4)

ead0601 avatar ead0601 commented on July 21, 2024

I wanted to add that the glitch occurs near the begining of the transfer, and for the rest of the burst of 4 bytes, the glitch is not there.

from py-spidev.

ead0601 avatar ead0601 commented on July 21, 2024

I added the following to /boot/config.txt

core_freq=250

This disables the auto frequency throttling, and fixes the core frequency.

  1. I no longer see the glitch.
  2. However, very intermittently, I receive the incorrect data. I have slowed down the transfer and ensured proper grounds, and a problem still occurs. The SI looks good on a scope.

Given the improved performance with the "core_freq" setting, I can implement a retry work around. Luckily the first couple of MISO bits are fixed, so I will know when to retry.

Something, is still not Kosher.

Edward

from py-spidev.

doceme avatar doceme commented on July 21, 2024

It sounds like this is a Pi 3 problem or kernel driver issue and not related to spidev.

from py-spidev.

ead0601 avatar ead0601 commented on July 21, 2024

The problem was fixed with the lastest pull request by billmccartney :

#53 (review)

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.