chipKIT® Development Platform

Inspired by Arduino™

MAX32-USB for Serial Question

Created Tue, 10 Jul 2012 23:56:32 +0000 by house91320


house91320

Tue, 10 Jul 2012 23:56:32 +0000

Can you use the serial window for sending and receiving information, when using the on chip usb controller?


nik999389

Wed, 11 Jul 2012 18:31:59 +0000

Are you asking if you can create have serial communication (comm port) to the Uno32 through USB?

If thats the case then yes, you can. It was made for that... The FTDI chip can emulate a serial connection through USB. All you have to do is open the serial monitor in the Chipkit MPIDE, at the point the program will restart (so you may have to give it a few seconds) and then it will start sending information, if you told it to that is.

The way to use the serial through the Uno32 is to use these commands:

Serial.begin(9600); //This tells the Uno to start a serial at a 9600 baud rate
Serial.print("Hello, World!"); //This prints the string in the quotes of the function.

These are basic commands of the Serial Library, you can learn more about the Arduino Serial library here:

[url]http://arduino.cc/en/Reference/Serial[/url]

It works exactly the same way as the Uno32 Serial library, there might be some bugs during porting that the developers haven't gotten to yet. But, overall I think you should be fine.

To send information to the Uno32 using the serial monitor all you have to do is type it in and hit send, the Uno32 will then use that information to do whatever you told it to.


house91320

Thu, 12 Jul 2012 04:29:20 +0000

Ya, I know it works with the ftdi chip, but what about if your using the built in usb controller on the pic 32.


nik999389

Thu, 12 Jul 2012 14:52:35 +0000

Ok, sorry for misinterpreting your question.

I have not done any work with the USB controller of the uno32. Although there is an instructable where that is similar to what you are trying to do. It's done with done using Teensy++ which is an Atmel AT90USB1286. This microcontroller also has a usb. Here is the Link:

[url]http://www.instructables.com/id/Music-Playing-Alarm-Clock/[/url]

Or have you already gotten it to work? If so, and your asking about the serial monitor, I don't think so. The serial monitor is only for the one connected to the arduino through USB, so the one that actually goes through the FTDI chip. You would have to get some other sort of serial monitory like puTTy or something, and then you would have to make the USB a comm port, which you will probably have to make a driver for.

This all just seems like too much, If you want to actually create a USB interface then it'd be better to learn SCSI commands and how the Universal Serial Bus sends packets and data. You can learn some about it here:

[url]http://en.wikipedia.org/wiki/SCSI[/url]

Also, What exactly are you trying to make? And also, please try to be a little bit more specific with your posts. It's hard for someone like me that's trying to help you to actually pin-point what you need. Try to describe to us what your doing what you want to accomplish and what you have tried. That way we can help you out a little better. ;)


Jacob Christ

Fri, 13 Jul 2012 05:13:29 +0000

The Uno32 Does not have a USB module. The Max32 does, but you either need to breakout the USB connectors or use a Network Shield (with a micro B connector). Then when you select the board choose Max32 - usb for serial.

You might take a look at this post:

http://www.chipkit.org/forum/viewtopic.php?f=15&t=627

Jacob