Студопедия

КАТЕГОРИИ:


Архитектура-(3434)Астрономия-(809)Биология-(7483)Биотехнологии-(1457)Военное дело-(14632)Высокие технологии-(1363)География-(913)Геология-(1438)Государство-(451)Демография-(1065)Дом-(47672)Журналистика и СМИ-(912)Изобретательство-(14524)Иностранные языки-(4268)Информатика-(17799)Искусство-(1338)История-(13644)Компьютеры-(11121)Косметика-(55)Кулинария-(373)Культура-(8427)Лингвистика-(374)Литература-(1642)Маркетинг-(23702)Математика-(16968)Машиностроение-(1700)Медицина-(12668)Менеджмент-(24684)Механика-(15423)Науковедение-(506)Образование-(11852)Охрана труда-(3308)Педагогика-(5571)Полиграфия-(1312)Политика-(7869)Право-(5454)Приборостроение-(1369)Программирование-(2801)Производство-(97182)Промышленность-(8706)Психология-(18388)Религия-(3217)Связь-(10668)Сельское хозяйство-(299)Социология-(6455)Спорт-(42831)Строительство-(4793)Торговля-(5050)Транспорт-(2929)Туризм-(1568)Физика-(3942)Философия-(17015)Финансы-(26596)Химия-(22929)Экология-(12095)Экономика-(9961)Электроника-(8441)Электротехника-(4623)Энергетика-(12629)Юриспруденция-(1492)Ядерная техника-(1748)

Digital Codes




Processing: Digital Data

Modern computers are digital, that is, all info is stored as a string of zeros or ones - off or on. All the thinking in the computer is done by manipulating these digits. The concept is simple, but working it all out gets complicated.

1 bit = one on or off position
1 byte = 8 bits

So 1 byte can be one of 256 possible combinations of 0 and 1.
Numbers written with just 0 and 1, are called binary numbers.

Each 1 is a power of 2 so that the digits in the figure represent the number:

= 2 7 + 0 + 2 5 + 0 + 2 3 + 2 2 + 0 +0

= 128 +0 +32 + 0 + 8 + 4 + 0 + 0

= 172

Every command and every input is converted into digital data, a string of 0's and 1's.

For more information on binary numbers, see Base Arithmetic.

All letters, numbers, and symbols are assigned code values of 1's and 0's. A number of different digital coding schemes are used by digital devices.

Three common code sets are:
ASCII (used in UNIX and DOS/Windows-based computers)
EBCDIC (for IBM System 390 main frames)
Unicode (for Windows NT and recent browsers)

The ASCII code set uses 7 bits per character, allowing 128 different characters. This is enough for the English alphabet in upper case and lower case, the symbols on a regular English typewriter, and some combinations reserved for internal use.

An extended ASCII code set uses 8 bits per character, which adds another 128 possible characters. This larger code set allows for foreign languages symbols like letters with accents and several graphical symbols.

ASCII has been superseded by other coding schemes in modern computing. But it is still used for transferring plain text data between different programs or computers that use different coding schemes.

If you're curious to see the table of ASCII and EBCDIC codes, see Character Codes.

Unicode uses 16 bits per character, so it takes twice the storage space that ASCII coding, for example, would take for the same characters. But Unicode can handle many more characters. The goal of Unicode is to represent every element used in every script for writing every language on the planet. Whew! Quite a task!

Version 5 of Unicode has codes for over 107,000 characters instead of the wimpy few hundred for ASCII and EBCDIC. Ninety different scripts can be displayed with Unicode (if your computer has the font needed), including special punctuation and symbols for math and geometry. (Some languages have more than one script like Japanese, which uses three scripts: Kanji, Hiragana, and Katakana.) English and the European languages like Spanish, French, and German use the Latin script. Cyrillic is used several languages including Russian, Bulgarian, and Serbian.

At the Unicode site you can view sections of the Unicode code charts . The complete list is far too long to put on one page! Click on the name of a script (red letters on gray) to see a PDF chart of the characters. View the charts for scripts you never heard of.




Поделиться с друзьями:


Дата добавления: 2014-12-23; Просмотров: 658; Нарушение авторских прав?; Мы поможем в написании вашей работы!


Нам важно ваше мнение! Был ли полезен опубликованный материал? Да | Нет



studopedia.su - Студопедия (2013 - 2024) год. Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав! Последнее добавление




Генерация страницы за: 0.011 сек.