03.01.2015 Views

handbook of modern sensors

handbook of modern sensors

handbook of modern sensors

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

176 5 Interface Electronic Circuits<br />

Table 5.1. Integer and Fractional Binary Codes<br />

Decimal Fraction Binary MSB Bit2 Bit3 Bit4 Binary Decimal<br />

Fraction x1/2 x1/4 x1/6 x1/16 Integer Integer<br />

0 0.0000 0 0 0 0 0000 0<br />

1/16 (LSB) 0.0001 0 0 0 1 0001 1<br />

2/16 = 1/8 0.0010 0 0 1 0 0010 2<br />

3/16 = 1/8 + 1/16 0.0011 0 0 1 1 0011 3<br />

4/16 = 1/4 0.0100 0 1 0 0 0100 4<br />

5/16 = 1/4 + 1/16 0.0101 0 1 0 1 0101 5<br />

6/16 = 1/4 + 1/8 0.0110 0 1 1 0 0110 6<br />

7/16 = 1/4 + 1/8 + 1/16 0.0111 0 1 1 1 0111 7<br />

8/16 = 1/2 (MSB) 0.1000 1 0 0 0 1000 8<br />

9/16 = 1/2 + 1/16 0.1001 1 0 0 1 1001 9<br />

10/16 = 1/2 + 1/8 0.1010 1 0 1 0 1010 10<br />

11/16 = 1/2 + 1/8 + 1/16 0.1011 1 0 1 1 1011 11<br />

12/16 = 1/2 + 1/4 0.1100 1 1 0 0 1100 12<br />

13/16 = 1/2 + 1/4 + 1/16 0.1101 1 1 0 1 1101 13<br />

14/16 = 1/2 + 1/4 + 1/8 0.1110 1 1 1 0 1110 14<br />

15/16 = 1/2 + 1/4 + 1/8 + 1/16 0.1111 1 1 1 1 1111 15<br />

Source: Adapted from Ref. [4].<br />

Additional bits simply provide more fine structure without affecting the full-scale<br />

range. To illustrate these relationships, Table 5.1 lists 16 permutations <strong>of</strong> 5-bit’s worth<br />

<strong>of</strong> 1’s and 0’s, with their binary weights, and the equivalent numbers expressed as<br />

both decimal and binary integers and fractions.<br />

When all bits are “1” in natural binary, the fractional number value is 1 − 2 −n ,<br />

or normalized full-scale less 1 LSB (1 − 1/16 = 15/16 in the example). Strictly<br />

speaking, the number that is represented, written with an “integer point,” is 0.1111<br />

(= 1 − 0.0001). However, it is almost universal practice to write the code simply as<br />

the integer 1111 (i.e., “15”) with the fractional nature <strong>of</strong> the corresponding number<br />

understood: “1111” → 1111/(1111 + 1), or 15/16.<br />

For convenience, Table 5.2 lists bit weights in binary for numbers having up to<br />

20 bits. However, the practical range for the vast majority <strong>of</strong> <strong>sensors</strong> rarely exceeds<br />

16 bits.<br />

The weight assigned to the LSB is the resolution <strong>of</strong> numbers having n bits. The<br />

dB column represents the logarithm (base 10) <strong>of</strong> the ratio <strong>of</strong> the LSB value to unity<br />

[full scale (FS)], multiplied by 20. Each successive power <strong>of</strong> 2 represents a change<br />

<strong>of</strong> 6.02 dB [i.e., 20 log 10 (2)] or “6 dB/octave.”<br />

5.4.2 V/F Converters<br />

The voltage-to-frequency (V/F) converters can provide a high-resolution conversion,<br />

and this is useful for the sensor’s special features as a long-term integration (from<br />

seconds to years), a digital-to-frequency conversion (together with a D/A converter),<br />

a frequency modulation, a voltage isolation, and an arbitrary frequency division and

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

Saved successfully!

Ooh no, something went wrong!