Handling the Interrupts in LPC2148M.pptx

hafahew560 8 views 8 slides Aug 15, 2024
Slide 1
Slide 1 of 8
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8

About This Presentation

Handling the Interrupts in LPC2148 microcontrollers


Slide Content

Roll no: 61 - 69 ISR in LPC2148

Ankush Tiwari Roll No. 68 Handling the interrupt

Hardware Interrupts Introduction of Interrupts Interrupts are signals that temporarily halt the CPU's current task to address specific events or requests from external devices. Interrupt handling is a key function in real-time software And comprises interrupts and their handlers. Introduction External Interrupts Internal Interrupts Types of Interrupts Interrupt Request (IRQ): An external device requests the attention of the CPU by sending an interrupt signal Interrupt Acknowledgment: The CPU acknowledges the interrupt request, suspends the current execution, and saves its state. Interrupt Handling Process Software Interrupts Exception Handling System Calls

Interrupt Handling

Data Processing Read incoming data from communication buffers or input ports . Data Handling Process the received data including tasks like parsing , decoding and error checking . Error Handling Check for error in the received data and take corrective actions if error are deleted . Actions within ISR for Data Reception

Timekeeping Update internal locks or timers used for scheduling tasks or measuring time intervals . Time Scheduling Initiate specific tasks or actions scheduled at predetermined time intervals . Interrupt Clearing Clear the interrupt request after handling the timing event allowing the processor to resume normal operations . Actions within ISR for Timing Events

Conclusion Interrupt is a signal sent by hardware or software to the processor for processing. An interrupt first goes to hardware known asĀ Interrupt Controller. This controller will generate an interrupt to the CPU. The process that runs when an interrupt is generated isĀ Interrupt Handler.

THANK YOU!
Tags