Yes.Hi J,
Dim DATA as BYTE added to 18F4620 MASTER.
Do you accept PMs?
C.
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.
Yes.Hi J,
Dim DATA as BYTE added to 18F4620 MASTER.
Do you accept PMs?
C.
Thanks.If you click your name in top right corner, I believe it's under the privacy tag.
Mike.
Change the slave to do nothing:I think you have changed something.
Make a simple test.
SPIsend 5
SPIreceive data
Hserout data
SPIsend 10
SPIreceive data
Hserout data
Hi J, [ TRANSMITTER ]SPIsend data always sends. I have checked this in the simulator.
Try SPIsend 0, then SPIreceive data.
If you still get data=255, then SDI is stuck at 1 or SSBUF in slave is always 255.
Check SDI, SDO at master and slave, SCK at master.
Hi J,In the slave you have now
loop:
goto loop
before SPI slave is initialized, so slave does not respond.
To test, move the loop before '' get count
You have also set QEI interrupts.
Remove them because there are no interrupt routines for them.
Hi J,You have in master SSPCON1 = %0010000, which sets hw SPI but you are using in Oshonsoft software master, they may interact. Remove it and test again.
Hi J,I looked sdi, sdo, clk, ss tristates settings at slave and they look ok.
Have you checked the connections between master-slave.
Can you watch the signals from master: clock, sdo, sdi.
Hi J,Measure next from the slave.