• AVR Freaks

Helpful ReplyHot!Using USB on Explorer 16/32 & dsPIC33EP

Author
mpgmike
Super Member
  • Total Posts : 252
  • Reward points : 0
  • Joined: 2014/01/23 17:27:06
  • Location: NJ
  • Status: offline
2019/08/19 08:47:31 (permalink)
0

Using USB on Explorer 16/32 & dsPIC33EP

Specs:
- Explorer 16/32
- dsPIC33EP512MU810 PIM
- MPLABX v5.25
- XC16 v1.40
- Windows 10 (64-bit)
 
Explorer Board Specs:
- J33 Open
- J25 Open
- J26 Open
- J22 Open
- J28_9 2-3 (Device)
- J1:5 2-3 (USB on PIM)
 
The ICSP USB jack is J18 on the board.
I'm trying to use J40 (the other USB-B Micro) to develop a USB app.  What enumerates is "Microchip Technology Inc. MCP2221 USB-I2C/UART Combo".  I'm not getting any communications between the PC and the dsPIC33 PIM.  I wanted to first check my hardware before delving into potential software issues.  I've successfully worked with the PIC18FxxK50 series on my own boards (and the Low Pin Count USB Dev Board) and am trying to get a grasp on using USB with the 16-bit varieties.  Can anybody offer any assistance?

I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
#1
davekw7x
Entropy++
  • Total Posts : 1810
  • Reward points : 0
  • Joined: 2012/01/16 12:01:07
  • Location: Second star on the right, straight on till morning
  • Status: offline
Re: Using USB on Explorer 16/32 & dsPIC33EP 2019/08/20 00:25:29 (permalink) ☄ Helpfulby mpgmike 2019/08/20 06:12:46
5 (1)
mpgmike
I'm trying to use J40 (the other USB-B Micro) to develop a USB app.

Well...
The MCP2221A on the 16/32 board, connected to J40, is used as a CDC device USB-to-Serial converter.
With jumpers installed on J37 and J38 of the development board, you assign pin RF4 to a UART Rx and RF5 to a UART Tx in your 'MU810 application to get I/O through J40.  (Run minicom or ptty, or whatever, on your PC with a connection to the com port that shows up when you plug a USB cable into J40 of the 16/32 board.)  There is no way to get USB connectivity from J40 on the 16/32 board to the 'MU810 on the PIM

On the other hand...
The mini-USB connector on the 'MU810 PIM is what I used for USB device applications.  You set the jumpers on the PIM for "USB" operation to keep all of the USB stuff from the USB connector on the PIM off of the 16/32 board.  Then develop your USB application for the 'MU810

Have not done any USB Host or OTG applications for this device and PIM and development board.  I presume these could use the "USB-C" interface on the development board with USB connections to the USB-A (J32) or the USB-C (J24) connectors on the 16/32 board.

Regards,

Dave


post edited by davekw7x - 2019/08/20 00:49:13

Sometimes I just can't help myself...
#2
mpgmike
Super Member
  • Total Posts : 252
  • Reward points : 0
  • Joined: 2014/01/23 17:27:06
  • Location: NJ
  • Status: offline
Re: Using USB on Explorer 16/32 & dsPIC33EP 2019/08/20 06:15:18 (permalink)
0
Thank you ever so kindly.  I'll have to track connections to see if I can get the USB-C jack connected to the PIM.

I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
#3
Jerry Messina
Super Member
  • Total Posts : 417
  • Reward points : 0
  • Joined: 2003/11/07 12:35:12
  • Status: offline
Re: Using USB on Explorer 16/32 & dsPIC33EP 2019/08/20 06:29:16 (permalink)
0
The connections are available on the explorer PIM socket (pins 89 and 90), but they're not connected to anything on the MU810 PIM.
#4
davekw7x
Entropy++
  • Total Posts : 1810
  • Reward points : 0
  • Joined: 2012/01/16 12:01:07
  • Location: Second star on the right, straight on till morning
  • Status: offline
Re: Using USB on Explorer 16/32 & dsPIC33EP 2019/08/20 07:25:17 (permalink)
0
Jerry Messina
... not connected...



Haven't used them, but, according to the PIM Information Sheet, DS51886B, USB connections do go through.
 
 
Regards,

Dave

Attached Image(s)


Sometimes I just can't help myself...
#5
Jerry Messina
Super Member
  • Total Posts : 417
  • Reward points : 0
  • Joined: 2003/11/07 12:35:12
  • Status: offline
Re: Using USB on Explorer 16/32 & dsPIC33EP 2019/08/20 08:13:38 (permalink)
0
Oops, you're right.
 
I was looking in the wrong part of the table!
 
 
#6
mpgmike
Super Member
  • Total Posts : 252
  • Reward points : 0
  • Joined: 2014/01/23 17:27:06
  • Location: NJ
  • Status: offline
Re: Using USB on Explorer 16/32 & dsPIC33EP 2019/08/20 11:41:52 (permalink)
4 (1)
I discovered the jumpers connect dsPIC33 PIM D+/D- to Explorer pins 89/90.  These then connect to the USB-C connector's appropriate pins (I checked with an ohm meter earlier today).  Now to get back to getting it to enumerate.  Thanks again all.

I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
#7
Jump to:
© 2019 APG vNext Commercial Version 4.5