SlideShare a Scribd company logo
Write an MSP430g2553 C program to drive a continually scrolling message with the following
text: Esteban Montanez Use two seven segment LED segment devices to show the text (two
characters at a time) at a reasonable reading rate.
Solution
//to blink the red LED (LED1) on the TI Launchpad
//which is attached to P1.0
//The green LED(LED2) is connected to P1.6
#include
int main(void) {
volatile int i;
// stop watchdog timer
WDTCTL = WDTPW | WDTHOLD;
// set up bit 0 of P1 as output
P1DIR = 0x01;
// intialize bit 0 of P1 to 0
P1OUT = 0x00;
// loop forever
for (;;) {
// toggle bit 0 of P1
P1OUT ^= 0x01;
// delay for a while
for (i = 0; i < 0x6000; i++);
}
}

More Related Content

PDF
A) Which of the following element is seen in all organic molecules Si.pdf
PDF
Given an ArrayList, write a Java method that returns a new ArrayList.pdf
PDF
Which of the following is NOT a financial measurement needed to see .pdf
PDF
Which process uses chemiosmosis A. Pyruvate oxidation B. Electron .pdf
PDF
What motives do corporate executives have that force them to embrace.pdf
PDF
when are business cases or project charters overkillSolutionP.pdf
PDF
True or False The Congressional Budget Office projects that approxi.pdf
PDF
Using the space provided compose an ESSAY concerning the following qu.pdf
A) Which of the following element is seen in all organic molecules Si.pdf
Given an ArrayList, write a Java method that returns a new ArrayList.pdf
Which of the following is NOT a financial measurement needed to see .pdf
Which process uses chemiosmosis A. Pyruvate oxidation B. Electron .pdf
What motives do corporate executives have that force them to embrace.pdf
when are business cases or project charters overkillSolutionP.pdf
True or False The Congressional Budget Office projects that approxi.pdf
Using the space provided compose an ESSAY concerning the following qu.pdf

More from feelinggift (20)

PDF
We continually hear about interest groups in the news. Understanding.pdf
PDF
View transaction list Journal entry worksheet 6 9 The company receive.pdf
PDF
Physical security is a fundamental component of any secure infrastru.pdf
PDF
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
PDF
This is a homework assignment that I have for my Java coding class. .pdf
PDF
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
PDF
The first thermodynamic law for a system of charged molecules in elec.pdf
PDF
show all of your work to arrive a final result Simple Interest Simpl.pdf
PDF
Terms from which students can chooseMacrophages; •Only one.pdf
PDF
Simulate the Stakeholder deliverable for the development of an onlin.pdf
PDF
I want to write this program in java.Write a simple airline ticket.pdf
PDF
Research how voting is conducted for the following event. Descri.pdf
PDF
Prove the following Let a and b be any integers. If n is an odd int.pdf
PDF
Problem Implement a FIFO program in which a client sends the server.pdf
PDF
posals (P, Q and must be chosen. Proposals P and Q are mutually exclu.pdf
PDF
Module 03 Discussion - Dream or RealityThe narrative voice ... en.pdf
PDF
O C Dividends. O d. Stock splits 12 QUESTION 3 Treasury stock held by.pdf
PDF
If you dilute 15.0 mL of 1.75 M hydrochloric acid to 500. mL, what is.pdf
PDF
Android Studio Assignment HelpCan someone who is familiar with And.pdf
PDF
An unobservable system. Two identical subsystems have outputs that ad.pdf
We continually hear about interest groups in the news. Understanding.pdf
View transaction list Journal entry worksheet 6 9 The company receive.pdf
Physical security is a fundamental component of any secure infrastru.pdf
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
This is a homework assignment that I have for my Java coding class. .pdf
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
The first thermodynamic law for a system of charged molecules in elec.pdf
show all of your work to arrive a final result Simple Interest Simpl.pdf
Terms from which students can chooseMacrophages; •Only one.pdf
Simulate the Stakeholder deliverable for the development of an onlin.pdf
I want to write this program in java.Write a simple airline ticket.pdf
Research how voting is conducted for the following event. Descri.pdf
Prove the following Let a and b be any integers. If n is an odd int.pdf
Problem Implement a FIFO program in which a client sends the server.pdf
posals (P, Q and must be chosen. Proposals P and Q are mutually exclu.pdf
Module 03 Discussion - Dream or RealityThe narrative voice ... en.pdf
O C Dividends. O d. Stock splits 12 QUESTION 3 Treasury stock held by.pdf
If you dilute 15.0 mL of 1.75 M hydrochloric acid to 500. mL, what is.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdf
An unobservable system. Two identical subsystems have outputs that ad.pdf

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
master seminar digital applications in india
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Basic Mud Logging Guide for educational purpose
PDF
Sports Quiz easy sports quiz sports quiz
PDF
RMMM.pdf make it easy to upload and study
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Complications of Minimal Access Surgery at WLH
Lesson notes of climatology university.
PPH.pptx obstetrics and gynecology in nursing
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Microbial diseases, their pathogenesis and prophylaxis
GDM (1) (1).pptx small presentation for students
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
01-Introduction-to-Information-Management.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
master seminar digital applications in india
Pharma ospi slides which help in ospi learning
Renaissance Architecture: A Journey from Faith to Humanism
human mycosis Human fungal infections are called human mycosis..pptx
Basic Mud Logging Guide for educational purpose
Sports Quiz easy sports quiz sports quiz
RMMM.pdf make it easy to upload and study
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
TR - Agricultural Crops Production NC III.pdf
Complications of Minimal Access Surgery at WLH

Write an MSP430g2553 C program to drive a continually scrolling mess.pdf

  • 1. Write an MSP430g2553 C program to drive a continually scrolling message with the following text: Esteban Montanez Use two seven segment LED segment devices to show the text (two characters at a time) at a reasonable reading rate. Solution //to blink the red LED (LED1) on the TI Launchpad //which is attached to P1.0 //The green LED(LED2) is connected to P1.6 #include int main(void) { volatile int i; // stop watchdog timer WDTCTL = WDTPW | WDTHOLD; // set up bit 0 of P1 as output P1DIR = 0x01; // intialize bit 0 of P1 to 0 P1OUT = 0x00; // loop forever for (;;) { // toggle bit 0 of P1 P1OUT ^= 0x01; // delay for a while for (i = 0; i < 0x6000; i++); } }