MP Unit 6 Oneshot
MP Unit 6 Oneshot
MP Unit 6 Oneshot
Micro Processor
ONE SHOT Unit 6
1
03-02-2024
Hardware Interrupts
• In this type of interrupt, physical pins are provided in the chip.
This interrupts are generated by changing the logiclevels on
the 80386's interrupt pins. 80386 has two interrupt pins:
1. NMI (Non Maskable Interrupt)
2. INTR
2
03-02-2024
Software Interrupts
• A program can generate a software interrupt via an INT“N”
instruction, the processor treats software interrupts as
exceptions. For example INT0 instruction can be used to
send execution to a divide by zero interrupt service routine.
• With the help of these software interrupts we can call the
routines from different programs in the system. For example:
BIOS.
Exceptions:
• Internally generated errors produce an interrupt for
microprocessor referred as “Exception" by the engineers.
• Every interrupt is assigned a type code" that identifies it to the
CPU.
• There could be two sources for exceptions:
1. Processor detected: These are further classified as faults, traps, and
aborts.
2. Programmed: The instructions INT0, INT 3, INT n, and BOUND can
trigger exceptions. These instructions are often called "software
interrupts", but the processor handles them as exceptions.
• The NMI and the exceptions recognized by the processor are
assigned predetermined identifiers in the range 0 through 31.
• The identifiers of the maskable interrupts are determined by
external interrupt controllers and communicated to the processor
during the processor's interrupt-acknowledge sequence.
3
03-02-2024
Exception Conditions
• Exceptions are classified as:
• Faults are exceptions that are detected and serviced before the
execution of the faulting instruction. A fault would occur in a
virtual memory system, when the processor referenced a page or
a segment which was not present. The operating system would
fetch the page or segment from disk, and then the 80386 would
restart the instruction.
• Traps are exceptions that are reported immediately after the
execution of the instruction which caused the problem. User
defined interrupts are examples of traps. Instruction is not
restarted
• Aborts are exceptions which do not permit the precise location
of the instruction causing the exception to be determined. Aborts
are used to report severe errors, such as a hardware error, or
illegal values in system tables. Program is terminated
4
03-02-2024
5
03-02-2024
6
03-02-2024
Data and programs are stored in same memory Data and program memory are separate.
Most of them do not have power saving features. Most of them Offer power-saving mode.
High Processing capability Low processing capability
uP is designed to perform general-purpose uC is designed for specific applications
computing tasks.
requires additional components like memory, I/O has all the necessary peripherals and
devices and other peripherals memory integrated into a single chip.
7
03-02-2024
8
03-02-2024
Characteristics of microcontrollers
• It is impossible to connect anything to the pins of the
microcontroller without knowing the input current requirement
for an input pin and the output current drive capability for an
output pin.
• Input Characteristics : The input characteristics of these
microcontrollers are compatible with all the standard logic
components available today. The input current levels are very
small because the inputs are the gate connections MOSFETs and
represent only leakage currents. But µCs can easily sink a
significant amount of current from the input pins.
• Output Characteristics: The voltage levels for logic 0 and 1 are
compatible with that of most standard logic families.
• 0= -0.5(min) to 0.2Vdd-0.1(max)
• 1= 2.4 (min) to 0.9Vdd
• The output current levels for most µCs are significantly low (~2mA) but
some µCs (like PIC18FXX) can provide upto 25mA from some of their
output pins.
Application of Microcontrollers
• Consumer Electronics Products: Toys, Cameras, Robots,
Washing Machine, Microwave Ovens etc.
• Instrumentation and Process Control: Oscilloscopes, Multi-
meter, Leakage Current Tester, Data Acquisition and Control
etc.
• Medical Instruments: Digital Thermometer, BP monitor
• Communication: WIFI-Routers, mobile phones, wireless etc
• Office Equipment: Printers, Telephones, Fax machines
• Multimedia Application: IPODs, MP3 players, small video
players.
• Automobile: ….
9
03-02-2024
Pyq
• Interrupt identification
• Source and enabling, disabling interrupts
• Interrupt handling procedure
• Procedure as an interrupt handler
• Faults, traps aborts
• IDT
• Interrupt gate and trap gate descriptor
• Int0- int 4
• General detect fault
• When does a Page fault occur.
• Difference b/w mc and mp
• Architecture of mc
• Applications of mc
Thank You
Like Share & Subscribe to
SarcasticTeacher
@ShameemSir
10