Posted by jgmdesign:
Tue. Feb 23, 2016 - 01:41 PM
Trying to get a SAM D10 to communicate with an MCP23017 I/O expander, and I am......well lost.
On the AVR this is a breeze. Write a simple little library to translate the registers for the IC, and drop in Peter Fleury's TWImaster library and all is pretty much done. BUt on these ARM devices it seems that EVERYTHING is a huge mess to accomplish. SPI looks like it's a little easier, but not by much.
Is there an example project that might save my sanity on I2C for these D-series units, or am I in deeper dung that I think?
JIm
I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie
"The critical shortage here is not stuff, but time." - Johan Ekdahl
"Step N is required before you can do step N+1!" - ka7ehk
"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman
"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?" - Lee "theusch"
Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-) - Source Unknown
Please Read: Code-of-Conduct
Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user
Tags: