Posts

Showing posts with the label latency time

How Interrupt Works ?

Image
  In an Embedded System , a Microcontroller or Microprocessor uses the Input/Output pins to interact with the outer world and the other devices. Output pins take the data or information out and input pins to read the data or information. Software on the microprocessor runs at a very high speed than the hardware interactions. A few milliseconds of delay with the hardware could be thousands of instructions for the software. So for optimal hardware and software interaction, there is a mechanism called interrupts. An interrupt is a signal that temporarily halts the normal execution of a program and directs the MCU to execute a specific piece of code, called an interrupt handler or interrupt service routine (ISR) . Interrupts are typically triggered by external events, such as a button press, a sensor reading, or a timer expiration. Interrupt Sources can be classified into two main categories : Internal interrupt: sources are generated by the MCU itself, such as a timer overflow or...