Rei Vilo 695 Posted October 19, 2013 Share Posted October 19, 2013 UART(1) is active on PC_4 / PC_5 but not on PB_0 / PB_1. The Stellaris® LM4F120H5QR Microcontroller Datasheet (lm4f120h5qr) mentions those pins, for example on tables 21-5 and 21-6, consistent with the pins map I've released. But why the pins aren't defined on HardwareSerial.cpp? //***************************************************************************** // // The list of UART GPIO configurations. // //***************************************************************************** static const unsigned long g_ulUARTConfig[8][2] = { {GPIO_PA0_U0RX, GPIO_PA1_U0TX}, {GPIO_PC4_U1RX, GPIO_PC5_U1TX}, {GPIO_PD6_U2RX, GPIO_PD7_U2TX}, {GPIO_PC6_U3RX, GPIO_PC7_U3TX}, {GPIO_PC4_U4RX, GPIO_PC5_U4TX}, {GPIO_PE4_U5RX, GPIO_PE5_U5TX}, {GPIO_PD4_U6RX, GPIO_PD5_U6TX}, {GPIO_PE0_U7RX, GPIO_PE1_U7TX} }; Is there a reason? How to use Serial1 on PB_0 / PB_1? I need then to the library for the 4D Systems screen. This is a cross-post with the 43oh forum. Quote Link to post Share on other sites
monpetit 0 Posted October 20, 2013 Share Posted October 20, 2013 I don't know the reason. But you can use Serial1 on PORTB with setting pins like this, void setup() { Serial1.setPins(UART1_PORTB); Serial1.begin(115200); } Quote Link to post Share on other sites
L.R.A 78 Posted October 20, 2013 Share Posted October 20, 2013 How is serial1 diferent from normal serial? Quote Link to post Share on other sites
Rei Vilo 695 Posted October 27, 2013 Author Share Posted October 27, 2013 Serial is for the USB port. See my pins map 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.