Abstract
This chapter looks at the serial communication capability of the MSP430 [1, 2, 3, 4]. Serial communication uses a single wire to send information between a transmitter (Tx) and a receiver (Rx) as a sequence of bits. This is the opposite of how we can send information as a full word using the MCU ports, which is considered parallel communication. Serial communication allows information to be transmitted using less pins compared to parallel communication, but at a slower overall information transmission rate due to only sending one bit at a time as opposed to a full word. The MSP430 contains dedicated peripherals to handle serial communication called the enhanced Universal Serial Communication Interfaces (eUSCI). The MSP430FR2355 contains four separate eUSCI peripherals called eUSCI_A0, eUSCI_A1, eUSCI_B0, and eUSCI_B1. The MSP430FR2355 supports three serial communication modes including: (1) universal asynchronous receiver/transmitter (UART); (2) serial peripheral interface (SPI); and (3) inter-integrated circuit (I2C) protocol. The eUSCI_A0 and eUSCI_A1 peripherals can be configured to support either UART or SPI. The eUSCI_B0 and eUSCI_B1 peripherals can be configured to support either SPI or I2C. This chapter gives an overview of the UART, SPI, and I2C protocols and presents how to use these communication modes on the eUSCIs within the MSP430FR2355 in C.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Texas Instruments Inc (2019) MSP430FR4xx and MSP430FR2xx Family User’s Guide, Literature Number: SLAU445I, October 2014 – Revised March 2019. Retrieved from: https://www.ti.com/lit/ug/slau445i/slau445i.pdf
Inc TI (2019) MSP430FR235x. MSP430FR215x Mixed-Signal Microcontrollers [device-specific data sheet], Literature Number: SLASEC4D, May 2018 – Revised (December 2019). Retrieved from: https://www.ti.com/lit/ds/symlink/msp430fr2355.pdf
Texas Instruments Inc. (2019). MSP430FR235x LaunchPadTM Development Kit User’s Guide, Literature Number: SLAU680, May 2018. Retrieved from: https://www.ti.com/lit/ug/slau680/slau680.pdf
Texas Instruments Inc (2015) Understanding the I2C Bus [Application Report], Literature Number: SLVA704, June 2015. Retrieved from: http://www.ti.com/lit/an/slva704/slva704.pdf
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this chapter
Cite this chapter
LaMeres, B.J. (2020). Serial Communication in C. In: Embedded Systems Design using the MSP430FR2355 LaunchPadâ„¢. Springer, Cham. https://doi.org/10.1007/978-3-030-40574-8_14
Download citation
DOI: https://doi.org/10.1007/978-3-030-40574-8_14
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-40573-1
Online ISBN: 978-3-030-40574-8
eBook Packages: EngineeringEngineering (R0)