Professional Documents
Culture Documents
A Microcontroller is a programmable digital processor with necessary peripherals. Both microcontrollers and
microprocessors are complex sequential digital circuits meant to carry out job according to the program / instructions.
Sometimes analog input/output interface makes a part of microcontroller circuit of mixed mode(both analog and digital
nature).
A microcontroller can be compared to a Swiss knife with multiple functions incorporated in the same IC.
Microcontrollers Vs Microprocessors
1.
2.
3.
4.
A microprocessor requires an external memory for program/data storage. Instruction execution requires
movement of data from the external memory to the microprocessor or vice versa. Usually, microprocessors
have good computing power and they have higher clock speed to facilitate faster computation.
A microcontroller has required on-chip memory with associated peripherals. A microcontroller can be thought
of a microprocessor with inbuilt peripherals.
A microcontroller does not require much additional interfacing ICs for operation and it functions as a stand
alone system. The operation of a microcontroller is multipurpose, just like a Swiss knife.
Microcontrollers are also called embedded controllers. A microcontroller clock speed is limited only to a few
tens of MHz. Microcontrollers are numerous and many of them are application specific.
Interrupts
8051 provides 5 vectored interrupts. They are 1.
2.
3.
4.
5.
TF0
TF1
RI/TI
Out of these,
and
are external interrupts whereas Timer and Serial port interrupts are generated internally.
The external interrupts could be negative edge triggered or low level triggered. All these interrupt, when activated, set
the corresponding interrupt flags. Except for serial interrupt, the interrupt flags are cleared when the processor
branches to the Interrupt Service Routine (ISR). The external interrupt flags are cleared on branching to Interrupt
Service Routine (ISR), provided the interrupt is negative edge triggered. For low level triggered external interrupt as
well as for serial interrupt, the corresponding flags have to be cleared by software by the programmer.
The schematic representation of the interrupts is as follows Interrupt
Vector Location
POSTPROCESSOR
The large amount of data is generated in the solution phase (several thousand of nodal values in
complex problems). These are often too much to be understood without further processing. The post
processor presents the output of the problem in a manner which is easily understood and interpreted
by the user.
The postprocessor performs two tasks:
(i) Extraction of significant information: The information may be related to local quantities (magnetic
flux density, stress distribution) or global quantities (heat flux, electromagnetic forces, etc.).
(ii) Synthetic presentation of the numerical data via graphics facilities: This makes the data more
understandable and easier to interpret (stress plots, displacement plots, isothermal plots, temperature
Vs time curves, magnetic field along a line, etc.).