1 Analog to digital and digital to analog converters analog converters A/D converter D/A converter ADC DAC a2d d2a Number bases Decimal, base 10, numbers 0 - 9 Binary, base 2, numbers 0 and 1 Oktal, base 8, numbers 0 - 7 Hexadecimal, base 16, numbers 0 – 9 and A - F
40
Embed
Analog to digital and digital to analog convertersanalog ...svenk/mikrodatorsystem/lectures/AD_DA_ppt.pdfAnalog to digital and digital to analog convertersanalog converters A/D converter
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
Analog to digital and digital to analog convertersanalog converters
A/D converter D/A converter
ADC DAC
a2d d2a
Number bases
Decimal, base 10, numbers 0 - 9, ,
Binary, base 2, numbers 0 and 1
Oktal, base 8, numbers 0 - 7
Hexadecimal, base 16, numbers 0 – 9 and A - F
2
The structure of a decimal number
Integer number
0123 1061041031022346
Number with decimals
3-2-1-0 1071051081055.857
Scaling factor
Scaling factor
The structure of a hexadecimal number
Integer number
012 16A16216992A
Number with fractions
3-2-1-0 16616B16D1655.DB6
Scaling factor
16616B16D1655.DB6
Scaling factor
3
The structure of a binary number
891011 21202021101000101001
Integer number
891011 21202021 1010 0010 1001
012 2120211011101 1101
4567 20212020
Number with fractions
0123 20212021 Scaling factor
2120211011 101.1101
-43-2-1- 21202121
8-7-6-5- 21212021
Scaling factor
Conversion between bases
Decimal to hexadecimal
1610A10
1610146
162346
161022
1629
16146
99909
LSD, bit 0
Next bit, bit 1
Next bit bit 2
Hexadecimalbase
161099
160
16
1610 92A2346
Next bit, bit 2
Stop when zero
4
Conversion between bases cont.
222932346
Decimal to octal
LSD bit 028
2938
58536
8293
4844
836
LSD, bit 0
Next bit, bit 1
Next bit, bit 2
Octal base
810 44522346
4840
84 Next bit, bit 3
Stop when zero
Conversion between bases cont.
0011732346 115861173 00293586
Decimal to binaryBinary base
02
11732
2
5862
02
932
121146
2293 0
2073
2146 1
2136
273
02018
236 0
209
218 1
214
29
210 1010001010012346
0202
24 0
201
22 1
210
21
Stop when zero
5
Conversion between bases cont.Hexadecimal to binary
216 1101101000113AD
One hexadecimal digit = four binary bits
Word length
8 bits = byte (char)
16 bits = word (short, short integer, some times integer)