17.06.2014 Views

Hardware Manual - RTD Embedded Technologies, Inc.

Hardware Manual - RTD Embedded Technologies, Inc.

Hardware Manual - RTD Embedded Technologies, Inc.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Voltage values for each bit will vary depending on input range and gain. For example, if the input is set for ±5 V<br />

and the gain = 1, the formula for calculating voltage is as follows:<br />

Voltage = [(Input Range/Gain) / 4096] x Conversion Data<br />

Voltage = [(10/1) / 4096] x Conversion Data<br />

Voltage = 2.44 mV x Conversion Data<br />

Remember that when you change the gain, you are increasing the resolution of the bit value but you are<br />

decreasing the input range. In the above example if we change the gain to 4, each bit will now be equal to 610 μV<br />

but our input range is decreased from 10 V to 2.5 V. The formula would look like this:<br />

Voltage = [(Input Range/Gain) / 4096] x Conversion Data<br />

Voltage = [(10/4) / 4096] x Conversion Data<br />

Voltage = 610 μV x Conversion Data<br />

If we now change the input range to ±10 V and the gain = 1, the formula would be:<br />

Voltage = [(Input Range/Gain) / 4096] x Conversion Data<br />

Voltage = [(20/1) / 4096] x Conversion Data<br />

Voltage = 4.88 mV x Conversion Data<br />

The key digital codes and their input voltage values are given in the following tables. The bit map below shows<br />

the configuration of the A/D data. Bit 15 is the sign extension bit.<br />

D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0<br />

Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 30.7 30.6 30.5<br />

(MSB)<br />

(LSB) A/D Data Markers<br />

1. 1 LSB = 2.44 mV.<br />

A/D Bipolar Code Table 1<br />

(±5 V Input Range)<br />

Input Voltages Sign Output Code<br />

+4.998 V 0 MSB 0111 1111 1111 LSB<br />

+2.500 V 0 MSB 0100 0000 0000 LSB<br />

0.000 V 0 MSB 0000 0000 0000 LSB<br />

–0.00244 V 1 MSB 1111 1111 1111 LSB<br />

–5.000 V 1 MSB 1000 0000 0000 LSB<br />

1. 1 LSB = 2.44 mV.<br />

A/D Bipolar Code Table 1<br />

(±10 V Input Range)<br />

Input Voltages Sign Output Code<br />

+9.995 V 0 MSB 0111 1111 1111 LSB<br />

+5.000 V 0 MSB 0100 0000 0000 LSB<br />

0.000 V 0 MSB 0000 0000 0000 LSB<br />

–0.00488 V 1 MSB 1111 1111 1111 LSB<br />

–10.000 V 1 MSB 1000 0000 0000 LSB<br />

1. 1 LSB = 2.44 mV.<br />

A/D Bipolar Code Table 1<br />

(0 to 10 V Input Range)<br />

Input Voltages Sign Output Code<br />

+9.99756 V 0 MSB 1111 1111 1111 LSB<br />

+5.000 V 0 MSB 1000 0000 0000 LSB<br />

0.000 V 0 MSB 0000 0000 0000 LSB<br />

BDM-610010034 Rev C Chapter 5: A/D Conversions 75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!