Giter VIP home page Giter VIP logo

Comments (6)

Makhathini avatar Makhathini commented on July 21, 2024

Hi, did you able to set the pin assignment for this chip using this code. I am having difficulties in assigning the miso, mosi, clk pin to correct pins as described in the manual. This code is different from Arduino or raspberry where you get more example/tutorials. If you have been successful in using this code and doing all the assignments please do assist by sharing your code or by giving advice.
Thanks

from mcp2210.

charterchap avatar charterchap commented on July 21, 2024

I don't remember and I can't seem to find the file I used to get a hello world. You are talking about using this module and not python code directly from microchip?

from mcp2210.

Makhathini avatar Makhathini commented on July 21, 2024

I have a PCB that has mcp2210, ADC, DAC, and 2 multiplexers. The board uses mcp2210 chip for SPI communication. Then I downloaded this mcp2210 lib to start the communication. Now I am writing the python script base on the mcp2210 lib but there are no clear indications how do you assign pins accordingly like in Raspberry pi for example.

from mcp2210.

charterchap avatar charterchap commented on July 21, 2024

If you have access to a windows box you might play with the SPI Terminal application in the Downloads section here: https://www.microchip.com/wwwproducts/en/MCP2210 That's how I figured out what all the settings should be at.

from mcp2210.

Makhathini avatar Makhathini commented on July 21, 2024

Thanks for your advice, it helped me. However the problem now is how do I transfer data after initialization of the pin designation and spisettings.idle_cs.
I am having difficulties in using the dev.transfer() and dev.transfer_settings

from mcp2210.

pavanbabut avatar pavanbabut commented on July 21, 2024

For someone coming across this module, unless you are on Python 2.x, this is completely obsolete, doesnt work. Just down the examples (without using this obsolete module) given by Microchip via the link provided in first post and you will be good to go without wasting time.

from mcp2210.

Related Issues (15)

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.