Hi J,What is the problem ?
The latest test programs for master and slave?
In this thread are many suggestions, tests and programs, I don't think any of them have DATA from SLAVE to MASTER.
C
Hi J,What is the problem ?
The latest test programs for master and slave?
The data is the contents of the SSPBUF/ Slave.Hi J,
In this thread are many suggestions, tests and programs, I don't think any of them have DATA from SLAVE to MASTER.
C
Hi J,The data is the contents of the SSPBUF/ Slave.
Earlier you had wrong idle level of the clock.Hi J,
I realise that, but the DATA from the SLAVE never goes in the direction toward MASTER, where it's needed, using any of the programs in the thread.
C
Hi J, TRANSMITTEREarlier you had wrong idle level of the clock.
Is it correct now?
Try to use the Spi analyzer.
Did you ever get something from the slave ( not 255 or 0 )
Hi J,In master you have messed Oshonsoft software Spi and PIC18 hw Spi.
Nothing good follows from it.
Everything that touches SSPCON1, SSPSTAT, SSPBUFHi J,
Thanks for checking. In order to test only the Oshonsoft SPI, what should I remove.
C.
Hi J, TRANSMITTEREverything that touches SSPCON1, SSPSTAT, SSPBUF
Hi J,SSPBUF is not used by the software master.
The slave uses SSPBUF.
The master gets the contents of the slaves SSPBUF with SPIRECEIVE.
Why do you wan't to go back to sw master?
Hw master seemed to be working.
I think the problem is on the slave. Maybe a fault in connections, a short, broken hw etc.
You could make a simple program to test the sdo, sdi pins.
Write 0 and 1 to output pin, read from input pin.
Hi E,hi C,
As you know I create Tools for the Oshonsoft IDE, so I have prepared a SPI Slave Tool.
It shows that the Hardware SPI does not work within the IDE sim environment, the Software SPI works fine.
So the only way to test your HW SPI is to program PIC's
E
Hi E,hi,
What are the internal Clock rates of the 18F4620 and the 18F4431, in MHz.??
E
Hi E,hi,
On the 18F4620 is the PLL Enabled.?
E
by Aaron Carman
by Aaron Carman
by Duane Benson