Other Parts Discussed in Thread: MSP430F2471
I am trying to implement an interface between a main controller board and an msp430f2471 via the SPI bus where the msp430 is the slave. I would also like this interface to be interrupt driven.
I have already read through the user guide and have set up everything to the best of my knowledge according to the datasheet. I am currently using the Grace software to set up the peripherals and I have verified most everything that has been set up by Grace. However, communication between the main board and the uC doesn't seem to work.
Currently I have the msp430 set up to transmit 0xAA each time the data transmit iterrupt is triggered, but the main board randomly gets the wrong bytes back. I have connected an oscilloscope to observe the signals and I can see that the main board gets random garbage back (eg. 0x87 0x49), but the signals look fairly clean and are what one would expect to see when observing spi signals, except the SOMI signal should look very similar to the SCK and it doesn't.
From past experience with SPI, I am suspecting that I have set up some hardware wrong or don't truely understand how interface should opperate (I am very familiar with how SPI busses typically operate but I am unsure of how interrupt driven SPI slaves work specifically with the MSP430).
Does any one have any good leads on where I could find some example code for this? (I've already checked the app notes, searched these forums, and done several google searches)
Also please let me know if you have any good ideas of things to try or look out for.
Thanks so much for your help,
Michael
[sorry no idea why I can't put this in an appropriate forum. Mods please move to appropriate forum thanks]