title: Pic to Pic communcation through SPI
body: <p>I am trying to make <strong>PIC1</strong> be a master and <strong>PIC2</strong> be a slave through SPI communication. I want to send a command from <strong>PIC1</strong> (master) to  <strong>PIC2</strong> (slave), then have it do something. However I want to establish another SPI communication from <strong>PIC2</strong> (slave) to a digital potentiometer (MCP4241) through SPI communication as well.  Will this work ? </p>
  
  <p>To illustrate :</p>
  
  <p><strong>PIC1</strong> sends 'a'  ---- > <strong>PIC2</strong> reads it </p>
  
  <p><strong>PIC2</strong> ---- > establishes connection with digital pot(MCP4241)</p>
  
  <p><strong>PIC2</strong> ---- > sends data to digital pot </p>
  
  <p>So there will be SPI communications between PIC1 and PIC2, then PIC2 and digital pot, I just don't know if this is going to work since I would need to use the same pins.  For the two PICs, I am using pic16f690. </p>
  
  <p>I hope my question is clear and please if this won't work how should I fix it? </p>
  
  <p>Thanks! </p>