chipKIT® Development Platform

Inspired by Arduino™

Uno32, Serial port questions

Created Tue, 11 Sep 2012 20:02:14 +0000 by qu1ncy


qu1ncy

Tue, 11 Sep 2012 20:02:14 +0000

Hey,

I know I might sound abit noob, but its really appreciated if someone can answer the following 2 questions.

  1. I'm currently trying to run both a parallel 16x2 LCD and USB serial port communication at the same time. But I quickly realized i couldn't, so in order to have both working i simply turned the serial port communication off and use the LCD then turn serial back on after I'm finished with the LCD. (aka switch between the 2) [color=#FF0000]Thus i'm wondering in detail why I can't run both at the same time and if there's any other ways of doing this. [/color]

(i thought of using a I2C LCD but i wasn't too sure, opinions please =] ) PS. links would be appreciated =]

  1. When I use the function/command Serial.end(); It prints out rubbish, Example of this shown in the attachment. [color=#FF0000]Thus, i'm wondering in detail why it does that.[/color]

Thank you in advance, and sorry for my horrible grammar and English.


dangeljs

Tue, 11 Sep 2012 20:57:55 +0000

I can't help you with the rubbish, but as for the multiple serial connections there are two serial ports on the Uno32. It is on pins 39 and 40, see here:

http://chipkit.org/wiki/index.php?title=ChipKIT_Uno32#Using_the_second_serial_port

You just initialize it as "Serial1.Begin(DataRata);" and it will work just like the serial connected to the USB.


majenko

Tue, 11 Sep 2012 22:41:12 +0000

How are you connecting the LCD up? Which pins are you using?


qu1ncy

Wed, 12 Sep 2012 02:50:51 +0000

Thanks for the quick replies, I think i know why its returning rubbish and thanks for the idea of the second serial port tip =]

I'll tell you guys the result once I finish coding it and testing it