[sdiy] PICs sharing pins and clock

Colin f colin at colinfraser.com
Sun Sep 25 13:16:13 CEST 2005


 
> >Is this possible?  I mean, can two (or more) PICs work together, one
> >with one of its pins working as output and connected to a second one
> >configured as input, both sharing a common external clock?

> Running two PICs from a single external clock will not be the 
> problem, but 
> you have to make sure that their programs start at exactly 
> the same moment, 
> so in any case the up going edge on MCLR of both PICs should be 
> synchronized with the clock, and on the right phase of the 
> clock too (you 
> would have to investigate or experiment further).

You also have to worry about the CPU pipelining.
Look in the datasheets for an instruction flow/pipelining diagram.
Life would be much easier just to use asynchronous communication between
CPUs.

Cheers,
Colin f





More information about the Synth-diy mailing list