30
Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Embed Size (px)

Citation preview

Page 1: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Analog Versus Digital

Kuliah Sistem Digital, Teknik Elektro UMY(Rahmat Adiprasetya)

Page 2: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Concept

Electronic engineers split their world into two views called analog and digital

A digital quantity is one that can be represented as being in one of a finite number of states, such as 0 and 1, ON and OFF, UP and DOWN, and so on

Page 3: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Digital and Analog Waveform

Page 4: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Digital and Analog Views (1)

Page 5: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Digital and Analog Views (2)

Page 6: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Digital and Analog Views (3)

Page 7: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

The Transistor as a Switch (1)

To illustrate the application of a transistor as a switch, first consider a simple circuit comprising a resistor and a real switch

Page 8: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

The Transistor as a Switch (2)

Now consider the case where the switch is replaced with an NMOS transistor whose control input can be switched between VDD and VSS

Page 9: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Alternative NumberingSystems

Decimal (Base-10) The commonly used decimal numbering system is

based on ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. The name decimal comes from the Latin decem, meaning “ten.”

The decimal system is a place-value system, which means that the value of a particular digit depends both on the digit itself and its position within the Number

Page 10: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Decimal (Base-10)

Page 11: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Decimal (Base-10)

Page 12: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Decimal (Base-10)

Page 13: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Duo-Decimal (Base-12)

Some cultures made use of duo-decimal (base-12) systems; instead of counting fingers they counted finger-joints.

This form of counting may explain why the ancient Sumerians, Assyrians, and Babylonians divided their days into twelve periods, six for day and six for night

Page 14: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Duo-Decimal (Base-12)

If a similar finger-joint counting strategy is applied to both hands, the counter can represent values from 1 through 24

This may explain why the ancient Egyptians divided their days into twenty-four periods, twelve for day and twelve for night

Page 15: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Sexagesimal (Base-60) The ancient Babylonians used a

sexagesimal (base-60) numbering system. This system, which appeared between 1900 BC and 1800 BC, is also credited as being the first known place-value number system.

Sixty is the smallest number that can be wholly divided by 2 through 6; in fact, sixty can be wholly divided by 2, 3, 4, 5, 6, 10, 12, 15, 20 and 30. Just to increase their fun, in addition to using base sixty the Babylonians also made use of six and ten as sub-bases.

Page 16: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

The Concepts of Zero and Negative Numbers

The concept of numbers like 1, 2, and 3 developed a long time before the concept of zero. In the original Babylonian system a zero was simply represented by a space

In fact, it was not until around 600 AD that the use of zero as an actual value first appeared in India.

Page 17: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Vigesimal (Base-20)

The Mayans, Aztecs, and Celts developed vigesimal (base-20) systems by counting using both fingers and toes.

For example, to say fifty-three, the Greenland Eskimos would use the expression “Inup pinga-jugsane arkanek-pingasut,” which translates as “Of the third man, three on the first foot.

Page 18: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

To this day we bear the legacies of almost every number system our ancestors experimented with.

From the duo-decimal systems we have twenty-four hours in a day (2 × 12), twelve inches in a foot, and special words such as dozen (12) and gross (144).

Similarly, the Chinese have twelve hours in a day and twenty-four seasons in a year.

From the sexagesimal systems we have sixty seconds in a minute, sixty minutes in an hour, and 360 degrees in a circle.

This all serves to illustrate that number systems with bases other than ten are not only possible, but positively abound throughout history.

Page 19: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Quinary (Base Five)

One system that is relatively easy to understand is quinary (base-5), which uses the digits 0, 1, 2, 3 and 4.

This system is particularly interesting in that a quinary finger-counting scheme is still in use today by merchants in the Indian state of Maharashtra near Bombay.

Page 20: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Quinary (Base Five)

Page 21: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Binary (Base-2)

Base-2 number systems are called binary and use the digits 0 and 1.

As usual, each column in a binary number has a weight derived from the base, and each digit is combined with its column’s weight to determine the final value of the number

Page 22: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Binary (Base-2)

Page 23: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Binary (Base-2)

Although binary mathematics is fairly simple, humans tend to find it difficult at first because the numbers are inclined to be long and laborious to manipulate.

For example, the binary value 110100112 is relatively difficult to conceptualize, while its decimal equivalent of 211 is comparatively easy.

Page 24: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Binary (Base-2)

On the other hand, working in binary has its advantages. For example, if you can remember . .

. . . then you’ve just memorized the entire binary multiplication table!

Page 25: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Octal (Base-8) and Hexadecimal (Base-16)

Any number system having a base that is a power of two (2, 4, 8, 16, 32, etc.) can be easily mapped into its binary equivalent and vice versa.

For this reason, electronics engineers typically make use of either the octal (base-8) or hexadecimal (base-16) systems.

Page 26: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Octal (Base-8) and Hexadecimal (Base-16)

Each octal digit can be directly mapped onto three binary digits, and each hexadecimal digit can be directly mapped onto four binary digits

Page 27: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Octal (Base-8) and Hexadecimal (Base-16)

Page 28: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Representing Numbers Using Powers

Page 29: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Representing Numbers Using Powers

Page 30: Analog Versus Digital Kuliah Sistem Digital, Teknik Elektro UMY (Rahmat Adiprasetya)

Representing Numbers Using Powers