MSP430 Microcontroller Lab Manual 9783031266423, 9783031266430

154 66 5MB

English Pages 219 Year 2023

Report DMCA / Copyright

DOWNLOAD FILE

MSP430 Microcontroller Lab Manual
 9783031266423, 9783031266430

Table of contents :
978-3-031-26643-0
1
Preface
Background
Approach and Organization
Synopsis of Labs
Synopsis of Helpful Reference Documents
Acknowledgments
Contents
978-3-031-26643-0_1
1 Lab 1: MSP–EXP430G2ET LaunchPad and Energia
1.1 Purpose
1.2 Energia IDE
1.3 Getting Started
1.4 Further Exploration
1.5 Post Lab Activities
978-3-031-26643-0_2
2 Lab 2: Introduction to TI Code Composer IDE
2.1 Purpose
2.2 Getting Started Guide
2.3 Prelab
2.3.1 Task A
2.3.2 Task B
2.4 Empty Project (with main.c)
2.5 Task C
2.6 Post Lab Activities
978-3-031-26643-0_3
3 Lab 3: Introduction to the GP Digital I/O Pins
3.1 Purpose
3.2 Discussion
3.3 Reading a Logic High Voltage at P1.4
3.4 Reading a Logic Low Voltage at P1.4
3.5 Switch Bounce
3.6 PreLab
3.6.1 Task A
3.6.2 Task B
3.6.3 Task C
3.7 Post Lab Activities
978-3-031-26643-0_4
4 Lab 4: Exploring the MSP430G2553 Basic Clock Module
4.1 Purpose
4.2 Discussion
4.3 PreLab
4.3.1 Task A
4.4 Task B
4.5 Task C
4.6 Task D
4.7 Post Lab Activities
978-3-031-26643-0_5
5 Lab 5: Interfacing a 16x2 LCD to the MSP430G2553
5.1 Purpose
5.2 Discussion
5.3 Prelab
5.3.1 Task A
5.4 Task B
5.5 Post Lab Activities
978-3-031-26643-0_6
6 Lab 6: MSP430G2553 ADC Module
6.1 Purpose
6.2 Discussion
6.3 Part 1: ADC Demonstration with LED (C Code)
6.4 Part 2: Demonstration with LCD Display (Assembly Code)
6.5 Post Lab Activities
978-3-031-26643-0_7
7 Lab 7: Timer_A Module of the MSP430G2553 (Introduction to Interrupts)
7.1 Purpose
7.2 Discussion
7.3 Capture/Compare Registers of Timer_0 and Timer_1
7.4 Up Mode
7.4.1 TIMER_UPMODE Code Listing
7.5 Continuous Mode
7.5.1 TIMER_CAPTURE Code Listing
7.6 Up/Down Mode
7.7 Interrupts
7.8 Post Lab Activities
978-3-031-26643-0_8
8 Lab 8: MSP430G2553 Timer_A Module (Pulse Width Modulation)
8.1 Purpose
8.2 Discussion
8.3 PWM_OSCOPE Code Listing
8.4 PWM_LED Code Listing
8.5 Post Lab Activities
978-3-031-26643-0_9
9 Lab 9: MSP430G2553 UART Serial Communication
9.1 Purpose
9.2 Discussion
9.3 Setting up the UART Demonstration
9.4 Post Lab Activities
978-3-031-26643-0_10
10 Lab 10: MSP430G2553 Applications
10.1 Introduction
10.2 Project 1: External Clock Sources
10.2.1 32.768 KHz Crystal Oscillator
10.2.2 Clock Oscillator
10.3 Project 2: 12 Button Keypad Matrix
10.3.1 How the Keypad Matrix Works
10.3.2 Sample Code: Reading a Positive Voltage at P1.4 (Switch Pushed)
10.3.3 Sample Code: Reading When the Switch Has Been Released (a ``0'') at P1.4
10.3.4 Digital Lock
10.4 Project 3: Reading the Contents of a Register
10.5 Project 4: Reading an LM34 Temperature Sensor
10.6 Post Lab Activities
1 (1)
Appendix A Introduction to Digilent Analog Discovery 2
A.1 Purpose
A.2 Introduction
A.3 Overview
A.4 Setting up the Wave Generator Function
A.5 Setting up the Oscilloscope Function
A.6 Setting up the Logic Analyzer Function
A.7 Saving Images of the Screen
Appendix B Distance Learning Lab Kit
Appendix C MSP430G2553 Header File
Appendix D Debug in Code Composer
Appendix E Controlling a 16times2 LCD Display
E.1 Introduction
E.2 Interfacing the MSP430G2553 and the NHD–0216K1Z
E.3 Sending Instructions to the LCD Display
E.4 Configuring the LCD Display
E.4.1 Commands and Examples
Appendix F LCD Display Using C with the MSP430G2553
F.1 Overview
F.2 Hardware Connections
F.3 LCD Display C Code
Appendix G How to Add Files into Code Composer
Appendix H Tidbits–Useful Miscellaneous Information
H.1 Introduction
Appendix I Operators in C
I.1 General Operations
I.2 Arithmetic Operations
I.3 Logical Operations
I.4 Bit Manipulation Operations
I.5 Unary Operations
Appendix J UML Activity Diagram
J.1 References

Polecaj historie