Abstract
Programming provides us with the flexibility to use the same hardware core for different applications. A device whose performance can be modified through some sort of instructions is called a programmable or configurable device. Most I/O ports and peripherals are examples of these blocks; their configuration should be part of our program design.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Texas Instruments has many code examples available for MSP430 at http://msp430.com.
- 2.
This hands on exercise is adapted from TI with permission
- 3.
Strictly speaking, the opcode is part of the machine language code only and the mnemonic is the assembly language name for the opcode.
- 4.
For a more in depth treatment than the introductory level provided in this book, the reader may consult the document “MSP430 IAR: Reference Guide for Texas Instruments’ MSP430 Microcontroller Family”, published by IAR Systems Inc. and downloadable from the Internet.
- 5.
Unfortunately, now and then TI edits the files and changes names. If one of the errors shown during assembly indicates unknown definition, first check spelling. If this is not the source of error, check for an updated header file.
- 6.
An excellent and more in depth discussion about this topic can be found at http://en.wikipedia.org/wiki/Assembly_language. We encourage the reader to go to this site and also look several of the references listed therein.
- 7.
Hence the name immediate mode.
- 8.
It is meaningless to end a real world application with this command, just waiting until battery dries up!
- 9.
Most information in this section follows the application report slaa042, available from Texas Instruments website. Yet, this report has the old names for the registers: SUMLO and SUMHI for current RESLO and RESHI, respectively.
- 10.
The MSP430 CPU can run programs from the RAM space. This is not a feature of every microcontroller.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2014 Springer Science+Business Media New York
About this chapter
Cite this chapter
Jiménez, M., Palomera, R., Couvertier, I. (2014). Assembly Language Programming. In: Introduction to Embedded Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-3143-5_4
Download citation
DOI: https://doi.org/10.1007/978-1-4614-3143-5_4
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-3142-8
Online ISBN: 978-1-4614-3143-5
eBook Packages: EngineeringEngineering (R0)