Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

C programming help for analog

Status
Not open for further replies.

Rohith_elec

Full Member level 4
Joined
Dec 16, 2011
Messages
198
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,470
i am interfacing RTC , LCD and reading analog with 16F877a

Code:
void main() {


    while (1){
        
      do {


	clock continously shows time in LCD

          
      } while (!(Button(&PORTC, 0, 1, 1)));






      if ((Button(&PORTC, 0, 1, 1)))
      {
      delay_ms(20);
            Edit_Dt();  // Here it edits time
      }
   }
}


i dont know how to display power calculated in LCD, please someone help
my idea is to show into LCD when a button is pressed
 

Rohith_elec said:
my idea is to show into LCD when a button is pressed
It makes sence, but you could simplify it a bit:

Code:
void main() {


    while (1){
        
      clock continously shows time in LCD


      if ((Button(&PORTC, 0, 1, 1))){
                delay_ms(20);
                Edit_Dt(); // Here it edits time  
      }
   }
}


Hope this helps,
Alexandros
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top