Jump to content
Maceraperest

Serial Communication Between Two Tiva™ C Series

Recommended Posts

Do you just want serial ports, or to use something fancier like SSI?

 

For serial ports, wiring should be basically Rx to Tx and Tx to Rx.

 

If you are coming from the Arduino world, you might want to try Energia for doing the software.

Share this post


Link to post
Share on other sites
where is the problem

 

const int ledPin =  GREEN_LED;

void setup()


  Serial.begin(9600);  

  pinMode(ledPin, OUTPUT); 

}

 

void loop()

{

  int inByte = Serial.read();

  if (inByte == 5) {

     digitalWrite(ledPin, HIGH); 

}

else {  

    digitalWrite(ledPin, LOW);

  

  }

}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×