USB open source stack test PCB

Hardware incubation. See also our in development projects wiki.

USB open source stack test PCB

Postby matseng » Sat Dec 22, 2012 1:10 pm

It would be nice to be able to have a board with a bunch of the most common USB-capable PIC microcontrollers on it to be able to easily test & debug the Open Source USB stack and bootloaders.

In essence it is a pcb with a single USB connector and a single ISCP and then jumpers to connect them to a particular chip on the board. A reset button and bootloader buttons with status leds might come in handy too. The clock frequency is selectable between 48MHz and 1.5MHz in 15 rather common frequencies.

I did schematics and a pcb design for this a while back, but I never decided what PIC's I should add to the board.

The board supports up to 8 target microcontrollers. I'm not sure if it would be worthwhile to have multiple versions of the same series like 18F24J50/18F25J50/18F26J50 where only the amount of memory differs. It might be good to have all of them on the board(s) to verify that the linker scripts is ok. This would require multiple boards since there are at least 3-4 memory variants of the different product groups.

OSUS.jpg
Top of the USB stack tester - the PICs is to be added to the bottom.


Can someone help me decide which PICs I should put on the boards for it to be useful as a testing tool?
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: USB open source stack test PCB

Postby matseng » Sat Dec 22, 2012 1:43 pm

A spreadsheet with a current list of all USB capable Microchip PIC's can be found here:

https://docs.google.com/spreadsheet/ccc ... HptSzR0SkE
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: USB open source stack test PCB

Postby Sjaak » Sat Dec 22, 2012 2:45 pm

I would personally prefer an uC per breakout board. In our svn there should be already breakout pcb for several uCs. IIRC most footprints are compatible with eachother within a family (ie on pic18f all 28pin like 24j50, 25j50, 26j50, 2550, 2650 share the same footprint).

Your idea is still interesting and of great value for the software developers ;)
User avatar
Sjaak
Fellow
Fellow
 
Posts: 3056
Joined: Sun Jan 03, 2010 2:45 pm
Location: Hiero

Re: USB open source stack test PCB

Postby matseng » Sat Dec 22, 2012 9:32 pm

Hm, yes. A base board with power, buttons, clock generation and usb stuff - and then a small plugin/breakout board with like 8 pins that plugs into the baseboard is probably a much better idea...

The breakout only needs the cpu and local decoupling. And a pullup for all unused pins to keep them stable and nice.
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: USB open source stack test PCB

Postby arakis » Mon Dec 24, 2012 4:30 am

Also USB capable PIC24s and PIC32s in any package are pin to pin compatible.. Well I'm sure about the 28 PDIP/SOIC/SSOP and 100pin TQFPs...

regarding the project, perhaps a ZIF type breakout would be in order...
best regards FIlip.
arakis
Crew
Crew
 
Posts: 1044
Joined: Wed May 25, 2011 11:15 am
Location: Belgrade, Serbia

Re: USB open source stack test PCB

Postby matseng » Mon Dec 24, 2012 5:20 am

So far I've identified 9 different pinouts (when chosen the "easiest" type of chip, i.e. soic rather than tssop or tqfp rather than qfn) for where the power, usb and iscp pins are located.

https://docs.google.com/spreadsheet/ccc ... 0SkE#gid=0

I'm not done yet so a few more variants are bound to pop up.

I did a quick version with a 5x5cm base board, where the daughter boards (with up to four different PICs on each daugherboard) plug in at the top, two iscp connectors (5 & 3.3 volt) at the right, usb and a connector for a Bus Pirate LCD adapter on the left sides. The three connections going to the LCD are also brought out to three LEDs if the LCD is not required for debugging.

OSUS-Master-top.png
The base board


OSUS-Star-top.png
And a "star" quad uC daughter board for the uC under test.
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: USB open source stack test PCB

Postby Sjaak » Mon Dec 24, 2012 10:09 am

Looks promising! for stabilty you need some mounting holes on the pic board I guess, but I like the star shape of the board :)

I'm also interested in the clock circuit you designed.
User avatar
Sjaak
Fellow
Fellow
 
Posts: 3056
Joined: Sun Jan 03, 2010 2:45 pm
Location: Hiero

Re: USB open source stack test PCB

Postby matseng » Mon Dec 24, 2012 12:01 pm

Sjaak wrote:I'm also interested in the clock circuit you designed.


Nothing really fancy there. Three crystal oscillators (48/32/20) and a binary counter. (I need to find out whether the INH pin on the oscillators need to go to gnd or vcc to enable them )

OSUS-Divider-schematic.png
User avatar
matseng
Hero Member
Hero Member
 
Posts: 876
Joined: Sat Oct 15, 2011 12:29 pm
Location: Kuala Lumpur, Malaysia

Re: USB open source stack test PCB

Postby sqkybeaver » Mon Dec 24, 2012 5:11 pm

how about including a buffer on the output of the oscillator selector and divider circuit?
User avatar
sqkybeaver
Hero Member
Hero Member
 
Posts: 1095
Joined: Tue Dec 07, 2010 8:50 am
Location: New Hampshire, USA


Return to Project development, ideas, and suggestions