chipKIT® Development Platform

Inspired by Arduino™

ChipKit Max32 USB

Created Tue, 22 Apr 2014 23:19:20 +0000 by Digital2014


Tue, 22 Apr 2014 23:19:20 +0000


My first post here.

I do not have the chipKIT Network Shield and I'm using pins 26 (USBD-) and 27 (USBD +) and the Max32 is not connecting to PC USB. Windows / USBView not recognize / drivers were installed. What example should I use first? (All tested and does not work) -chipKITUSBDevice -chipKITUSBHIDHost -chipKITUSBHost -chipKITUSBMSDHost

I will read the input pins of PIC32. Which should I use? Host, Device or OTG. USB cable has 4 wires, where do I connect USBID (Max32 Pin 25)? Need to connect? USBOC(Max32 Pin 2) must be H or L?

[color=#FF0000]Problem terminated, bought Microchip PIC32 USB Starter Kit II

I have the impression that this forum was abandoned by users and owners.[/color]


Mon, 28 Apr 2014 19:23:12 +0000

I understand you have resolved your issue by buying a new board, but this forum is still very much alive and this may be useful for someone else in the future.

The USBID pin is used for when the Max32 is being operated in OTG mode. Pin 25 on the Max32 is the ID pin for the microcontroller. This pin can either be floating or grounded, depending on the connector. There is not typically a wire in the USB cable for the ID pin.

Also, the USBOC pin is specific to the Network Shield, and is not on the Max32. This signal is an over-current detection line for the power distribution switch that is on the Network Shield.

If you are trying to connect the Max32 to your PC, you are most likely trying to implement it as a device, and should try the chipKITUSBDevice example. Host mode is for when you are using the chipKIT to control a device (like a thumb drive). A good way to test your microcontroller's USB functionality would be to run the chipKITUSBMSDHost example to have the chipKIT board write a test file to a thumb drive.

Jacob Christ

Sun, 04 May 2014 17:33:48 +0000

I agree with Ian, the form is not abandoned and I would say we are just getting started. It took Arduino 5+ years to catch on and chipKIT is only a few years old.

I saw this post a couple of days ago and haven't had time to respond until now. I've been working with USB on PIC18's and 32's now for close to four years. The first thing to note is that there are lots of options and some complexity. So to better answer your question about where to start I would ask what is your goal?

I am working on this page that summarizes a lot of the USB communications that we are working on here:

The Quick240 is based on a Max32 and some features of the Network Shield, so anything that works on a Quick240 should work on a Max32.