P1X2 - a P2D2 form factor for the P1
Peter Jakacki
Posts: 10,193
in Propeller 1
I got to thinking about the many different P1 modules that I have designed in the past and then I thought how compact and easy to use the P2D2 is. Can I do the same for the P1?
Why yes, but I would allow for dual P1 chips with one driving VGA on P2D2s P0 side and the I/O all connected up there.
It would have the main or only P1 connected up to serial and flash and microSD etc. What a combination! Perhaps the 2nd P1 could have 4MB of serial RAM.
Just thinking at the moment while I get over this flu, but I will do a draft layout shortly.
Why yes, but I would allow for dual P1 chips with one driving VGA on P2D2s P0 side and the I/O all connected up there.
It would have the main or only P1 connected up to serial and flash and microSD etc. What a combination! Perhaps the 2nd P1 could have 4MB of serial RAM.
Just thinking at the moment while I get over this flu, but I will do a draft layout shortly.
Comments
The switcher runs into a dual LDO as it does on P2D2r3 and so these supply the two P1s. The other half of the switcher will be set to 3.3V and run external devices up to 2A.
I have a single I/O connecting P23 on both P1s through a resistor and can utilize my high-speed virtual full-duplex coms or something else. Maybe I might allow for 2 I/O.
This version can likewise also have the micro USB serial either via the EFM8UB3 chip or a CP2102 option and/or external serial coms that is also suitable for programming the P1.
I haven't decided exactly how I want the 2nd P1 programmed yet but it would be easy enough to at least assign a EEPROM chip for it and I can have the main P1 connected to its I2C bus via option resistors so that I can slave program it if need be. Perhaps I should do this with the slave's serial as well.
The Si5351A clock gen has multiple outputs with the default driving the main P1 at 5MHz but of course we can lock in any frequency for either.
So far, so good. Looks do'able and promising. Why do it? Why not!
I MUST BE BORED!
I actually like the Idea of having two P1 with the same support circuit and foot print of the upcoming new P2D2. Playing a lot with my P2 I went back to the P1 last week to test fastspin's languages on P1 and P2. And I am quite impressed by it.
A two P1 module would cover all those cases where one P1 is just to less but a P2 would be overkill.
I personally would prefer 2 connecting pins, I am not really a fan of half duplex, even if I do have to admit that most of my uses are half duplex, as I am waiting for responses.
Maybe just jumper so one can choose?
As of programming, just give both chips their own EEPROM and own extended PropPlug Header like you use to program EEPROM directly. I personally also dislike the USB on 30/31 but sadly Parallax decided different and I just have 4 Protoboards w/o USB left.
And w/o USB you can easy load/program one P1 from another one.
Anyways, I do like you to attempt this, same module with two P1 or one P2 makes a lot of sense to me.
Mike
The P2D2 form-factor for P1 is a great idea. As suggested, I would also use 2 eeproms to store the 2 programs.
But .... where P2 is overkill for its specs the double P1 risks to become overkill for its price that will most probably be higher than a single P2.
Perhaps the way to go is one P1 toghether with an IO expander, with the biggest eeprom and eventually some more ram .... or the both replaced by an fram like:
https://www.fujitsu.com/global/products/devices/semiconductor/memory/fram/lineup/i2c-1m-rc1mt/press-new.html
or
https://www.cypress.com/part/fm24vn10-g
EDIT: some of these micros work at 5V too which could be useful. The main P1 can communicate serially at 2Mbps so it's much faster than I2C as well.
The PIC16F18875-I/MV in a 5x5mm UDN40 is looking good at $1.13. It has the works and runs up to 5V and of course has the normal 10-bit A/D but a stack of other stuff. The A/D does have automatic functions including averaging, filter calculations, oversampling and threshold comparison
Maybe it might be better to forego the second P1 altogether.
Price is a killer tho
The SiLabs EFM8BB3 has better ADC, much better DAC, and includes a boot loader, and can run serial links faster than 2MBd. (See my EFM8UB3 notes)
It has 5V tolerant IO pins.
This is true but the type of CPU is not really important, only the peripherals. However I see that there is a EFM8UB2 in QFP48 for 35 cents more and it has USB. Besides I can burn the EFM8 chip directly from the Prop via the C2 lines. I will look at that too. The 2Mb speed was more of a safe limitation on the P1 side though.
Regarding PICs pls consider also PIC16(L)F1779 (and/or PIC16(L)F1789)
(UB3 is a cost-optimised device, removed UART0, and improved i2c speed)
Thanks for your work there jmg - my feet have hardly touched the ground the last couple of months, and when they have, so has the rest of me I will get onto this tomorrow, along with the new P2 of course.