Академический Документы
Профессиональный Документы
Культура Документы
Data Formats
Chapt. 3
ITEC 1011 Introduction to Information Technologies
Introduction
• Examples
Real World Computer
Data Input device Data
Digital
10110010…
camera
pp. 59.-61
ITEC 1011 Introduction to Information Technologies
Format must be appropriate
• The internal representation must be
appropriate for the type of processing to
take place (e.g., text, images, sound)
pp. 61-62
ITEC 1011 Introduction to Information Technologies
Standards Organizations
• ISO – International Standards Organization
• CSA – Canadian Standards Association
• ANSI – American National Standards
Institute
• IEEE – Institute for Electrical and
Electronics Engineers
• Etc.
• ASCII
• EBCDIC
• Unicode
7 0 9 3
• EBCDIC
• Unicode
Hexadecimal code
ESC [
1B16 5B16
ITEC 1011 Introduction to Information Technologies
Examples
• Erase display: ESC [ 2 J
• Erase line: ESC [ K
• Unicode
http://www.unicode.org
ITEC 1011 Introduction to Information Technologies
Keyboard Input
• Key (“scan”) codes are converted to ASCII
• ASCII code sent to host computer
• Received by the host as a “stream” of data
• Stored in buffer
• Processed
• Etc.
pp. 69
ITEC 1011 Introduction to Information Technologies
Shift Key
• inhibits bit 5 in the ASCII code
ASCII code
Key(s) 6 5 4 3 2 1 0 Character
a 1 1 0 0 0 0 1 a
Shift a 1 0 0 0 0 0 1 A
c 1 1 0 0 0 1 1 c
Ctrl c 0 0 0 0 0 1 1 ETX
Control
code
ITEC 1011 Introduction to Information Technologies
Other Input
• OCR – optical character recognition
• Bar code readers
• Voice/audio input
• Punched cards
• Images / objects
• Pointing devices
pp. 69-86
ITEC 1011 Introduction to Information Technologies
OCR
Hello, world
Optical scan 10110110…
pp. 69-86
ITEC 1011 Introduction to Information Technologies
Bar Codes
• An automatic identification (Auto ID)
technology that streamlines identification
and data collection
• See
http://www.digital.net/barcoder/barcode.html
pp. 69-86
ITEC 1011 Introduction to Information Technologies
Voice/audio Input
• Input device: microphone
• Audio input is “digitized” and stored
• Processed in two ways
– As is (no recognition)
– Recognized and converted to alphanumeric data
(ASCII)
Digitize 10110010…
pp. 69-86
ITEC 1011 Introduction to Information Technologies
Punched Cards
• Invented by Herman Hollerith (founder of
IBM)
• Each card holds 80 characters
pp. 69-86
ITEC 1011 Introduction to Information Technologies
Images
• Typically images are pictures that are
optically scanned and saved as a “bit map”
or in some other format
• Many formats
– gif, jpeg, …
pp. 69-86
ITEC 1011 Introduction to Information Technologies
Pointing Devices
• Originally used for specifying coordinates
(x, y) for graphical input
• Today used as general purpose device for
“graphical user interfaces” (GUIs)