Shop OBEX P1 Docs P2 Docs Learn Events
P2D2 - An open hardware reference design for the P2 CPU — Parallax Forums

P2D2 - An open hardware reference design for the P2 CPU

Peter JakackiPeter Jakacki Posts: 10,193
edited 2018-06-21 13:09 in Propeller 2
In the course of documenting the P2 chip I wanted to include some basic schematics but in the process ended up designing a P2 board suitable for P2 development testing and also designing in as a component, hence P2D2, even if it does sound droid.

Why the new thread?
BUT P2D2 is not meant to be a hat or compatible with any other boards, it's main aim is to firstly allow access to all the P2 I/O pins and to have sufficient on-board resources to enable it to run off any USB serial cable. Secondly, it would be compact and versatile enough to mount on a matrix or pcb board as a component for prototypes and low-volume designs. So as to keep all the information and questions about P2D2 from being buried under too many uncontrolled suggestions with their own agenda, I thought I'd start a new thread. Parallax forum etiquette is stacks better than most forums, let's keep it that way.

Here are the screenshots of the schematics and pcb layers for reference. This top post will be updated with the current versions and links although the P2D2 document should always be up to date. Look in the dropbox folder for the pcb files which I will try to make available in different formats but if you have successfully imported into your pcb tool and can then export it into other formats then please post those files so that everyone can make use of them.

It is intended that prototypes will be produced before P2 is available so that the circuit can be verified and tested in conjunction with an FPGA board connected to the I/O and reset. Dummy loads will be switched in to test the 3.3 and 1.8V supplies as well. Once P2 chips are available they could be dropped onto a preassembled and tested board.

P2D2 FOLDER
P2D2 DOCUMENT

Updated 180621
P2D2-CV-180621.png
1201 x 880 - 142K
1193 x 863 - 77K
1177 x 870 - 57K
1275 x 841 - 62K
«13456738

Comments

  • RESERVED
  • Cluso99Cluso99 Posts: 18,069
    Peter,
    Shouldn't there be a pulldown between base emitter on the reset transistor?
    BTW I often use a transistor with internal series and pulldown resistors.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2018-06-17 09:17
    Cluso99 wrote: »
    Peter,
    Shouldn't there be a pulldown between base emitter on the reset transistor?
    BTW I often use a transistor with internal series and pulldown resistors.

    Although this is a digital transistor (DDTD) with internal series and pull-down/bias/cutoff resistors you will find that in the early days of germanium transistors especially with their high leakage that this was really really necessary. These days silicon NPN though tends to be low leakage and you need Vbe ~ 0.6V to turn it on anyway.


    btw - as a side note, the "cutoff" resistor tends to be used as a voltage divider so that the transistor doesn't even see Vbe(min) until the desired switching voltage is reached. If you don't care and are happy for any voltage >0.6V or so to turn it on then you don't actually need a cutoff, especially if it is also driven low. I'll run LTSpice just to see what it says anyway.

    Here it is, just as I said (Sine wave into 2N2222 NPN with 1k series, no cutoff, and 10k load)
    NPN.png
    307 x 365 - 13K
  • Cluso99Cluso99 Posts: 18,069
    edited 2018-06-17 12:09
    It's the RC time constant to keep the transistor on. IIRC, it's triggered from the DTR going inactive edge.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2018-06-17 13:18
    True, but a rapid discharge cycle is only required for repeatability if we get another dtr pulse within milliseconds, but even then we still get a reset pulse. I'm from the school that says "does it really need it", not to take it out, but to understand where and when it really matters and why. I will have to check my DDTD version as it might be one with a 470R series resistor and no cutoff/divider, but I know it works :)

    btw, I only use 10nF rather than 100nF, so the shorter time constant is more forgiving of a longer discharge cycle. Here are the curves for my circuit showing that even another reset pulse 1ms will still produce a reset, although in regards to the Prop boot timeouts, that wouldn't make any difference even if it did miss it. Certainly though, the second set of curves look better with a 10k pulldown. Over a more realistic time period >30ms however, the curves look the same.
    1882 x 843 - 39K
    1885 x 831 - 38K
  • This will be a great board for a P2 Peter.

    Only thing I noticed was that the capacitor location near pins 48/47 currently looks pretty tight. Depending on how far the P2 pins protrude it just might be very easy to short this cap's ground to pin 47 when you get your iron tip in if your board is hand soldered due to the 0.5mm pitch of the P2 (I think it is 0.5mm right?). The other one near pins 15/16 doesn't look quite as cramped. A simple remedy may be to just shrink down the pin number silk in size a fraction in order to push the cap further away or even just overlap the silk a tad.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2018-06-18 08:49
    Thanks Roger, I had rotated these so that I could place the smd pinout labels across the top so there isn't a lot of room but I did move it up another 5mil just for luck. There's still a few footprints I want to fit in, mainly with the oscillator. It seems that Mouser has over 14,000 of the DSC6003 2520 12MHz 25ppm XOs in stock at around 72cents in 100's. If we use 12MHz for the XO then this can match a 12MHz crystal which is in the permissible range of 10..20MHz and may help to standardize a common frequency.

    I'm thinking of trying out that JCL PCB place next week for some early protos and I will make sure I send you guys some boards.
  • The Serial and MicroSD connectors are very close, will this be all right for both? Also will the P2 interfere with inserting and removing the MicroSD cards? Genuine questions, not criticisms.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2018-06-18 12:10
    TonyB_ wrote: »
    The Serial and MicroSD connectors are very close, will this be all right for both? Also will the P2 interfere with inserting and removing the MicroSD cards? Genuine questions, not criticisms.

    No problems and I really do welcome critique :) Anybody with their own agenda though is also welcome to use all this stuff I've done right here and give it a go their own way. The way I see it, if everyone did that then we would have plenty to choose from, and some of it might actually be better. For instance, I like Cluso's little P1 board better than say my own little board that was made for the IoT5500 because his is more general purpose.

    I intend to load a right angle dual row pin header for the serial since vertical is so limited but right angle sits flat and allows entry through the side of a case.
    The microSD connector is available in various heights but the one I use allows a card to slide nicely across the top of the P2 straight into the socket. I've done the same before with P1 so I know it works nicely. There is a footprint for an outward facing connector on the reverse side in case I would like external access. I think the mechanicals should be fine but that's also one of the reasons to get early protos since they are cheap enough to "print".

    btw - here's a screenshot of the 3D model of the microSD connector that I use:
    microsd.png
  • Cluso99Cluso99 Posts: 18,069
    I have some of the higher microSD sockets that Peter uses. It allows the microSD to slide above the P1/P2. It gives excellent protection for the card and keeps it out of the way if that is what you want.
    This is a nice board with everything accessible. Great for checking out the P2. It's small enough, yet has the ability to connect to expansion boards, which you can make yourself. I bet Peter will make some too.
  • Thanks for the clarification and info.
  • Are you planning to manufacture and sell these boards?
  • David Betz wrote: »
    Are you planning to manufacture and sell these boards?

    I will be sending the artwork off for blank pcbs next week and will probably have quite a few spare to hand out although for anyone else to assemble if they want. Obviously if the P2 chip checks out then this would be a good board to check it out on but I will have to think about making assembled units for sale.
  • hippyhippy Posts: 1,981
    edited 2018-06-18 14:29
    Q: Is the pitch between the pins of the two headers, ie across the board, a multiple of 0.1"

    Might just be my graphic editing software but it seemed to be slightly out, but perhaps not enough to make any real difference.
  • evanhevanh Posts: 16,022
    Looks great Peter. I'm definitely happy with the serial lines having easy access.

    I note though, that the MCP1700 is rated 200 mA. I think there was mention of possibly 2 watts max needed on the 1.8 volt rail. I get the feeling that even if the XCL220 was in place, even its 1 amp rating would be too low.

  • What was the purpose of two red and two green LEDs in parallel?
  • hippyhippy Posts: 1,981
    edited 2018-06-18 14:50
    On the P32-P63 header (B); could pin 2 be made +5V/VCC or, either (A) or (B), pins 19 and 20 be swapped ?

    That would allow the board to be more conveniently used with two 1x20 SIL headers fitted on the extreme edges for use with breadboard or stripboard, would give full access to all power rails, access to all even numbered I/O pins.

  • @evanh - MCP1700 part# is mainly a placeholder and while I do use these regs I note that there are many options in the same package up to 1A such as the AZ1117R but even the AP7365 handles 600ma at the cost of 21 cents in 100's. The XCL220 is priced at around $1.80 and while it may be true that even its 1A rating might not be enough, at the same time I'm not too fussed either as I don't think we would be pushing every cog at maximum, at least for now, plus I could assist the switcher with the LDO possibly or feed 1.8V externally. However, I'd hate to think of the P2 consuming all that power as it does seem excessive.


    @T Chap - The "parallel" LEDs are only in the schematic as it is a mounting option to have them on top or on the reverse in case this board is flipped.

    @hippy - Here is a composite view on a 0.1" grid:
    P2D2-CVGRID.png
    1199 x 893 - 168K
  • OK thanks. I am curious about the SD card, do you have a part number on hand for that for reference?

  • T Chap wrote: »
    OK thanks. I am curious about the SD card, do you have a part number on hand for that for reference?

    It's a Molex 47309-2651
    Here's a Mouser link
  • Great thanks. We all appreciate your efforts.
  • evanhevanh Posts: 16,022
    Ah, I hadn't identified the footprint for the XCL220 on there. I was thinking you hadn't actually put it in as it was listed as optional in the schematic. A few more labels on the silk would help.
  • David Betz wrote: »
    Are you planning to manufacture and sell these boards?

    I will be sending the artwork off for blank pcbs next week and will probably have quite a few spare to hand out although for anyone else to assemble if they want. Obviously if the P2 chip checks out then this would be a good board to check it out on but I will have to think about making assembled units for sale.
    Has Parallax said anything about what boards it might be making available coincident with the release of the P2? Or even if a board might be available with the test chips assuming they work and that there are enough to allow people outside of Parallax to help with the testing?

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2018-06-18 22:03
    David Betz wrote: »
    David Betz wrote: »
    Are you planning to manufacture and sell these boards?

    I will be sending the artwork off for blank pcbs next week and will probably have quite a few spare to hand out although for anyone else to assemble if they want. Obviously if the P2 chip checks out then this would be a good board to check it out on but I will have to think about making assembled units for sale.
    Has Parallax said anything about what boards it might be making available coincident with the release of the P2? Or even if a board might be available with the test chips assuming they work and that there are enough to allow people outside of Parallax to help with the testing?

    As Ken has stated, until P2 is "real" they can't and don't want to commit precious resources to it as they need to focus on business so that there is a business there to support P2 (my own words). But obviously Parallax made up the 123 boards to support P2 so I guess they would do the same for the chip itself. I'm intending to send Chip some of these boards (if he wants them) made up ready to tack a P2 onto if he wants to, but that's totally up to him, I'm just trying to be helpful and show my appreciation. I guess too that the Protel99SE pcb format is easily handled by its successor, Altium, so that they could use that as a basis for an in-house board too.

    @evanh - To dress up some boards I have these neat outlines on the silk to identify different sections and if I have the room for it I will add what I can but the you've got to remember that the board is quite small and even though they can print idents a lot finer these days, they might still be a bit hard to see on anything other than the blown-up artwork.
  • Cluso99Cluso99 Posts: 18,069
    edited 2018-06-18 22:19
    Guys, this is for initial prototype P2 testing. They will be built in small numbers, at least initially. Screens, masks, etc are all window dressing. Old boards were often built without solder masks and overlays, just tracks both sides and thru holes. They worked just fine.
  • I just asked because I was wondering what might be available for people like me who don't want to get involved with soldering SMT parts.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2018-06-18 23:06
    David Betz wrote: »
    I just asked because I was wondering what might be available for people like me who don't want to get involved with soldering SMT parts.

    Don't worry, I don't have a problem with making a small run of them as they are fairly simple but obviously I'd only make enough first up to test P2 and if all's well, then I can run off 10-20 units or as necessary when some more chips are available. Remember that only a few P2 die will be packaged for testing first up and if that's a go then we will have to wait on the remainder of that batch to be packaged and sent across, and of those I'm sure Parallax will want quite a few for testing variations etc.

    Here's the latest top view with the P2 and microSD for scale.
    P2D2B-TV2.png
  • Sounds good.
  • Bypass cap at pin 47/48 looks a lot better now with your update Peter. I think it could be hand soldered without so much shorting now.

    I've done some small 0.5mm stuff before by hand (mainly FFC connectors), though I can't really say I enjoyed it with my eyes as I don't really have a decent or well lit magnification setup. It's a good test of your hand-eye coordination though. :smile:
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2018-06-19 00:37
    rogloh wrote: »
    Bypass cap at pin 47/48 looks a lot better now with your update Peter. I think it could be hand soldered without so much shorting now.

    I've done some small 0.5mm stuff before by hand (mainly FFC connectors), though I can't really say I enjoyed it with my eyes as I don't really have a decent or well lit magnification setup. It's a good test of your hand-eye coordination though. :smile:

    I only moved the cap by 5mil :) Glad it looks better though!

    You will find that trying to hand solder fine pitch simply with a very fine tip can be a very frustrating experience since the fine tip will not conduct sufficient heat to the mass of pad and pin and solder. If I have to hand solder fine pitch I will tack the component down first and then blob on fresh solder "across" all the pins with a warm iron, hot enough to make it blob but not hot enough to burn off the flux. I then turn up the iron, wait until it's hot, and then holding the pcb at an angle I run the broad flat tip along the pins letting the solder melt properly and balling onto the tip as I run it down and veer off at the last pad with the blob of solder on the tip (watch your bare legs). If some pads are bridged, no problem, run the flux gel down the pins and with a clean tip repeat the exercise and you will have a row of very neat and cleanly soldered fine pitch pins. The mass and shape of the broad flat tip helps to hold and conduct the heat as well as attract and hold the mass of excess solder. Easy peasy.


Sign In or Register to comment.