-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't forget microchip provides a python wrapper example #18
Comments
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. |
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? |
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. |
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. |
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. |
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. |
I used this repo from osx and managed to get a hello world working. But on the windows side it's less painful to use the dll provided from microchip. You can find it buried in here: http://ww1.microchip.com/downloads/en/DeviceDoc/MCP2210_DLLv2.zip
The text was updated successfully, but these errors were encountered: