Knowledge Base

Once installed on a SPLat controller board the SPice10212 appears as 3 analog inputs. The following table shows the mapping for various controllers. Numbers in parenthesis are the numeric analog channel numbers used with fAnIn.

 Cnctr pinSLXXXMMiXXXMS12
Phase A4AnInC (2)AnInE (4)AnInC (2)
Phase B5AnInD (3)AnInF (5)AnInD (3)
Phase C6AnInE (4)AnInG (6)AnInE (4)
initializing the SPice connector

Because the pins of the SPice connector, to which the SPice10212 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 SPice10212.

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 SPice10212.

         ClrU
setu 0,3 ;set spice connector pin 4 as analog input
setu 1,3 ;set spice connector pin 5 as analog input
setu 2,3 ;set spice connector pin 6 as analog input
SpiceConfigU

This section contains a few programming examples. You can use them as a starting point for your own programs.