SlideShare a Scribd company logo
Contents


• Introduction to Digital Electronics
• Number Systems and Codes
• Algorithm Representation in Pseudocode
Introduction to Digital Electronics
Physical System
Physical System: control of a boiler
Physical System: control of a boiler
Physical System: control of a boiler
Physical System: control of a boiler
Signals such as pos and temp that can take any
value within a continuous (and thus infinite) set
of values, are called …
ANALOG SIGNALS
Signals such as onoff whose values belong
to a finite set (in this case a 2-element set),
are called…
DIGITAL SIGNALS
Analog vs Digital




Analog Electronics:
An Analog signal is any continuous signal
for which the time varying feature
(variable) of the signal is a representation
of some other time varying quantity, i.e.,
analogous to another time varying signal.
It differs from a digital signal in terms of
small fluctuations in the signal which are
meaningful.
Digital Electronics:
A digital signal uses discrete
(discontinuous) values. By contrast, non-
digital (or analog) systems use a
continuous range of values to represent
information. Although digital
representations are discrete, the
information represented can be either
discrete, such as numbers or letters, or
continuous, such as sounds, images, and
other measurements of continuous
systems.
Lect1.pptx. This is one of make presentation.
Number Systems and Codes
Computer Information Representation
Numeration System
Most used systems:



• Decimal system
• Binary system
• Octal system
• Hexadecimal system
Conversion methods will be presented..
Decimal System
Binary System
Exercise
Compute the decimal representation of the
following binary numbers:
a. 11012
b. 110102
c. 1010012
Exercise
Solution for c. 1010012
Binary System: representation range
Binary System: representation range
Hexadecimal System
Base conversion (Hex Binary)
Exercise
Exercise (Solution)
Base Conversion (Decimal to Binary)
Exercise
Find Binary Representation of following numbers
a) 4310
b) 5710
Summary


Computer information representation.
Numeration systems (decimal, binary,
hexadecimal).
Pure binary system and representation range.
Base conversion.


Codes

Codes are symbols or group of symbols used to
represent numbers, letters or words.
Morse Code
Morse code uses short and long signals, called
dots and dashes, to represent letters and
numbers. Samuel Morse, an American
scientist, helped developed it to send
messages over long distances using wires,
radios, sound, or light. Messages are sent by
tapping, drumming, buzzing, clicking, or
flashing light.
Binary Coded Decimal Numbers
(BCD)

Binary-coded Decimal or BCD is a way of representing a decimal number as a string
of bits suitable for use in electronic systems. Rather than converting the whole number
into binary, BCD splits the number up into its digits and converts each digit to 4-bit
binary.
BCD was used in some of
the early decimal
computers, and the IBM
System/360 series systems.
Binary Coded Decimal Numbers (BCD)


What is the BCD value for 10?
10 (1+0) = 0001 0000

Question: write BCD values for 12, 19 and 21.
Binary Coded Decimal Numbers (BCD)

Convert(185)10 into BCD and Binary.
Advantages
It can easily be used to drive
displays, as each digit is encoded
separately.
Disadvantages
It is difficult to perform arithmetic
operations (such as adding) on BCD
numbers, as it is not as easy to
recognize carries, etc.
It allows easy conversion to decimal; It is longer than true binary, and so
true binary to decimal conversion is
difficult and gets increasingly
difficult as the number gets longer.
It allows easy scaling by factors of 10
require more storage space.
ASCII Character Code

ASCII is an acronym for American Standard Code for
Information Interchange.
It is a code that uses numbers to represent characters. Each
letter is assigned a number between 0 and 127. A upper and
lower case character are assigned different numbers.
For example the character A is assigned the decimal
number 65, while a is assigned decimal 97.

Lect1.pptx. This is one of make presentation.
Lect1.pptx. This is one of make presentation.
Lect1.pptx. This is one of make presentation.
ASCII Character Code
1. What does ASCII stand for?
a) American Standard Code for Information Interchange
b) American Scientific Code for Information Interchange
c) American Scientific Code for Interchanging Information
d) American Standard Code for Interchanging Information
2. The decimal representation for the character ‘!’ in ASCII is,
a) 31 b) 32 c) 33 d) 34
3. Binary Coding for the letter X is,
a) 01011000
c) 10001000
b) 00111000
d) 00010100
When is ASCII code used?

When a computer sends data the keys you press or the text you send and
receive is sent as a bunch of numbers. These numbers represent the
characters you typed or generated. Because the range of standard ASCII is 0
to 127 it only requires 7 bits or 1 byte of data. For example to send the string
cactus.io as ASCII it would translate to 99 97 99 116 117 115 46 105 111.
Microprocessors only understand bits and bytes. To it everything is a
sequence of bits.

Summary




• Introduction to digital electronics.
• Conversion of numbers; binary to decimal.
• Familiarization with BCD.
• Discussion on ASCII and it’s usage with
practical examples.
ALGORITHM REPRESENTATION
IN PSEUDOCODE
Algorithm representation: pseudocode

• Sequence of operations whose objective is the solution of
some problem such as: complex computation, control of some
process, etc.
• The result of the algorithm execution must be independent of
the chosen type of representation.
• Some common representation methods are: natural language,
pseudocode, flow diagrams and programming languages.


Algorithm
Algorithm representation: pseudocode



 Natural language sentences,
 Programming language instructions,
 Key words that define basic structures
Pseudocode
Similar to programming language but more informal. It uses a mix of
Operations and control structures
Assignments and types of operators
Assignments and types of operators
Control structures
Control structures
Control structures
Control structures
Control structures
Control structures

More Related Content

PPTX
DE and LD [Autosave gyideffgfd] (1).pptx
PPTX
analog ppt on diffderent types of codes.pptx
PPTX
Introduction to Computer Logical Organization
PPT
Conclusion in this titty tittle 106_1.ppt
PPT
PDF
Digital base band modulation
PPTX
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
PPTX
Digital electronics-Introduction.pptx
DE and LD [Autosave gyideffgfd] (1).pptx
analog ppt on diffderent types of codes.pptx
Introduction to Computer Logical Organization
Conclusion in this titty tittle 106_1.ppt
Digital base band modulation
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
Digital electronics-Introduction.pptx

Similar to Lect1.pptx. This is one of make presentation. (20)

PPTX
DIGITAL-ELECTRONICS-lesson-1 (1).jejsjjsjs
PPTX
Data-and-Number-Representations CSE 101.pptx
PPTX
GhahahhayuwuauuuwuwuwuwuuaChapter No 1.pptx
PPTX
GhshshshshsshhshshshshhshshshshChap1.pptx
PPT
Digital Communications 1167236_634502156284084624.ppt
PPT
Digital Communication Lecture module - 1
PDF
Number System and conversion in Electronics.pdf
PPT
Digital Logic Design Lecture Notes 1.ppt
PDF
CODES_2.elictronicjajajajsjjsjdjdjcjdjjsksjs
PPTX
Digital Concept - Introduction to electronics
PPTX
Digital Communication Techniques
PPT
digital-communication-lecture-1 (1).ppt
PDF
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
PPTX
Chapter_Three.pptx of digital component design
PPTX
Chapter 1.pptx
PPTX
Lecture 1& 2.pptx
PPTX
chapter 1.pptx
PDF
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
PPT
Data Representation
PPTX
Codes r005
DIGITAL-ELECTRONICS-lesson-1 (1).jejsjjsjs
Data-and-Number-Representations CSE 101.pptx
GhahahhayuwuauuuwuwuwuwuuaChapter No 1.pptx
GhshshshshsshhshshshshhshshshshChap1.pptx
Digital Communications 1167236_634502156284084624.ppt
Digital Communication Lecture module - 1
Number System and conversion in Electronics.pdf
Digital Logic Design Lecture Notes 1.ppt
CODES_2.elictronicjajajajsjjsjdjdjcjdjjsksjs
Digital Concept - Introduction to electronics
Digital Communication Techniques
digital-communication-lecture-1 (1).ppt
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
Chapter_Three.pptx of digital component design
Chapter 1.pptx
Lecture 1& 2.pptx
chapter 1.pptx
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Data Representation
Codes r005
Ad

Recently uploaded (20)

PPTX
rapid fire quiz in your house is your india.pptx
PPTX
Special finishes, classification and types, explanation
PDF
BRANDBOOK-Presidential Award Scheme-Kenya-2023
PPTX
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
PDF
Urban Design Final Project-Site Analysis
PPTX
building Planning Overview for step wise design.pptx
PDF
The Advantages of Working With a Design-Build Studio
PDF
Interior Structure and Construction A1 NGYANQI
PPTX
areprosthodontics and orthodonticsa text.pptx
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
PDF
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
PDF
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
PPTX
Media And Information Literacy for Grade 12
PPT
pump pump is a mechanism that is used to transfer a liquid from one place to ...
PPTX
An introduction to AI in research and reference management
PPT
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PDF
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
PDF
Quality Control Management for RMG, Level- 4, Certificate
rapid fire quiz in your house is your india.pptx
Special finishes, classification and types, explanation
BRANDBOOK-Presidential Award Scheme-Kenya-2023
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
Urban Design Final Project-Site Analysis
building Planning Overview for step wise design.pptx
The Advantages of Working With a Design-Build Studio
Interior Structure and Construction A1 NGYANQI
areprosthodontics and orthodonticsa text.pptx
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
Media And Information Literacy for Grade 12
pump pump is a mechanism that is used to transfer a liquid from one place to ...
An introduction to AI in research and reference management
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
Quality Control Management for RMG, Level- 4, Certificate
Ad

Lect1.pptx. This is one of make presentation.

  • 1. Contents   • Introduction to Digital Electronics • Number Systems and Codes • Algorithm Representation in Pseudocode
  • 8. Signals such as pos and temp that can take any value within a continuous (and thus infinite) set of values, are called … ANALOG SIGNALS Signals such as onoff whose values belong to a finite set (in this case a 2-element set), are called… DIGITAL SIGNALS
  • 9. Analog vs Digital     Analog Electronics: An Analog signal is any continuous signal for which the time varying feature (variable) of the signal is a representation of some other time varying quantity, i.e., analogous to another time varying signal. It differs from a digital signal in terms of small fluctuations in the signal which are meaningful. Digital Electronics: A digital signal uses discrete (discontinuous) values. By contrast, non- digital (or analog) systems use a continuous range of values to represent information. Although digital representations are discrete, the information represented can be either discrete, such as numbers or letters, or continuous, such as sounds, images, and other measurements of continuous systems.
  • 13. Numeration System Most used systems:    • Decimal system • Binary system • Octal system • Hexadecimal system Conversion methods will be presented..
  • 16. Exercise Compute the decimal representation of the following binary numbers: a. 11012 b. 110102 c. 1010012
  • 25. Exercise Find Binary Representation of following numbers a) 4310 b) 5710
  • 26. Summary   Computer information representation. Numeration systems (decimal, binary, hexadecimal). Pure binary system and representation range. Base conversion.  
  • 27. Codes  Codes are symbols or group of symbols used to represent numbers, letters or words.
  • 28. Morse Code Morse code uses short and long signals, called dots and dashes, to represent letters and numbers. Samuel Morse, an American scientist, helped developed it to send messages over long distances using wires, radios, sound, or light. Messages are sent by tapping, drumming, buzzing, clicking, or flashing light.
  • 29. Binary Coded Decimal Numbers (BCD)  Binary-coded Decimal or BCD is a way of representing a decimal number as a string of bits suitable for use in electronic systems. Rather than converting the whole number into binary, BCD splits the number up into its digits and converts each digit to 4-bit binary. BCD was used in some of the early decimal computers, and the IBM System/360 series systems.
  • 30. Binary Coded Decimal Numbers (BCD)   What is the BCD value for 10? 10 (1+0) = 0001 0000  Question: write BCD values for 12, 19 and 21.
  • 31. Binary Coded Decimal Numbers (BCD)  Convert(185)10 into BCD and Binary. Advantages It can easily be used to drive displays, as each digit is encoded separately. Disadvantages It is difficult to perform arithmetic operations (such as adding) on BCD numbers, as it is not as easy to recognize carries, etc. It allows easy conversion to decimal; It is longer than true binary, and so true binary to decimal conversion is difficult and gets increasingly difficult as the number gets longer. It allows easy scaling by factors of 10 require more storage space.
  • 32. ASCII Character Code  ASCII is an acronym for American Standard Code for Information Interchange. It is a code that uses numbers to represent characters. Each letter is assigned a number between 0 and 127. A upper and lower case character are assigned different numbers. For example the character A is assigned the decimal number 65, while a is assigned decimal 97. 
  • 36. ASCII Character Code 1. What does ASCII stand for? a) American Standard Code for Information Interchange b) American Scientific Code for Information Interchange c) American Scientific Code for Interchanging Information d) American Standard Code for Interchanging Information 2. The decimal representation for the character ‘!’ in ASCII is, a) 31 b) 32 c) 33 d) 34 3. Binary Coding for the letter X is, a) 01011000 c) 10001000 b) 00111000 d) 00010100
  • 37. When is ASCII code used?  When a computer sends data the keys you press or the text you send and receive is sent as a bunch of numbers. These numbers represent the characters you typed or generated. Because the range of standard ASCII is 0 to 127 it only requires 7 bits or 1 byte of data. For example to send the string cactus.io as ASCII it would translate to 99 97 99 116 117 115 46 105 111. Microprocessors only understand bits and bytes. To it everything is a sequence of bits. 
  • 38. Summary     • Introduction to digital electronics. • Conversion of numbers; binary to decimal. • Familiarization with BCD. • Discussion on ASCII and it’s usage with practical examples.
  • 40. Algorithm representation: pseudocode  • Sequence of operations whose objective is the solution of some problem such as: complex computation, control of some process, etc. • The result of the algorithm execution must be independent of the chosen type of representation. • Some common representation methods are: natural language, pseudocode, flow diagrams and programming languages.   Algorithm
  • 41. Algorithm representation: pseudocode     Natural language sentences,  Programming language instructions,  Key words that define basic structures Pseudocode Similar to programming language but more informal. It uses a mix of
  • 43. Assignments and types of operators
  • 44. Assignments and types of operators