Proc spi_wr_rd()'###################################################
altmtr = 0
WaitUs 10
While Not SSPSTAT.BF
Wend
t1.LB = SSPBUF < - - - - - remove this
WaitUs 2
altmtr = 1
End Proc
The calibration parameters are read in the for next loop
for i =0 to 23
adr= 0x88+i......
altmtr = 0
WaitUs 10
While Not SSPSTAT.BF
Wend
t1.LB = SSPBUF < - - - - - remove this
WaitUs 2
altmtr = 1
End Proc
The calibration parameters are read in the for next loop
for i =0 to 23
adr= 0x88+i......