Académique Documents
Professionnel Documents
Culture Documents
Embedded system
Rapidly growing over the past couple of years. Embedded system envolve the miniaturization of electronics. It also deals with hardware required to derive the associated hardware. Many manufacturers are building their own embedded processors. Its main features are speed, accuracy and reliability. It use has been gradually expanded in to pc market.
Traditional use of the embedded technology. Greater use in new areas. Embedded in areas other than electronic devices. Embedded have a vast area applications.
In next five years the market for embedded system will reach over $300 billion. Market for embedded system in the area of mobile phones are open. Have a large applications in the area of transportation, entertainment , education home networking.
Microcontrollers are single chip computers. True computer on a chip. Specific purpose digital computers. It incorporates all the features of a microprocessor like ALU,PC,SP, Ram, Rom, Parallel I/O, Serial I/O, Counters, Clock Circuits, Adc etc
Microcontrollers
In 1981, Intel Corporation introduced an 8- bit microcontroller called the 8051. It was called as a System on chip. Intel refers to it as MCS-51.It is a 40-pin DIP.
Features of microcontroller
8-bit CPU with registers A (the accumulator) and B 16-bit program counter {PC} and data pointer {DPTR} 8-bit program status word {PSW} 8-bit stack pointer {SP} Internal ROM or EPROM {8751} of 0K {8031} to 4K {8051} Internal RAM of 128 bytes which comprises of:-. 4 register banks, each containing 8-registers.
16-bytes which may be addressed at bit level 80-bytes of general purpose data memory 32-I/O pins arranged as four 8-bit ports; P0-P3 Two 16-bit timer/ counter; T0 andT1 Full duplex serial data receiver/transmitter: SBUF Control registers TCON, TMOD, SCON, PCON, IP and IE Two external and three internal interrupt sources Oscillator and clock circuits
8051 REGISTERS
General purpose registers . Registers (R0-R7): Set of 8 auxiliary registers. These are 4 such banks in lower INTERNAL RAM. Program Counter And Data Pointer. A and B CPU resister .
6 5 4
2 1 0
RS0 0 1 0 1
Select register bank 0 Select register bank 1 Select register bank 2 Select register bank 3 used in arithmetic instructions
Internal Ram
The stack refers to an area of internal RAM that is used in conjunction with certain opcodes to store and retrieve data quickly. The 8 bit stack pointer register is used by the 8051 to hold an internal RAM address that is called The Top of Stack. The address held in the SP register is the location in the internal RAM where the last byte of data was stored by a stack operation.
TIMER/COUNTERS
The 80C51 has two 16-bit Timer/Counter registers: Timer 0 and Timer 1. Both can be configured to operate either as timers or event counters . The Timer or Counter function is selected by control bits C/T in the Special Function Register TMOD These two Timer/Counters have four operating modes, which are selected by bit-pairs (M1, M0) in TMOD.
TMOD Register