Jump to content
dsukant

Using 2 UARTS module at same time on msp432

Recommended Posts

How can i use 2 UARTS module on msp432 at same time in energia ?

If anyone know, please share some example code or some resource link.

Share this post


Link to post
Share on other sites

I think the second serial device is just called Serial1 instead of Serial. It is used the same way.

Share this post


Link to post
Share on other sites
4 hours ago, mgh said:

I think the second serial device is just called Serial1 instead of Serial. It is used the same way. 

That approach has worked for my msp430F5529 projects.

Share this post


Link to post
Share on other sites

yes, this approach has worked with my MSP432 Launchpad as well.

So example code running at 38400 baud for each would be:
   Serial.begin(38400); Serial.println("Serial UART");
   Serial1.begin(38400); Serial1.println("Serial1 UART");

On the MSP432 Launchpad:

   Serial RX/TX can be connected using the pins connected to the RXD<<, TXD>> jumpers (with the jumpers removed).
   Serial1 RX/TX can be connected using Pin3 (P3.2), Pin 4 (P3.3) per the pin map that comes with the MSP432.
 

jrd

 

 

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

×