| ECC1C 145-944-00

Analog Input

Analog Input system base ID: 0x58

Once this system is activated, the input to the Signal Flow is determined by the analog input signals available to the driver. The analog inputs are sampled at controller frequency which is 20kHz. Depending on the active control mode configured by the Signal Flow Manager the maximum analog input range is mapped linearly to the maximum range of the corresponding unit set by the control mode by default. This can be changed by setting Look Up Table, which consists of input voltages and specific value of current or dpt. After setting LUT, specific register with type(current/dpt) must be set. Maximum size of table is 10 pairs.

### Register Map:

Address | Name | Default Value | Description | Type | Access
--- | --- | --- | --- | --- | ---
0x5800 | ADC raw value | N/A | Converted ADC raw value | uint16 | read only
0x5801 | Active input type | N/A | Determined by active control stage system | Unit Type | read only
0x5802 | minCurrent | N/A | minimum current = ADC -> 0V | float | read write
0x5803 | maxCurrent | N/A | maximum current = ADC -> 10V | float | read write
0x5804 | minDpt | N/A | minimum Dpt = ADC -> 0V | float | read write
0x5805 | maxDpt | N/A | maximum Dpt = ADC -> 10V | float | read write
0x5806 | cal_coef_enable | N/A | enable calibrated input | float | read write
0x5807 | analog input type | N/A | set value type in LUT current = 0, FP = 1 | float | read write
0x5808 | extrapolation type | N/A | set constant or linear extrapolation | float | read write
0x5809 | LUT size | N/A | Size of LUT for Analog input | float | read write
0x580A | LUT voltage 0 | N/A | Analog input voltage for LUT index 0 | float | read write
0x580B | LUT value 0 | N/A | Output value (current/FP) for LUT index 0 | float | read write
0x580C | LUT voltage 1 | N/A | Analog input voltage for LUT index 1 | float | read write
0x580D | LUT value 1 | N/A | Output value (current/FP) for LUT index 1 | float | read write
0x580E | LUT voltage 2 | N/A | Analog input voltage for LUT index 2 | float | read write
0x580F | LUT value 2 | N/A | Output value (current/FP) for LUT index 2 | float | read write
0x5810 | LUT voltage 3 | N/A | Analog input voltage for LUT index 3 | float | read write
0x5811 | LUT value 3 | N/A | Output value (current/FP) for LUT index 3 | float | read write
0x5812 | LUT voltage 4 | N/A | Analog input voltage for LUT index 4 | float | read write
0x5813 | LUT value 4 | N/A | Output value (current/FP) for LUT index 4 | float | read write
0x5814 | LUT voltage 5 | N/A | Analog input voltage for LUT index 5 | float | read write
0x5815 | LUT value 5 | N/A | Output value (current/FP) for LUT index 5 | float | read write
0x5816 | LUT voltage 6 | N/A | Analog input voltage for LUT index 6 | float | read write
0x5817 | LUT value 6 | N/A | Output value (current/FP) for LUT index 6 | float | read write
0x5818 | LUT voltage 7 | N/A | Analog input voltage for LUT index 7 | float | read write
0x5819 | LUT value 7 | N/A | Output value (current/FP) for LUT index 7 | float | read write
0x581A | LUT voltage 8 | N/A | Analog input voltage for LUT index 8 | float | read write
0x581B | LUT value 8 | N/A | Output value (current/FP) for LUT index 8 | float | read write
0x581C | LUT voltage 9 | N/A | Analog input voltage for LUT index 9 | float | read write
0x581D | LUT value 9 | N/A | Output value (current/FP) for LUT index 9 | float | read write

Note
  Full register address varies according to the channel.

For example:

ADC raw value register for channel one has address 0x5800

Active input type register for channel one has address 0x5801

The Analog input system supports the following vectors (vectors have their own address space):

Address | Name | Default | Description | Format and value | Access
--- | --- | --- | --- | --- | ---
0x5800 | voltages -> LUT table values |  | 1.voltage | max 10 * float | read write
0x5801 | current/dpt -> LUT table values |  | 2.value(current/FP) | max 10 & same # as voltages * float | read write
0x5802 | Analog input cal.coefficients | {0,1,0,0,0,0} | 5th grade polynomial | 6 * float (24 bytes) | read write