Interrupts in ESP8266 using MicroPython

Keywords: Interrupts, GPIO, ESP8266, MicroPython, uPyCraft

Prerequisites

Dictionary meaning of Interrupt is to break some continuity.

If we relate this to micro controller terminology this means when an interrupt happens, the processor stops the execution of the main program to execute a task or process or thread, and then gets back to the main program.

Hardware interrupt

A hardware interrupt is an electronic alerting signal sent to the micro controller from an external device, like a button or an external peripheral. For example, when we press a key on the keyboard or move the mouse, they trigger hardware interrupts which cause the processor to read the keystroke or mouse position.

Software interrupt

A software interrupt is caused either by an exceptional condition or a special instruction in the instruction set which causes an interrupt when it is executed by the processor. For example, if there is a piece of work to be done for a very defined time then we can use a timer interrupt.

Hope you understood how to configure and generate hardware and timer interrupts using MicroPython.

THANK YOU and many more programs coming your way!

Please put your queries in comment section, I will get back to you with answers ASAP.
Please like and share Techawarey. Find and Like Techawarey on Facebook.😄

Related posts

Leave a comment....