chipKIT® Development Platform

Inspired by Arduino™

Hardware Serial

Created Tue, 24 May 2011 09:24:36 +0000 by ryanobjc


ryanobjc

Tue, 24 May 2011 09:24:36 +0000

Hi all,

According to the data sheet, the PIC32 has 2 uarts on board... one is obviously connected to the FTDI, but where might the other one be connected to?

Also, the mpide doesn't compile MultiSerialMega, since 'Serial1' is not a recognized symbol... Does the current language support both uarts? Are they connected to any pins?

My eyes arent really good enough to follow those traces :-)


Mark

Wed, 25 May 2011 02:19:46 +0000

The MAX32 actually has 6 serial ports but only 4 are implemented

You are correct the chip on the UNO32 board does have 2 serial ports. At the moment only the normal one is supported. I do intend to support the 2nd one if the pins are brought out. This was not on our priority list so its not done yet.

I tried the MultiSerialMega example and it compiles fine for the MAX32 and does not for the UNO32 which is what I expect.

Mark


ryanobjc

Wed, 25 May 2011 03:49:19 +0000

The MAX32 actually has 6 serial ports but only 4 are implemented You are correct the chip on the UNO32 board does have 2 serial ports. At the moment only the normal one is supported. I do intend to support the 2nd one if the pins are brought out. This was not on our priority list so its not done yet. I tried the MultiSerialMega example and it compiles fine for the MAX32 and does not for the UNO32 which is what I expect. Mark

so what would it take physically to make the second serial port work? Is the out pins just not mapped at all? So without a different board design (i have the uno32 board) not going to happen?

Obviously the compiler/lib would have to support it, but just wondering if it's possible that the second port might become available ever?


Scott

Thu, 26 May 2011 16:44:50 +0000

The hardware pin out for the uart2 traces out to pin 39 for U2Rx and pin 40 for U2Tx. So at this point the hardware is ready to run uart2 its just the software that needs an update. -scott


Mark

Thu, 26 May 2011 22:12:35 +0000

I have the 2nd serial port documented for the uno

http://www.avr-developers.com/chipkit/


ryanobjc

Sat, 28 May 2011 23:48:50 +0000

That's great, fantastic, thank you!

I look forward to a new apide build that has the Serial1 for the pic32/uno


robotguy

Fri, 17 Jun 2011 08:30:34 +0000

The MAX32 actually has 6 serial ports but only 4 are implemented

Are the pins to the 5th and 6th serial ports pinned out and available? Will they be implemented at some point in the future?

8-Dale


Mark

Fri, 17 Jun 2011 15:46:46 +0000

Dale

The current release of the libraries do not have anything other than the 4 ports. I do have the 2nd port done for the uno32.

I will add the extra 2 ports for the mega and have it in the next release. If you need it sooner than that, let me know and I will send you the update.

Mark


jumpin_jack

Fri, 17 Jun 2011 17:18:56 +0000

Does anyone know if the software uart library listed on >this page< works on the max32 board? The release notes say that it supports 16 simulated uarts.


Jacob Christ

Fri, 17 Jun 2011 17:20:41 +0000

The real question is not if you will be able to use the 5th or 6th serial port, but what are you doing that you will need 6 serial ports?

Jacob


robotguy

Fri, 17 Jun 2011 18:55:30 +0000

I will add the extra 2 ports for the mega and have it in the next release. If you need it sooner than that, let me know and I will send you the update.

Good to know! I haven't got my Max32 yet, so I can wait. Thanks!

8-Dale


promptcritical

Sat, 18 Jun 2011 18:39:09 +0000

He's probably talking to independent devices which need serial ports, like a USB-HID to UART, a Ethernet to UART, a 4d Systems TFT LCD, a compass or gyro which talk to serial.