Lect1.pptx. This is one of make presentation.

chaminifernando087 13 views 50 slides Sep 20, 2024
Slide 1
Slide 1 of 50
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50

About This Presentation

This is a make presentation.


Slide Content

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.

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: 1101 2 11010 2 101001 2

Exercise Solution for c. 101001 2

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 43 10 57 10

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 i nto 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 A merican S tandard C ode for I nformation I nterchange. 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 . 

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 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
Tags