Other Parts Discussed in Thread: MSP430G2231
Hi all,
I am a beginner with MSP430 coding and having been combing the internet for help about USI SPI interface but have come up un-fulfilled.
I am using the MSP430G2231 (launchpad) as the master and a digital potentiometer MAXLATE5386 as the slave (http://datasheet.octopart.com/MAX5386LATE%2B-Maxim-datasheet-8528562.pdf read page 8 of the datasheet for more info). What I want to do is use the MSP430 to code the digital potentiometer's resistance.
The digital potentiometer supports 3-wire SPI interfacing so I need to use that. I believe the MSP430G2231 has USI SPI interfacing. My MSP430 needs to be initialized to run on my externally soldered microcrystal: SCLK.
Can someone point me to/give me some example code that shows me how to do all the USI SPI initialization? I have seen some useful User Guides/Tutorials but I feel like they leave me confused and don't explain all the code snippets completely.
Thanks,
Kevin
p.s. feel free to add any advice/link me to anything that you think might help!!