SPLatco Knowledge Base

Once installed on a SPLat controller, the SPice10205 appears as several regular analog and digital I/O points. The following table shows the mappings for all the I/O on the board.

 pinSL99MMi200MS12
Conductivity 17Input 10Input 13Input 20
Conductivity 28Input 11Input 14Input 21
Conductivity 34Input 12Input 15Input 17
Conductivity 45Input 13Input 16Input 18
Conductivity 56Input 14Input 17Input 19
Conductivity 69Input 15Input 18Input 22
initializing the SPice connector

Because the pins of the SPice connector, to which the SPice10205 is connected, can be configured for different functions (analog/digital, input/output), you need to have some code in your program that configures them to the correct settings for the SPice10205.

The following section of code should be run by your program just once, at the beginning, before your program attempts to do anything else with the SPice10205.

Use this code if you are using all 6 channels for conductivity

         ClrU
setu 0,2 ;set spice connector pin 4 as digital input
setu 1,2 ;set spice connector pin 5 as digital input
setu 2,2 ;set spice connector pin 6 as digital input
setu 3,2 ;set spice connector pin 7 as digital input
setu 4,2 ;set spice connector pin 8 as digital input
setu 5,2 ;set spice connector pin 9 as digital input
SpiceConfigU

If you are using the thermistor drive voltage generator, channels 6 of the SPice10205 cannot be used. Instead you need to remove the jumper on the SPice10205 board and use the following initialization code:

         ClrU
         setu         0,2         ;set spice connector pin 4 as digital input
         setu         1,2         ;set spice connector pin 5 as digital input
         setu         2,2         ;set spice connector pin 6 as digital input
         setu         3,2         ;set spice connector pin 7 as digital input
         setu         4,2         ;set spice connector pin 8 as digital input
         setu         5,4         ;set spice connector pin 9 as analog output
         SpiceConfigU
Programming the fluid sensor (conductivity switch) inputs.

Once the board has been initialized, the fluid sensor inputs are just like any other input. The input will be on when there is fluid present.

Note that during debug with SPLat the SPice board may not show up correctly in the I/O window unless the board has run the initialize code. You can fix this by translating and running the above initialization sequence in the board. Add a line

a     goto    a

at the end to prevent translation and runtime errors.