Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Suppose a binary number with N bits is to represent an analog value ranging from 0 to A There are 2N possible numbers Resolution = A / 2N
Resolution Example
Temperature range of 0 K to 300 K to be linearly
converted to a voltage signal of 0 to 2.5 V, then digitized with an 8-bit A/D converter
2.5 / 28 = 0.0098 V, or about 10 mV per step 300 K / 28 = 1.2 K per step
Resolution Example
Temperature range of 0 K to 300 K to be linearly
converted to a voltage signal of 0 to 2.5 V, then digitized with a 10-bit A/D converter
2.5 / 210 = 0.00244V, or about 2.4 mV per step
300 K / 210 = 0.29 K per step
Encoder/Decoder Vocabulary
ENCODER- a digital circuit that produces a binary output code depending on which of its inputs are activated.
DECODER- a digital circuit that converts an input binary code into a single numeric output.
A BCD number is a four-bit binary group that represents one of the ten decimal digits 0 through 9. Example:
Decimal number 4926 4 9 2 6
ELECTRONIC ENCODER -
DECIMAL TO BCD
BCD output Decimal input
0000 111
Decimal to BCD Encoder
7 5
3
0
Encoders are available in IC form. This encoder translates from decimal input to BCD output.
BINARY (BCD) 4 2 1
7 6 5 4 3 2 1 0
8 0V 4 0V 2 0V 1 0V
A3 A2 A1 A0
0 00 0 0 00 0 01 01 01 1 1
Electronic decoders are available in IC form. This decoder translates from BCD to decimal. Decimals are shown on an 7-segment LED display.
TEST
Q #1- What is the decimal output from the decoder that #5#4#3#2appears on the 7-segment display? Answer: 3 6 7 9 0
Decimal output
5V
TEST
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 ENCODER O0 O1 O2 O3
INPUT A1=1 A4=1 A6=1 A8=1 O3 O2 O1 O0