possible inter-cog comms method
Graham Stabler
Posts: 2,510
I was thinking about implementing PID control and the like on the propeller, I was thinking about intercog communication and it struck me that you could use the counter output in one cog to drive the counter input in another. Either do DAC then ADC or can you keep it digital?
I was just thinking it was fast, had little overhead and potential for decent resolution. Not sure it is any better than just banging bits really, just a thought.
Graham
I was just thinking it was fast, had little overhead and potential for decent resolution. Not sure it is any better than just banging bits really, just a thought.
Graham
Comments
Once you decide to devote one or more I/O pins to inter-cog communication, really any mechanism that you would use between two Propellers would work just as well within a single Propeller. One pin could get you a half duplex asynchronous serial connection. Two could get you an I2C or full duplex serial connection (or an analog value). Three could get you an SPI connection, etc.
What you suggest with a counter in one cog driving a counter in another cog would also work. You'd have to have some scheme for deciding when to stop counting and read the resulting value. That would probably take another pin.
Mike
I think I'm probably talking rubbish, I was almost thinking along the lines of each cog acting a bit more like an analogue block rather than trying to count an exact number.
Graham
Can you elaborate on what you meant? This sounds really interesting.
Joel-
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
Personal Links with plenty of BASIC Stamp info
StampPlot - Graphical Data Acquisition and Control
AppBee - XBee ZigBee / IEEE 802.15.4 Adapters & Devices
Joel-
Because you bypass the hub (remember the cogs all access all the pins at the same time) you can save some time. This would bypass the hubs sequential spreading of information......
James L
WOW....all typing at the same time
Joel-
·