Had you tried placing pull down resistor on SS pin.There is a chance slave get "crazy" as the SS pin will sometimes float (OC).
Had you tried placing pull down resistor on SS pin.There is a chance slave get "crazy" as the SS pin will sometimes float (OC).
Yes, I have added the pull down resistor at SS pin but it still could not work.
I have some doubts on how to write and read SSPBUF in PICBASIC PRO.
When I execute the following code, which I assume it as 'write to SSPBUF':
SSPBUF = "?"
I could see a 8-pulse train at SCK of the master.
If I'm not mistaken, communication between master/slave is initiated by SCK (clock) of the master, right? If that is the case, how do we read (in PICBASIC PRO) from the slave? Pls refer to the code below:
IF SSPBUF<>"!" Then getdata
Pls advise if there is any read operation above? How does the master start the clock during read operation?
Thanks.
Bookmarks