estratos 5 Posted May 23, 2018 Share Posted May 23, 2018 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! Quote Link to post Share on other sites
estratos 5 Posted May 23, 2018 Author Share Posted May 23, 2018 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. Quote Link to post Share on other sites
estratos 5 Posted June 18, 2018 Author Share Posted June 18, 2018 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 Fmilburn 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.