Question: It is required to design a multitasking process on a PIC16F887 microcontroller utilizing the Timero interrupt. The primary goal is to create a system
It is required to design a multitasking process on a PIC16F887 microcontroller utilizing the Timero interrupt. The primary goal is to create a system where, in the main code, a LED blinks at 1Hz connected with 5V DC motor, while concurrently, the Timero interrupt service routine (ISR) is responsible for configuring and controlling the blinking of another LED at 20Hz. Requirements: 1. Employ the PIC16F887 microcontroller for the task. 2. Establish a multitasking system where two LEDS blink at distinct frequencies. 3. The main code should handle the task of blinking one LED at 1Hz. 4. The Timer0 ISR should be programmed to configure and manage the blinking of a separate LED at 20Hz with prescaler 256. 5. Ensure that multitasking is achieved without blocking the main loop. 6. Appropriately configure Timero to generate interrupts at the desired frequency.
Step by Step Solution
3.43 Rating (156 Votes )
There are 3 Steps involved in it
Heres the C code to achieve multitasking on the PIC16F887 microcontroller blinking one LED at 1Hz in ... View full answer
Get step-by-step solutions from verified subject matter experts
