Build a task to blink the LED using a microcontroller with the following requirements
Also, consider the following condition
Main Loop Constraint:
The controller is constantly busy executing critical tasks inside the while()
loop in the main()
, as shown in the code below, so use Interrupts to implement the task.
main () {
while (true) {
//In this loop Microcontroller is busy in monitoring and performing critical tasks constantly.
}
}
Example Video