My quesion is: Can one PIC be MASTER to peripherals, such as 'barometer module', plus a second PIC as SLAVE. This second PIC starts in SLAVE MODE then switches to MASTER to a compass module, all on the same SPI bus? The idea is for the second PIC to READ the compass, then send its DATA to the MASTER.
Cheers, Camerart
Hi M,
The second PIC is used as a time saver, for a compass routine, so needs to READ the compass, calculate then send it back to the MASTER, which is running things.
C
Hi M,
I'm trying to get information to assist my friend, who will set things accordingly, so he may not struggle, but you didn't clarify my #7 question.
C.
Hi,
From my friends explanation, he's hoping to have 1/PIC as MASTER and 2/PIC as SLAVE, then use a ring buffer to talk to the peripherals.
I've got no experience of this although I've read quite a bit about them, so see what happens.
C
I'm with the rest, it sounds like you're lookling for a very complicated and difficult solution to a simple problem? - however, I suggest you research 'multi-master' if you want to make life difficult for yourself.
I'm with the rest, it sounds like you're lookling for a very complicated and difficult solution to a simple problem? - however, I suggest you research 'multi-master' if you want to make life difficult for yourself.
Hi M,
I never want to make myself more difficult, but I've had the update PIC 1 over the years since this project started longer than I can remember ago. The latest 18LF4620's memory started to get full, and there's a lot more to do, so I thought I'd use the second almost empty PIC as an overflow, where what maybe a time consuming process can be done separately. Basically, I'm trying to future proof things.
I'll look up 'multi master' although my mate has taken over the design, so he'll tell me what I have to do at each step.
Thanks.
C.