Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi J,I meant, that in testing the SS can be at 0 permanently.
When using multiple SPI devices the Slave has to be setup every time before using it.
I tried to tell it in #160, #161Hi J,
I've tried all sorts of combinations of SS, but it only seems to work with [ SLAVEpic = 0 ] at the beginning and [ SLAVEpic = 0 ] at the end of the MASTER LOOP, otherwise nothing appears in the analyser.
EDIT: I added a toggling LED in SLAVE MAIN LOOP. This still flashes whether SS is [ 0 ] or [ 1 ] does this seem correct?
C.
I tried to tell it in #160, #161
What do you see in the analyzer?
Show the main loop.
Hi J,Remove from the slave SSPBUF = azi.lb
So something appeared in the analyzer, what was it?Hi J,
I've tried all sorts of combinations of SS, but it only seems to work with [ SLAVEpic = 0 ] at the beginning and [ SLAVEpic = 0 ] at the end of the MASTER LOOP, otherwise nothing appears in the analyser.
EDIT: I added a toggling LED in SLAVE MAIN LOOP. This still flashes whether SS is [ 0 ] or [ 1 ] does this seem correct?
C.
I don't know what to do.Hi J,
MASTER as #164
SLAVE and Result:
C
Hi J,So something appeared in the analyzer, what was it?
Now SDI in Master seems to be stuck at 1.
Hi J,I don't know what to do.
Here is a tutorial of PIC to PIC Spi:
Maybe it helps.SPI Tutorial With PIC Microcontrollers | Serial Peripheral Interface
SPI with PIC MCUs. How it works and how to establish Communication Between 2 Microcontrollers. SPI Clock Phase and Polarity Explaineddeepbluembedded.com