O'Reilly logo

Microcontroller Programming and Interfacing Texas Instruments MSP430 by Daniel J. Pack, Steven F. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

312 9. COMMUNICATION SYSTEMS
The scenarios shown above are arbitrary. What would be more suitable for smart homes in
your neighborhood?
9.9 CONCLUSION
As an embedded system designer and programmer, it is important to consider communication means
(serial/parallel) and costs (synchronous/asynchronous) associated with each possible communication
method when designing a project with a microcontroller. In this chapter, we give readers fundamental
knowledge on those issues by presenting a variety of communication units resident on the MSP430
microcontroller, including UART, SPI, I
2
C, and USB. The control registers to configure commu-
nication units and interrupts for each unit were also presented. In addition, we also briefly showed
how one can design a wireless communication system using the MSP430 controller.
9.10 REFERENCES AND FURTHER READING
Texas Instruments MSP430x5xx/MSP430x6xx Family User’s Guide (SLAU208G). Texas In-
struments: 2010.
Texas Inst ruments MSP430x4xx Family User’s Guide “RISC 16-Bit CPU (SLAU056J. Texas
Instruments: 2010.
MSP430F543x, MSP430F541x Mixed Signal Microcontroller (Rev. C)
Creating a ZigBee Smart Energy Device with the MSP430F54xx and the CC2530-ZNP
CC2530-ZNP Interface Specification, SWRA312
9.11 CHAPTER PROBLEMS
Fundamental
1. Describe the difference between parallel and serial communications.
2. If the communication cost is the primary issue,which communication methods (parallel, series)
should be used? Why?
3. What is the difference between synchronous and asynchronous communications?
4. The USCI in the UART mode supports LIN and IrDA. For each identify the protocol used:
serial/parallel and synchronous/asynchronous
5. In the I
2
C communication protocol, how does one configure the MSP430 to become a master
device? What must be done to configure it as a slave device?
6. Give a brief description of a communication protocol.
9.11. CHAPTER PROBLEMS 313
Advanced
1. Write a subroutine that properly initialize the SPI unit. Specify the configuration parameter
values used for the external device.
2. Describe interrupts associated with the I
2
C unit.
3. There are multiple I
2
C interrupts but a single interrupt vector. After detecting an interrupt,
the I
2
C interrupt system must identify the source of the interrupt. How is this accomplished?
Challenging
1. Design and program three MSP430 controller systems to measure temperatures surrounding
the three controllers. Create a wireless communication network using the three controllers
along with the CC2530-ZNP radio transceivers. The controllers should constantly share the
temperature sensor data among the members. Select a central controller and display the three
temperature values on a LCD display once every five seconds.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required