This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm using MSP430AFE253.
I want to send the conversion result from SD24 ADC (from MSP430AFE253) via SPI to an other MSP430F6638.
In the family data sheet MSP430AFE2x3, 3 modules are mentioned: USCI, USART and USI and all of them support SPI.
So what is the difference between this 3 modules?
In the data sheet of MSP430AFE253, only USART0 is mentioned. Does it mean that this device has only USART?
In the data sheet of MSP430F6638, only USCI is mentioned. Does it mean that this device has only USCI?
So if I build up a SPI communication between the 2 devices (AFE253 will be the master, and F6638 will be the slave), may any problem happen?
The family user's guide describes details of all modules that a family member could have. The data-sheet of each member of the family tells you what modules that specific member has.
SPI interface can be implemented with whichever synchronous serial communication module you have on the chip. You can even use bit banging with or without help from a Timer module.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
MSP430-BeginnerSo what is the difference between this 3 modules?
USART supports UART mode (async serial, RS232), SPI and also has a very complex I2C implementation.USI is a 16 bit shift register and clock generator that supports SPI and I2C, but needs to be handled on a relatively low level. It offers, however, some options that are almost impossible to implement on the other two.USCI is the newest version. It offers UART mode with auto-baudrate-detection, SPI )with up to system clock speed in maste rmode) and a less complex (compared to USART) but much easier (than both others) and flexible (than USART) I2C implementation.
Some MSPs have two different (e.g. USI and USCI), some have more than one (e.g. 4 USCI in the 54xx series)
MSP430-BeginnerIn the data sheet of MSP430AFE253, only USART0 is mentioned. Does it mean that this device has only USART?
MSP430-BeginnerIn the data sheet of MSP430F6638, only USCI is mentioned. Does it mean that this device has only USCI?
MSP430-BeginnerSo if I build up a SPI communication between the 2 devices (AFE253 will be the master, and F6638 will be the slave), may any problem happen?
If the 6638 is the master, it can poll the data from many slaves through the same or a second SPI (each USCI module can do 2 SPI connections simultaneously).If the AFE is teh master, it can push the data to its slave 6638 (or many slaves) when it wants to send it. The master controls, when something is sent or received (other than with UART, where both directions are independent), and one master can communicate with many slaves through the same SPI bus. Yet every slave can communication with one master only and only if the master wants.
Time to say goodbye - I don't have the time anymore to read and answer forum posts. See my bio for details.Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.I'm sorry that I can no longer provide help in the forum or by private conversation.
In reply to Jens-Michael Gross:
Jens-Michael Gross, and one master can communicate with many slaves through the same SPI bus
Jens-Michael GrossIf the AFE is teh master, it can push the data to its slave 6638
Actually I want to send the output data of SD24 ADC through SPI from AFE253 to F6638. So which one has to be the master in this case? Actually I want to send the data to F6638 to take advantage of its USB interface to send the data to a PC.
I don't find an example code for AFE253 for SPI, is there a compatible model?
In reply to MSP430-Beginner:
Each slave needs one dedicated CS line and all shar ethe same clock and data lines.
MSP430-Beginnerwhich one has to be the master in this case
The quesiton is: who shall control the timing? Sensor or USB controller? The one who determines when something has to be transferred through SPI has to be the master.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.