Shridhar Shanbhag
Shridhar Shanbhag

Reputation: 11

Serial communication in MSP430

I am using MSP430G2553. If I write the following code in energia-0101E0014 doesn't gives any error but in serial monitor data doesn't print but LED blinks perfectly. I know COM port settings and Baud Rate settings and they are correct.

#define LED RED_LED

void setup()
{
    Serial.begin(4800);
    pinMode(LED, OUTPUT);
}

void loop()
{
    Serial.print("Hello world\n");

    digitalWrite(LED, HIGH);
    delay(1000);
    digitalWrite(LED, LOW);
    delay(1000);
}

Upvotes: 1

Views: 1342

Answers (1)

PARAMESH T S
PARAMESH T S

Reputation: 1

Just change Serial to Serial1 . Then run your code

Upvotes: 0

Related Questions