2

Sorry for such a simple question, but does anyone have a C example of initializing the MSP430 for SPI mode and performing poll read and write operations? Very new stuff to me and am not sure where to start.

Thanks.

ARW
  • 3,306
  • 7
  • 32
  • 41
  • I would start by bit banging then try the built in spi hardware if there is spi hardware in the particular chip. You should specify which specific msp430 chip you are using. Also what peripheral are you going to talk to, that is also important. – old_timer Apr 27 '12 at 04:19
  • Thanks, should have specified but the MSP430 chip I am using is the MSP430G2553 and my understanding is that it should have built in SPI hardware. Is there a sort of generic method to read/write, leaving out anything specific regarding the peripheral I'm communicating with? I don't have that information at the moment unfortunately, just trying to get a head start. – ARW Apr 27 '12 at 04:24
  • Have you tried looking at TI's website? They have tons of sample code that illustrates just about everything you can do with an MSP430. – Sean Apr 27 '12 at 04:42
  • Just wanted to recommend a logic analyzer for debugging SPI - very easy to use, and the 8-channel is $150! http://www.saleae.com/ – Jeff May 01 '12 at 13:43

1 Answers1

1

You might have a look at MSP430Ware which is "a collection of code examples, datasheets and other design resources for ALL MSP430 devices..."

Sean
  • 5,290
  • 2
  • 24
  • 21