Educypediathe educational encyclopedia
Electronics-theory
Analog
Audio - acoustics
Audio - electronics
Audio - loudspeakers
Components-active
Components-passive
Component - sensors
Digital - electronics
Digital - I2C - I2S
Digital - Programming
Electricity High Voltage
Electricity - machines
Electricity - theory
General overview
Miscellaneous
Optics
Power control systems
Power electronics
RF - antennas
RF - antenna - WLAN
RF - communication
RF - radio - tuning
Telephony
Tubes
TV-video-DVD
 
Utilities - tools
Animations & applets
Application notes
Cabling
Calculators
Circuits
Databank - tables
Datasheets
Measurement
Repair
Software - electronics
 
Local sitemap
Sitemap
 

7 Segment Display


  
 

Number systems and codes

Digital systems represent every quantity as a pattern of bits, so the way numbers and symbols are encoded is fundamental to their design. The binary system uses base two, while octal (base eight) and hexadecimal (base sixteen) are compact shorthands that group bits for easier reading. In a weighted binary system each bit position carries a fixed value; the ordinary 8421 weighting is the most common, and it forms the basis of binary-coded decimal (BCD), where each decimal digit is stored in its own group of four bits.

Beyond simple weighted codes there are codes chosen for special properties. The Excess-3 code is a self-complementing variant of BCD that simplifies decimal arithmetic. The Gray code is arranged so that successive values differ by only one bit, which reduces errors in position encoders and switching circuits where several bits might otherwise change at once. Text is handled by character codes: ASCII assigns numbers to letters, digits and control characters, and the older EBCDIC code served the same purpose on some mainframes.

Because storage and transmission can introduce errors, codes are often given redundancy. A simple parity bit detects single-bit errors, while the Hamming code adds several check bits placed so that the position of a faulty bit can be identified and corrected. Real numbers with very large or very small magnitudes are stored in floating-point form, separating a number into a sign, a fractional part and an exponent so that a wide range of values fits in a fixed number of bits.

Frequently asked questions

What makes Gray code useful?
Only one bit changes between consecutive values, so devices such as rotary encoders avoid the large errors that can occur when several bits switch at the same instant.
How does BCD differ from plain binary?
BCD stores each decimal digit separately in four bits, which makes decimal display and arithmetic straightforward but uses more bits than a pure binary number.
What does a Hamming code add over a parity bit?
A single parity bit only detects an error; a Hamming code uses several check bits so the exact position of a wrong bit can be found and corrected.





Number systems and codes  related topic: Science symbols and codes
ASCII and EBCDIC compared
ASCII-EBCDIC Chart ASCII = American National Standard Code for Information Interchange, EBCDIC = Extended Binary Coded Decimal Interchange Code
ASCII-code pdf file
Ascii vs binary files
Binary numbers binary numbers, decimal numbers, positive and negative integers, floating point numbers, hexadecimal numbers, signed binary integers, two's complement
Binary numbers
Binary numbers binary numbers, the basics, pdf file
Binary number system the Binary number system explained
Bits, bytes, and nybbles bits, bytes, and nybbles
Character Sets And Code Pages At The Push Of A Button Here you can find character set and code page information from software vendors (Microsoft, HP, IBM, Sun, etc.) and international standards organizations (e.g. ISO, ECMA, INCITS, etc.)
Codes en codeomvormers in Dutch
Data compression pdf file
Digital number systems digital number systems, decimal system, binary system, octal system, hexadecimal system, binary to decimal conversion, decimal to binary conversion, binary to octal / octal to binary conversion, hexadecimal to decimal / decimal to hexadecimal conversion, octal to hexadecimal hexadecimal to octal conversion, weighted binary systems, 8421 Code/BCD code, Excess-3 code , Gray code, error detecting and correction codes, Hamming code, ASCII code, EBCDIC code, floating point numbers, ...
Gray code BCD code, Gray code, pdf file
Gray code Optical encoder wheel generator
Gray code Binary to Gray Code Generator, pdf file
Gray code The term “Gray code” is sometimes used to refer to any single-distance code, that is, one in which adjacent code words differ by 1 in one digit position only, pdf file
Gray code generator Gray Code Counter Generator
Gray code How to understand and use Gray code
How to Convert To Base 10
LED's en 7-segment displays in Dutch
Morse code
Morse Code Translator Translate text to Morse Code
Viterbi algorithm Viterbi algorithm explained
Error Detection and Correction  related topic: Datacommunication and Error Detection-Correction
BCH code
BCH code Linear and Cyclic Codes, Finite Fields, Minimal Polynomials, The Vandermonde Matrix, Cyclic Bounds, BCH Codes
Convolutional code In telecommunication, a convolutional code is a type of error-correcting code in which (a) each m-bit information symbol (each m-bit string) to be encoded is transformed into an n-bit symbol, ...
CRC berekeningen in Dutch
CRC calculator
CRC primer This document explains CRCs (Cyclic Redundancy Codes) and their table-driven implementations in full, precise detail
Cyclic codes pdf file
Cyclic codes, and the CRC (cyclic redundancy check) code Cyclic codes, and the CRC (cyclic redundancy check) code, pdf file
Cyclic redundancy check
Error Correction pdf file
Error Correction and the Hamming Code
Error Detection and Correction Using the BCH Code pdf file
Foutdetectie Hamming code, in Dutch, pdf file
Foutdetectie Hamming code, CRC check, in Dutch, pdf file
Hamming code
Hamming code
Hamming code calculating the Hamming Code
Hamming code explained given a 7-bits information word a 11-bit Hamming Code Word is generated and it demonstrates the single bit error correction capability of the code
Hamming Codes pdf file
Notes on Coding Theory Sphere Packing and Shannon's Theorem, Linear Codes, Hamming Codes, Reed-Solomon Codes, Cyclic Codes
Protocols and Error Detection/Correction
Reed Solomon code Reed–Solomon error correction, Reed-Solomon error correction works by oversampling a polynomial constructed from the data, pdf file
Reed-Solomon Codes
Reed-Solomon Codes and CD Encoding
Vertibi code Vertibi code, pdf file

Home | Site Map | Email: support[at]karadimov.info

Last updated on: 2026-06-24 | Copyright © 2011-2021 Educypedia.

https://educypedia.org

 

 

 

 

 
Powered by ITCom Solutions