Jump to content
43oh

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!

 

Link to post
Share on other sites
  • 4 weeks later...

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

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...