Experiment (3): Creating software delay in PIC microcontroller

5 months ago
82

* Create MPLAB project.
* One LED is connected to PORTC (RC0,RC1) using PIC 16F877A.
* For 4MHz clock frequency and 1sec software delay, define the instructions of the recursive loop and calculate the values of the variables (if needed)
* Use the MPLAB to write an assembly program that flash light the of LED ON/OFF for a delay of 1sec.

Loading comments...