Algorithm.docx

  • Uploaded by: Anuj Tripathi
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Algorithm.docx as PDF for free.

More details

  • Words: 118
  • Pages: 2
Algorithm: Step1: Initialize the ports, declare timer, ADC, LCD functions. Step2: Begin an infinite loop; turn on relay 1 by making pin 0.0 high. Step3: Display “R:” at the starting of first line in LCD. Step4: Call ADC Function, depending upon ADC output, displays the fault position. Step5: Call delay. Step6: Repeat steps 3 to 5 for other two phases.

Flowchart:

Initialize input and output ports, LCD, ADC & timer

While (i)

Turn on relay by making the port to which it is connected high

Display the corresponding phase name

Call ADC function, read ADC

Give ADC output to microcontroller & give the equivalent value in KM to LCD

Display the location of fault in LCD

Call delay

More Documents from "Anuj Tripathi"