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.

UART communication betwen 2 PIC

Status
Not open for further replies.
It should be:
Code:
 if(oldUart==101 )

This is code for receiving sensors value:

Code:
 if(flag==1)
       {
         flag=0;
        if(oldUart==100)         //pressure sensor
                  {
                    stringUart=newUart;
                    ByteToStr(stringUart,someText);
                    Glcd_write_Text(someText,100,0,1);
                  }
        if(oldUart==101 )     //temperature sensor
                  {
                     stringUart=newUart;
                    ByteToStr(stringUart,someText);
                    Glcd_write_Text(someText,49,0,1);
                  }
       }

With UART terminal I receive this values every 5 seconds. But with above code every 20 seconds.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top