CSCB58H3 Lecture Notes - Lecture 2: Ascii, Binary Number, Truth Table
Document Summary
What is a computer anyway: machine we tell what to do. A computer is a programmable machine that receives input, stores and manipulates data/information, and provides output in a useful format. : input, output. Analog vs. digital vs. discrete: analog, representing information as a real value number, digital. Example: voltage plugs: representing information as 2 values 0 and 1. Example: 0 volts, + voltage: discrete, representing information as integer values. Example: 0, 1, 2, , n. Notes: we store information in digital computer through capacitor. Binary to decimal conversion: each binary digit corresponds to a power of 2, example: 6 bit binary number. 32 16 8 4 2 1 - value of each bit. 0 1 1 0 1 0 = 16 + 8 + 2 = 26 in decimal. Decimal to binary conversion: example: 6 binary digits. 0010: several standard encodings exist, ascii american standard code for information interchange, represents characters, numbers, symbols with numbers from 0 to 255.