29 January, 2012

Introduction to 8051 assembly programming

CPU works only in binary. It can do so at very high speed. For humans, however, it is quite tedious and slow to deal with 0s and 1s in order to program the computer. A program that consists of 0s and 1s is called machine language. In the early days of the computer, programmers coded programs in machine languageRead More

29 January, 2012

Embedded Systems introduction

Embedded system is a special purpose computer system, which is designed to perform a specific task. Embedding means dumping software into a hardware, that’s why embedded system is called as combination of software and hardware. Embedded systems are controlled by one or more main processing cores that are typically either microcontrollers or DSPs and even other powerful processors.Read More

29 January, 2012

Structure of assembly language

An assembly language program consists of, a series of lines of assembly language instructions. An assembly language instruction consists of a mnemonic, optionally followed by one or two operands. The operands are the data items being manipulated, and the mnemonics are commands to the CPU, telling it what to do with those items. Read More

29 January, 2012

Data types and Directives in 8051

The 8051 microcontroller has only one data type. It is 8-bits, and the size of the each register is also 8 bits. It is the job of the programmer to break down data larger than 8 bits (00 to FFH, or 0 to 255 in decimal) to be processed by the CPU. The data types used by the 8051 can be positive or negative. Read More

29 January, 2012

Assembling and running 8051 program

Steps to create an assembly language executable program: First we use editor to type in a program. Notice that editor must be able to produce an ASCII file. For many assemblers, the file names follow the usual DOS conventions, but the source file has the extension “asm” or “src” depending on which assembler you are using. Read More