MSP430 Microcontroller Basics

MSP430 Microcontroller Basics

Language: English

Pages: 668

ISBN: 0750682760

Format: PDF / Kindle (mobi) / ePub


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!

Contents: 1.Embedded Electronic Systems and Microcontrollers; 2. The Texas Instruments MSP430; 3. Development; 4. A Simple Tour of the MSP430; 5. Architecture of the MSP430 Processor; 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.

*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

 

 

 

 

 

 

 

 

 

 

 

demands for high performance and low power mean that most modern microcontrollers have much more complicated clocks, often with two or more sources. In many applications the MCU spends most of its time in a low-power mode until some event occurs, when it must wake up and handle the event rapidly. It is often necessary to keep track of real time, either so that the MCU can wake periodically (every second or minute, for instance) or to time-stamp external events. Therefore, two clocks with quite

butasm1 . s43 - press button to light LED ; Single loop with decision ; Olimex 1121 STK , LED1 active low on P2 .3 , B1 active low on P2 .1 ; J H Davies , 2006 -06 -01; IAR Kickstart version 3.41 A ; ----------------------------------------------------------------------# include < msp430x11x1 .h > ; Header file for this device ; Pins for LED and button on port 2 LED1 EQU BIT3 B1 EQU BIT1 RSEG CODE ; Program goes in code memory Reset : ; Execution starts here mov .w # WDTPW | WDTHOLD ,& WDTCTL ;

infinite loop ; ----------------------------------------------------------------------RSEG RESET ; Segment for reset vector DW Reset ; Address to start execution END 4.4.6 Digital Die A good exercise is to design a digital die (singular of dice to be pedantic). Ideally this should display a random number from 1 to 6 on a display when the button is pressed (or released). Unfortunately this needs more than two LEDs so the Olimex 1121STK is not ideal. Suppose that we have a board with six LEDs

comprehensive program would include a lookup table to give the codes for the letters of the alphabet and so on, but we simply take the dashes and dots as input. A pause is needed between dots and dashes and a longer gap between letters. A crude way of doing this is to put a long list of instructions in the main program to light the LED, delay for a dot or dash, turn the LED off, delay to give a gap, and so on for all the characters. It is more elegant to store the pattern to be transmitted in an

explicitly because the instruction set contains a set of decisions, such as “jump if greater or equal,” which make the appropriate tests. See Maxfield and Brown [37] in “Further Reading” for more background. Enable Interrupts Setting the general interrupt enable or GIE bit enables maskable interrupts, provided that the individual sources of interrupts have themselves been enabled. Clearing the bit disables all maskable interrupts. There are also nonmaskable interrupts, which cannot be disabled

Download sample

Download