Moving DATA from one PIC to another.

Discussion in 'Embedded Systems and Microcontrollers' started by camerart, Jul 30, 2019.

  1. camerart

    Thread Starter Senior Member

    Feb 25, 2013
    1,538
    42
    Hi,
    I/we have been trying to get DATA from an 18F4431 PIC SLAVE to an 18F4620 PIC MASTER using Oshonsoft SPI, but haven't succeeded.

    Is there another way of sending DATA between PICs?

    There could be a bug stopping the 18F4431 acting as SLAVE, so bare that in mind, if you have an answer.

    Camerart.
     
  2. AlbertHall

    AAC Fanatic!

    Jun 4, 2014
    8,035
    1,984
    UART, USART, I2C for starters.
     
  3. camerart

    Thread Starter Senior Member

    Feb 25, 2013
    1,538
    42
    Hi A,
    For me I2C is out but UART, USART, are possibilities (Not sure of the difference, but I could use the suitable one.
    Thanks,
    C.
     
  4. AlbertHall

    AAC Fanatic!

    Jun 4, 2014
    8,035
    1,984
  5. camerart

    Thread Starter Senior Member

    Feb 25, 2013
    1,538
    42
  6. AlbertHall

    AAC Fanatic!

    Jun 4, 2014
    8,035
    1,984
    You could use a separate pin to do that but UART is bidirectional so the 'master' could send a message which means 'send the data now'.
     
  7. camerart

    Thread Starter Senior Member

    Feb 25, 2013
    1,538
    42
    Hi A,
    Ok.
    Previously I needed to add an extra UART to my 2xPIC PCB and had to add a switch between them. This is working ok.

    This extra UART needs another switch with 3 or more inputs, and I have an FST3253 for this job, which I've been trying to avoid by using SPI, which is not working. The FST3253 needs 4xINPUTs instead of 1x, which is quite a task in changing the PCB around, and as I'm running out of PINs.

    Do I have to bite the bullet and redesign?
    C.
     
  8. camerart

    Thread Starter Senior Member

    Feb 25, 2013
    1,538
    42
    Hi,
    I said the FST3253 needs 4xINPUTs, but of further reading, for what I need it only needs 2xPINs, which is easier.
    C.
     
Loading...