Part Number: MSP430G2553
Other Parts Discussed in Thread: CC430F6137
Tool/software: Code Composer Studio
Hello,
this might be an interesting theme for beginner, myself as well.
I'm trying to build a SPI communication between CC430f6137(Master) and MSP430g2553(Slave).
With the help of Nima Eskandari, I get the "SPI state machine " between two MSP430g2553, with a little bit modification, I simplifed the state machine between CC430f6137 and MSP430g2553,
and it works good with some assigned default strings.
The MSP430g2553 is used to get the data from sensor, and send the data with SPI to CC430f6137.
My problem is,
in MSP430g2553, I use another timer interrupt to deal with my sensor, instead of default strings the data will be send per SPI,
in the beginning CC430f6137 get the right strings like
RATE: 004.3000
VALUE: 000.1554
RATE: 0004.300
VALUE: 0000.154
RATE: 0004.400
VALUE: 0000.143
but after several seconds, I get some strings like
RATE: 7ÿïþ
VALUE: çy·õ~ùÓ
RATE: =Ííø¿¿°½
VALUE: ñ·ûøþýëZ
RATE: ù¿½Þ¶ù
VALUE: ý×þôÎæ,
I am searching a way to solve the conflict between USCI interrupt and timer interrupt.
Any idea and suggestions will be appreciated.
Thank you in advance.
--Qibin