Skip to content
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

Open
charterchap opened this issue May 9, 2019 · 6 comments
Open

Don't forget microchip provides a python wrapper example #18

charterchap opened this issue May 9, 2019 · 6 comments

Comments

@charterchap
Copy link

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

@Makhathini
Copy link

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

@charterchap
Copy link
Author

charterchap commented Oct 7, 2019

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?

@Makhathini
Copy link

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.

@charterchap
Copy link
Author

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.

@Makhathini
Copy link

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

@pavanbabut
Copy link

pavanbabut commented May 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants