< sbit LCD_RS at RB0_bit; sbit LCD_EN at RB1_bit; sbit LCD_D4 at RB2_bit; sbit LCD_D5 at RB3_bit; sbit LCD_D6 at RB4_bit; sbit LCD_D7 at RB5_bit; sbit LCD_RS_Direction at TRISB0_bit; sbit LCD_EN_Direction at TRISB1_bit; sbit LCD_D4_Direction at TRISB2_bit; sbit LCD_D5_Direction at TRISB3_bit; sbit LCD_D6_Direction at TRISB4_bit; sbit LCD_D7_Direction at TRISB5_bit; sbit Out1 at RD2_Bit; char txtCab[] = "Descric  Atual Limit"; char txtRco2[] = "CO2.... 0000  0000"; char txtRco[]  = "CO..... 0000  0000"; char txtRo2[]  = "O2..... 000%  000%"; char txtRh2s[] = "H2S.... 0000  0000"; char txtRvop[] = "VOP.... 0000  0000"; char txtRhum[] = "Humid.. 000.0%"; char txtRtem[] = "Temp... 000.0C"; char txtRpo[] =  "P.O.... 000.0C"; char txtRtco[] = "Comp..  000C  000C"; char txtCo2[]   = "SENSOR CO2"; char txtCo[]    = "SENSOR CO"; char txtO2[]    = "SENSOR O2"; char txtH2s[]   = "SENSOR H2S"; char txtVop[]   = "SENSOR VOP" ; char txtTemp[]  = "TEMPERATURA AR"; char txtHum[]   = "HUMIDADE AR"; char txtPo[]    = "PONTO DE ORVALHO" ; char txtCompr[] = "TEMP. COMPRESSOR"; char txtTroca[] =   "Trocado:   xx/xx/xx"; char txtProxima[] = "Prox Troca:xx/xx/xx"; char txtLimite[] =  "Limite max:0000 ppm"; char txtLimitep[] =  "Limite max: 000 %"; char txtSalva[] = "SALVANDO"; char txtData[] = "00/00/00"; char txtHora[] = "00:00:00"; char txtRtc[] = "RELOGIO"; char txtAlmCab[] = "ALARMES ATIVOS 1"; unsigned tela, timertela; void interrupt(){         if(TMR1IF_bit){                            //Houve overflow do Timer1?     TMR1IF_bit = 0x00;                     //limpa flag TMR1IF         TMR1L      = 0xE0;                        //byte menos significativo         TMR1H      = 0xB1;                        //byte mais significativo         TimerTela++;      }  } void main() {     ADCON1 = 0x09;                  // Configure AN pins as digital     CMCON  = 7;                     // Turn off comparators     ECCP1CON = 0x00;     TRISA = 0b11111111;     PORTA = 0x00;     TRISB = 0b00000000;     PORTB = 0x00;     TRISD = 0b11110000;              // Configura os pinos como entrada ou saida     PORTD = 0x00;     GIE_bit =       0x01;     PEIE_bit =      0x01  ;     TMR1IE_bit = 0x01;     T1CON = 0x81;     TMR1L      = 0xE0;                        //byte menos significativo     TMR1H      = 0xB1;    //98                    //byte mais significativo     delay_ms(500);     Lcd_Init();     delay_ms(500);                     // Initialize LCD     Lcd_Cmd(_LCD_CLEAR);               // Clear display     Lcd_Cmd(_LCD_CURSOR_OFF);          // Cursor off     Out1 = 0;     tela = 0; while(1){      if (TimerTela > 1000){         tela++;             if (tela > 3 ){tela = 1;}             TimerTela = 0 ; Lcd_Cmd(_LCD_CLEAR);           }         }  if (tela == 1){         Lcd_out(1,1,txtCab);         Lcd_out(2,2,txtRco2);         Lcd_out(3,2,txtRco);         Lcd_out(4,2,txtRc2);         }                 if (tela == 2){         Lcd_out(1,1,txtCab);         Lcd_out(2,1,txtRh2s);         Lcd_out(3,1,txtRvop);         Lcd_out(4,1,txtRhum);         }                 if (tela == 3){         Lcd_out(1,1,txtCab);         Lcd_out(2,1, txtRtem);         Lcd_out(3,1,txtRpo);         Lcd_out(4,1, txtRtco);         } } }>