Dual Processor...????
SCGrant327
Posts: 10
Is it possible to run two Props acting on the same memory? Of course, I am talking about shared RAM...
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Stan Dobrowski
I was playing with a similiar thought the other day. If a pull up resistor was used with a protocal similiar to the one used on the sht11 Humidity/Temp Ic's, would just toggling the dira register for the affected pins cause any heartburn with the propeller guts.
It would be a great one wire com control, in Theory anyway?
Thanks for the help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Stan Dobrowski
Just toggling the DIRA register does work very well for manipulating an open-drain/open-collector type of signal (with a pull-up/pull-down). The reason for the series resistor in this case is to protect against programming errors. If you mis-type a pin number or something similar, you could easily destroy an I/O pin. I'm particularly careful when connecting one microcontroller pin to another since these are designed to provide quite a bit of current (20-50ma or more).
You can find a discussion thread about it here:
http://forums.parallax.com/showthread.php?p=617536
The only other way to have two props sharing memory to do a task together is to set up some kind of intercommunication between them.
You could setup a system where an 8-bit port and a few control bits are used to interconnect two props (with safety resistors inbetween like mike suggests), to create a fast interconnection system. You need some kind of data sharing protocol running on a COG on boths props too, but it is doable.
Mahjongg.
I once did as you suggest with another type microcontroller. Two where connected at their port pins in junction with a stamp. The stamp used their memory and provided a com port to a computer for the other two microcontrollers. Two main concerns doing this:
One as Mike said, current build up on the bus is dangerous. I took the total number of resistence needed between any two chips and devided it by two. Then I placed that much resistence in front of each chips pins. In my case I needed 440 ohms between any chip, so on each pin was placed a 220 resistor, so no matter who was talking to who I still had 440.
The other problem is arbitration of bus control. Needless to say control of the bus had to be decided on lines not part of this 3-way bus.(ie; if two where transmitting at the same time then 440*2 ohms would be needed.