MSP430 Microcontroller Basics (eBook)
688 Seiten
Elsevier Science (Verlag)
978-0-08-055855-4 (ISBN)
Introduction to the MSP430 combines a tutorial approach with a description of the CPU and main peripherals. The tutorial builds from a basic program for lighting LEDs to the use of a timer. It uses the C programming language from the start but programs are also developed in assembly language to show how a program interacts with the hardware. To demonstrate the special features of the MSP430 full coverage is given to the instruction set, sigma-delta analog-digital converters and timers. Finally, the book gives an introduction to the MSP430 which extends the architecture to address more memory and which provides a bridge to the ARM 7 processor.
Contents:
1.Embedded electronic systems and microcontrollers, 2. Texas MSP430, 3. Development, 4. A simple tour of the MSP430, 5. Architecture of the MSP430, 6.Functions, interrupts and low-power modes, 7.Digital input, output and displays, 8. Timers, 9. Mixed-signal systems: Analog input and output, 10. Communication, 11. The future: MSP430X, Appendices.
*The only tutorial book on the MSP430
*Uses both C and assembly language
*A CDROM containing a development kit to help the engineer and hobbyist program the MSP430.
The MSP430 microcontroller family offers ultra-low power mixed signal, 16-bit architecture that is perfect for wireless low-power industrial and portable medical applications. This book begins with an overview of embedded systems and microcontrollers followed by a comprehensive in-depth look at the MSP430. The coverage included a tour of the microcontroller's architecture and functionality along with a review of the development environment. Start using the MSP430 armed with a complete understanding of the microcontroller and what you need to get the microcontroller up and running!- Details C and assembly language for the MSP430- Companion Web site contains a development kit- Full coverage is given to the MSP430 instruction set, and sigma-delta analog-digital converters and timers
Front Cover 1
MSP430 Microcontroller Basics 4
Copyright Page 5
Table of Contents 8
Preface 12
Chapter 1. Embedded Electronic Systems and Microcontrollers 18
1.1 What (and Where) Are Embedded Systems? 18
1.2 Approaches to Embedded Systems 19
1.3 Small Microcontrollers 22
1.4 Anatomy of a Typical Small Microcontroller 25
1.5 Memory 28
1.6 Software 32
1.7 Where Does the MSP430 Fit? 33
Chapter 2. The Texas Instruments MSP430 38
2.1 The Outside View—Pin-Out 38
2.2 The Inside View—Functional Block Diagram 41
2.3 Memory 42
2.4 Central Processing Unit 47
2.5 Memory-Mapped Input and Output 49
2.6 Clock Generator 50
2.7 Exceptions: Interrupts and Resets 53
2.8 Where to Find Further Information 54
Chapter 3. Development 60
3.1 Development Environment 61
3.2 The C Programming Language 63
3.3 Assembly Language 72
3.4 Access to the Microcontroller for Programming and Debugging 74
3.5 Demonstration Boards 76
3.6 Hardware 81
3.7 Equipment 82
Chapter 4. A Simple Tour of the MSP430 84
4.1 First Program on a Conventional Desktop Computer 85
4.2 Light LEDs in C 87
4.3 Light LEDs in Assembly Language 89
4.4 Read Input from a Switch 97
4.5 Automatic Control: Flashing Light by Software Delay 108
4.6 Automatic Control: Use of Subroutines 116
4.7 Automatic Control: Flashing a Light by Polling Timer_A 122
4.8 Header Files and Issues Brushed under the Carpet 131
Chapter 5. Architecture of the MSP430 Processor 136
5.1 Central Processing Unit 136
5.2 Addressing Modes 142
5.3 Constant Generator and Emulated Instructions 148
5.4 Instruction Set 149
5.5 Examples 163
5.6 Reflections on the CPU and Instruction Set 170
5.7 Resets 174
5.8 Clock System 180
Chapter 6. Functions, Interrupts, and Low-Power Modes 194
6.1 Functions and Subroutines 195
6.2 What Happens when a Subroutine Is Called? 195
6.3 Storage for Local Variables 196
6.4 Passing Parameters to a Subroutine and Returning a Result 200
6.5 Mixing C and Assembly Language 202
6.6 Interrupts 203
6.7 What Happens when an Interrupt Is Requested? 205
6.8 Interrupt Service Routines 207
6.9 Issues Associated with Interrupts 213
6.10 Low-Power Modes of Operation 215
Chapter 7. Digital Input, Output, and Displays 224
7.1 Digital Input and Output: Parallel Ports 225
7.2 Digital Inputs 233
7.3 Switch Debounce 242
7.4 Digital Outputs 255
7.5 Interface between 3V and 5V Systems 260
7.6 Driving Heavier Loads 264
7.7 Liquid Crystal Displays 269
7.8 Driving an LCD from an MSP430x4xx 273
7.9 Simple Applications of the LCD 281
Chapter 8. Timers 292
8.1 Watchdog Timer 293
8.2 Basic Timer1 298
8.3 Timer_A 304
8.4 Measurement in the Capture Mode 317
8.5 Output in the Continuous Mode 335
8.6 Output in the Up Mode: Edge-Aligned Pulse-Width Modulation 347
8.7 Output in the Up/Down Mode: Centered Pulse-Width Modulation 366
8.8 Operation of Timer_A in the Sampling Mode 369
8.9 Timer_B 370
8.10 What Timer Where? 373
8.11 Setting the Real-Time Clock: State Machines 374
Chapter 9. Mixed-Signal Systems: Analog Input and Output 386
9.1 Comparator_A 388
9.2 Analog-to-Digital Conversion: General Issues 410
9.3 Analog-to-Digital Conversion: Successive Approximation 419
9.4 The ADC10 Successive-Approximation ADC 424
9.5 Basic Operation of the ADC10 429
9.6 More Advanced Operation of the ADC10 441
9.7 The ADC12 Successive-Approximation ADC 449
9.8 Analog-to-Digital Conversion: Sigma–Delta 455
9.9 The SD16_A Sigma–Delta ADC 463
9.10 Operation of SD16_A 476
9.11 Signal Conditioning and Operational Amplifiers 492
9.12 Digital-to-Analog Conversion 502
Chapter 10. Communication 510
10.1 Communication Peripherals in the MSP430 512
10.2 Serial Peripheral Interface 514
10.3 SPI with the USI 521
10.4 SPI with the USCI 530
10.5 A Thermometer Using SPI in Mode 3 with the F2013 as Master 537
10.6 A Thermometer Using SPI in Mode 0 with the FG4618 as Master 543
10.7 Inter-integrated Circuit Bus 551
10.8 A Simple I²C Master with the USCI_B0 on a FG4618 559
10.9 A Simple I²C Slave with the USI on a F2013 566
10.10 State Machines for I²C Communication 576
10.11 A Thermometer Using I²C with the F2013 as Master 584
10.12 Asynchronous Serial Communication 591
10.13 Asynchronous Communication with the USCI_A 598
10.14 A Software UART Using Timer_A 607
10.15 Other Types of Communication 616
Chapter 11. The Future: MSP430X 618
11.1 Architecture of the MSP430X 618
11.2 Instruction Set of the MSP430X 624
11.3 Where Next? 631
11.4 Conclusion 634
Appendix A: Kickstarting the MSP430 636
A.1 Introduction to EW430 636
A.2 Developing a Project in C 638
A.3 Debugging with the Simulator 644
A.4 Debugging with the Emulator 647
A.5 Developing a Project in Assembly Language 650
A.6 Tips for Using EW430 653
A.7 Tips for Specific Development Kits 657
Appendix B: Further Reading 662
Books and Articles 662
Newsletters, Magazines, and Journals 668
Index 672
Erscheint lt. Verlag | 21.8.2008 |
---|---|
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
Technik ► Elektrotechnik / Energietechnik | |
ISBN-10 | 0-08-055855-0 / 0080558550 |
ISBN-13 | 978-0-08-055855-4 / 9780080558554 |
Haben Sie eine Frage zum Produkt? |
Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich