Jump to content
estratos

Serial1 on the MSP430FR2433

Recommended Posts

Is Serial1 (pins P2.5/UCA1RXD and P2.6/UCA1TXD) available on the MSP430FR2433 from Energia?

If yes, is Serial1 already pre-instantiated or do we need to create the object in the sketch from the HardwareSerial class?

Thanks!

 

Share this post


Link to post
Share on other sites

OK, I'm now seeing that SERIAL1_AVAILABLE is not defined in pins_energia.h for this MCU, probably to avoid conflicting with the SPI port.

 

 

Share this post


Link to post
Share on other sites

For anyone interested, adding the following piece of code in pins_energia.h enables Serial1:

static const uint8_t AUX_UARTRXD = 14;  /* Receive  Data (RXD) at P2.5 */
static const uint8_t AUX_UARTTXD = 15;  /* Transmit Data (TXD) at P2.6 */
#define AUX_UARTRXD_SET_MODE (PORT_SELECTION0 | INPUT)
#define AUX_UARTTXD_SET_MODE (PORT_SELECTION0 | OUTPUT)
#define AUX_UART_MODULE_OFFSET 0x20
#define SERIAL1_AVAILABLE 1

 

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

×