hi,
Master.
ss = 1
WaitMs 5' way too long... use WaitUs
ss = 0
Slave.
While ss = 1
Wend
SSPBUF = qeiazi.LB
While Not SSPSTAT.BF
Wend
m2s1 = SSPBUF
You are not testing for ss
SSPBUF = qeiazi.HB
While Not SSPSTAT.BF
Wend
m2s2 = SSPBUF
Serout PORTC.3, 9600, "From Master=", #m2s1, #m2s2, CrLf
Master.
ss = 1
WaitMs 5' way too long... use WaitUs
ss = 0
Slave.
While ss = 1
Wend
SSPBUF = qeiazi.LB
While Not SSPSTAT.BF
Wend
m2s1 = SSPBUF
You are not testing for ss
SSPBUF = qeiazi.HB
While Not SSPSTAT.BF
Wend
m2s2 = SSPBUF
Serout PORTC.3, 9600, "From Master=", #m2s1, #m2s2, CrLf