Jump to content
  • 0

Trying to use Max32 extra uarts..


Mickyprog

Question

Hi everyone, i would like to use those two extra uart on the Max32 to get serial4 and serial5 (i need 6 uarts), i have tried that without success:

http://chipkit.net/forum/viewtopic.php?f=17&t=3139&p=13058&hilit=max32+serial+port#p13056

 

sample test code:

void setup() {
    // initialize both serial ports:
    Serial.begin(9600);
    Serial1.begin(9600);
    Serial2.begin(9600);
    Serial3.begin(9600);
    Serial4.begin(9600); //*************get error at compile 

}

void loop() {
   delay(1000);
   Serial.println("data from uart0");
   Serial1.println("data from uart1");
   Serial2.println("data from uart2");
   Serial3.println("data from uart3");

   Serial4.println("data from uart4");
}

Any solution??, Thank you..

 

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Hi Mickyprog,

What is the error you are getting? I tried the method described by majenko in both MPIDE and the Arduino IDE 1.6.9 with the chipKIT core and was successful in both cases in terms of compilation. Naturally though, you will not be able to view all of these printed statements on your computer screen through the serial monitor as only Serial is connected through the USB cable.

Let me know if you have any more questions.

Thanks,
JColvin

Link to comment
Share on other sites

Hello Mickyprog,

 

 

chipkit max32 has 4 UART ports, Serial, Serial1, Serial2, and Serial3.
no more. Serial4 would be the fifth AFAIK...

cheers

Max32 manual=
Peripheral I/O Functions
The PIC32 microcontroller on the Max32 board
provides a number of peripheral functions. The
following peripherals are provided:
UART port 0: Asynchronous serial port. Pin 0
(RX0), Pin 1 (TX0). These pins are connected
to I/O connector J14 and are also connected to
the FT232R USB serial converter. It is possible
to use these pins to connect to an external
serial device when not using the USB serial
interface. This uses UART1A (U1ARX,
U1ATX) in the PIC32 microcontroller.
UART port 1: Asynchronous serial port. Pin 19
(RX1), Pin 18 (TX1). This uses UART1B
(U1BRX, U1BTX) in the PIC32 microcontroller

UART port 2: Asynchronous serial port. Pin 17
(RX2), Pin 16 (TX2). This uses UART3A
(U3ARX, U3ATX) in the PIC32 microcontroller.
UART port 3: Asynchronous serial port. Pin 15
(RX3, Pin 14 (TX3). This uses UART3B
(U3BRX, U3BTx) in the PIC32 microcontroller.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...