Download presentation
Presentation is loading. Please wait.
Published byGeorge Turner Modified over 9 years ago
1
How many computers do you have?
2
All digital electronics use computers. Computer CD & DVD players IPod Cell phone HDTV Digital cameras
3
What industry is the biggest user of computers? Car may have over 50 computers
4
What are the main parts of a computer?
5
Computers hold a collection of numbers. Computers store and manipulate numbers.
6
What do we mean by digital? What are examples of analog processes or systems? Sound, water flow, electric power, role a tire. What are examples of digital processes or systems? Walk, light switch (except dimmer), pregnant.
7
Why do computers use binary numbers? Binary numbers are easy to represent electrically. on / off like a light switch Binary numbers are accurate. Binary numbers can be transmitted accurately. Binary numbers are easily manipulated. math & logic 3V? 1V, 1V 2 1 2 0
8
How does a computer handle information? Look at word processing as an example. As you type a word, every character is stored as a number, including spaces, digits, and punctuation. Upper and lower case letters are separate characters. H i, H e a t h e r. 72 105 44 32 72 101 97 116 104 101 114 46
9
ASCII code
10
How are numbers stored? Computers use binary numbers. Binary numbers use bits, each representing a power of 2.
11
How high can you count on one hand? To five using decimal system.
12
You can count to 31 with binary system. 0 12 3 4 2 0 = 1 2 1 = 2 2 2 = 4 2 3 = 8 2 4 = 16 1 +2 +4 +8 +16 31
13
Convert the following numbers: 10101101 to decimal number. 173 93 to binary number (using 8 bits). 01011101
14
Numbers are stored in memory. Main memory is divided into many memory locations (or cells) 9278 9279 9280 9281 9282 9283 9284 9285 9286 Each memory cell has a numeric address, which uniquely identifies it
15
Storing Information 9278 9279 9280 9281 9282 9283 9284 9285 9286 Large values are stored in consecutive memory locations10011010 Each memory cell stores a set number of bits (usually 8, 16 or 32 bits)
16
Music is also converted to numbers. CD music may be encoded as 44.1 kHz, 705.6 kbps. The music is 'sliced' 44,100 times a second. The rate determines how many bits can be filled per second. 16 bits means the height range is 65,536 different values for each sample. The finer the grid, the better the digital representation.
17
To recreate an analog signal, need good digitization. Data compression, like MP3, reduces the bit rate.
18
Almost any operation can be broken down into a series of yes/no decisions.
19
Digital electronics make logic decisions. A fire alarm sounds if it senses heat or smoke. You can go to the movie if you have $10 and if you can find a ride to the theater. People can vote if they are a citizen, are 18 and are registered.
20
How does a computer handle this? A fire alarm sounds if it senses heat or smoke. Two conditions - heat OR smoke. One action - sound the alarm yes = 1 no = 0
21
Truth table for going to a movie. You can go to the movie if you have $10 and you have a ride. Two conditions - $10 AND ride. One action – see movie
22
Make a truth table for voting. People can vote if they are a citizen, are 18 and are registered.
23
Make a truth table for going to a movie. You can go to the PG movie if you have $10 and if you are over 18 or accompanied by a parent.
24
Toxic Waste Incinerator The intense heat of the fire is neutralizes the toxicity of the waste introduced into the incinerator. Suppose we were given the task of designing a flame detection circuit for a toxic waste incinerator. So long as a flame is maintained in the incinerator, it is safe to inject waste into it to be neutralized.
25
Write truth table for safe operation. Failure of a single sensor does not lead to an emission of toxins out the exhaust. Action = open valve Condition = 3 sensors on
26
Write truth table for safe but economical operation. Want at least two sensors showing flame to open waste valve. Action = open valve Condition = 2 sensors on
27
But need to add a check for bad sensors. Do all sensors agree? Add a second output to show sensor agreement.
28
Homework - Write Truth Tables for toy car. You will design a simple digital circuit to make a toy car follow a flashlight. The car has three light sensors looking right, center, and left. The car has two motors to drive the right and left wheels. Make a truth table with three inputs and two outputs, as shown below. (Please use these columns to simplify troubleshooting.)
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.