Professional Documents
Culture Documents
Mikroc Code
Mikroc Code
// This function will check for any voltage faults in the three phases
// Main function
void main() {
// Initialize LCD
Lcd_Init();
Lcd_Cmd(_LCD_CLEAR);
// Main loop
while(1) {
Lcd_Out(1,1,"Phase 1: ");
Lcd_Out(1,10,IntToStr(phase1Voltage));
Lcd_Out(2,1,"Phase 2: ");
Lcd_Out(2,10,IntToStr(phase2Voltage));
Lcd_Out(3,1,"Phase 3: ");
Lcd_Out(3,10,IntToStr(phase3Voltage));