Chapter 5

Data Processing

Digital information consists of numerical or text data. Number systems use weighted values for each digit that is a power series of the base number. Bases 2 (binary), 10 (denary) and 16 (hexadecimal) are analysed here. Basic arithmetic operations are add and subtract, with multiply and divide based on these. Integer, 2s complement, floating point and BCD numerical types are described. ASCII code represents alphanumeric characters. A simple calculator program illustrates numerical processing and a memory expansion system is outlined.

Keywords

Number systems; denary (decimal); binary and hexadecimal numbers; 2s complement numbers; floating point numbers; Binary Coded Decimal (BCD); calculator application

Summary

• Digital ...

Get Interfacing PIC Microcontrollers, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.