Motor Driver Controller for external Amplifier
Cdios 6168

Command / Reply messages for CALIBRATION

 

Cdios 6152 Controller Commands                    


Command code 2Fh: Read / write calibration related data

This command reads/writes A/D converter and calibration values.
 

Command

Module ID

3

4

5

6

7

8

2Fh

0 - 15

Selector

Data or zero 0

0

0


Parameter

Value

 Description

Data in Command Data in Reply

Selector

00h
01h
02h
03h
Read Analog output #1 Offset calibration value
Write Analog output #1 Offset calibration value
Read Analog output #1  Full-scale calibration value
Write Analog output #1  Full-scale calibration value

-
X
-
X

X
-
X
-

10h
11h
12h
13h
Read Analog output #2 Offset calibration value
Write Analog output #2 Offset calibration value
Read Analog output #2  Full-scale calibration value
Write Analog output #2  Full-scale calibration value

-
X
-
X

X
-
X
-

FEh
FFh
Activate calibration mode
Store calibration values
- -

Normal reply is:

 

Reply

Module ID

3

4

5

6

7

8

2Fh

0 - 15

Selector (copy of command)

Data or zero 0

0

0


 Possible error message:

 

Error

Module ID

3

4

5

6

7

8

AFh

0 - 15

0

0

Error Status

0

0

0


Parameter

Bit

 Description

Error status

0

1 = Selector parameter out of range

2 1 = FLASH EPROM programming failed
 


Calibration protocol

  1. Apply power-supply to the 6168 and connect a Volt meter analog output #1.
  2. Send 'Activate calibration mode' Command (2Fh, Selector code FEh). This will disable the internal voltage to D/A value conversion.
  3. Set output #1 to zero with command 16h, selector 00, data 0000
  4. Adjust output offset voltage by writing new values in the output voltage offset calibration value until the voltage is as close to zero as possible (should be possible within 15 mV).
    The resolution of the calibration value is approx. 12 mV / bit.
  5. Adjust output voltage by writing new values with command 16h, until the voltage is as close to 10V as possible. The value to write is approx. 2000 (12 bits signed)
  6. Calculate full-scale calibration value = (Written Value / 10000) * 65536 ==> Value * 6.5536
  7. Write full-scal calibration value with command 2Fh, selector 03h or 13h
  8. Repeat step 3 - 7 for other output
  9. Send the 'Store calibration' Command (2Fh, Selector code FFh) to resume normal operation

 


Home