Hi all. I have a few questions. I'm trying SPI onboard NETWORK, as in the sample programms, SPImaster and SPIslave. I want to ask if anyone has tested sample programs are written or just the head? For example, in the manual it says ... The internal mode of the SPI peripheral must be Identical in the master and the slaves and is Declared in this
Manner:
Define SPIOrder = MSB; {LSB}
SPICPOL = 0; {0/1}
SPICPHA = 0; {0/1}
SPIpresc = 0; {0/1/2/3}
And Sample programms =
SPIslave:
SPICPOL = 0; {0/1}
SPICPHA = 0; {0/1}
SPIpresc = 0; {0/1/2/3}
SPImaster:
SPICPOL = 0; {0/1}
SPICPHA = 0; {0/1}
SPIpresc = 3; {0/1/2/3}
SPIpresc do not match. It's right?
Test programs do not work, at least not me.
Hardware connection is ok, all lines 10K pullup,
from master portB, 0 i'm ussing to slave ss pin.
Anyone have idea? Thanks all Peter
Manner:
Define SPIOrder = MSB; {LSB}
SPICPOL = 0; {0/1}
SPICPHA = 0; {0/1}
SPIpresc = 0; {0/1/2/3}
And Sample programms =
SPIslave:
SPICPOL = 0; {0/1}
SPICPHA = 0; {0/1}
SPIpresc = 0; {0/1/2/3}
SPImaster:
SPICPOL = 0; {0/1}
SPICPHA = 0; {0/1}
SPIpresc = 3; {0/1/2/3}
SPIpresc do not match. It's right?
Test programs do not work, at least not me.
Hardware connection is ok, all lines 10K pullup,
from master portB, 0 i'm ussing to slave ss pin.
Anyone have idea? Thanks all Peter