Example: SPice10212 calibration without LCD

This program allows you to calibrate on a controller board that has no LCD. Instead, readout is performed using the SPLatLink facility in SPLat/PC. You can learn how to use SPLatLink from the SPLat/PC help file. Just search for SPLatLink.

;Cal99.spt SPice20212 demo/calibration using SL99
;The challenge here is that the SL99 has no numeric display.
;What we do is to store the readings in RAM then we can read 
;them out using SPLat link (the SL button on the Module window)
;Once the program has been run (and configured the SPice connector) 
;it's also possible to monitor the analog inputs in the 
;analog window of SPLat/PC.

;Initialize the SPice connector for 3 analog inputs
                SetU            0,3
                SetU            1,3
                SetU            2,3
                SPiceConfigU

;Main program loop:

Loop:

                AnInC                   ;Phase A
                Store           0
                AnInD                   ;Phase B
                Store           1
                AnInE                   ;Phase C
                Store           2

                GoTo            Loop