Beruflich Dokumente
Kultur Dokumente
Microcontroller
• Microcontroller contains a microprocessor with I/O
Ports, minimum memory and programmable timer.
• Advantages of microcontroller
– As the peripherals are integrated into a single chip, the
overall system cost is very low and system is more
reliable.
– The size of the product is small as compared to the
microprocessor based systems thus very hands.
– The system design requires very little efforts and is easy
to troubleshoot and maintain.
– Though a microcontroller may have on-chip RAM, ROM
and I/O Ports, additional RAM,ROM and I/O Ports may be
interfaced externally, if required.
– The microcontroller with on-chip ROM provide a software
security feature which is not available with
microprocessor based systems using ROM/EPROM.
– All these features are available in a 40 pin package as in
an 8-bit processor.
• Microcontroller internal block diagram
o As a microcontroller contains most of the
components required to form a microprocessor
system, it is sometimes called a single chip
microcomputer.
o The earlier versions of Intel’s microcontroller do
not have on-chip EPROM.
o 8051 also do not have on-chip EPROM.
2. B-Register
This register is used to store one of the operands for multiply and
divide instructions. (In other instruction it is used as a scratch
pad.) This register is considered as a special function register.
4. SP-Stack Pointer
This 8-bit wide register is incremented before the data is stored
onto the stack using push or call instructions. This register
contains 8-bit stack top address.
Stack may be defined anywhere in the on-chip 128-byte RAM.
SP reg. initialized to 07. After each stack output it is incremented.
14. ALU
TMP1 & TMP2 holds the operands, users cannot access.
• ALE/PROG – ALE is valid only for external memory accesses. This pin
acts as program pulse input during on-chip EPROM programming. ALE
may be used for external timing and clocking purpose. One ALE pulse is
skipped during each access to external data memory. The ALE pin is used
for de-multiplexing the address and data by connecting to the G pin of the 74LS373 latch.
• EA – External Access Enable pin
– If it is low – indicates that the 8051 can address external program
memory.
– If it is high – indicates execution of programs in internal memory.
– This pin also receives 21 volts for programming of the on-chip
EPROM.