Mikroc Serial Interrupt
Posted : adminOn 5/19/2018

Using Interrupt with PIC Microcontroller. Interrupts can be easily handled by using reserved word ‘interrupt’. MikroC PRO for PIC Microcontrollers.
Watch the Video Tutorial: Interrupts are one of the most powerful features of PIC Microcontrollers, interrupts make it possible to create applications that can respond to external stimulus in real time. An interrupt is basically an event that requires the microcontroller to stop normal program execution and then to jump to execute a program code related to the event causing the interrupt. An interrupt requires immediate attention, only once the microcontroller will finish executing the interrupt code, then it can go back to continue with the main program. The interrupt code is called Interrupt Service Routine (ISR) or Interrupt Handler. Here is a simple example to understand interrupts, let say you are playing a game with your phone and Suddenly your mobile phone rings somebody is calling you. Bodypaint 3d Serial 11.5 Trading Desk Audit Program. there.
Your phone will immediately leave the game and start ringing. Only once you are done with the call, then the phone will jump back to the game. This process is similar to ISR execution. You can think the main service routine in this case as playing the game and the ringing of the mobile phone as causing an interrupt. This initiates your mobile phone conversation which is similar to executing Interrupt Service Routine (ISR).
If there were no interrupt, while playing the game, the microcontroller would time to time pause the game and monitor if there is no one trying to call you. As you can see, this is not an efficient way of programming as it consumes all its processing time for monitoring and they can be a possibility of missing a short process that can require immediate attention. The best way is to leave the microcontroller do its normal main program, and if there is nothing to do, let the microcontroller go into sleep mode and be awaken only to respond to an interrupt that occurs. Aish Hatorah Rabbinical Program. This can save power and much needed processor power especially if the application if battery powered.