LCD Module Display 2 line For CSS Compiler




 
#include <16F877.h>
#device adc=8
#fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG
#use delay(clock=4000000)

#include <Lcd_4bit.c>
int16 value,value1;
void main(){
   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   set_tris_d(0x00);
   lcd_init();
   lcd_row_col(1,0);
   lcd_putc("Electrical Power"); 
   delay_ms(20); 
   lcd_row_col(2,0);
   lcd_putc("Loei Technical ");
   delay_ms(5000);   
   lcd_Cls();
while(true){        
        value = 2568;
        value1 = 1278;        
//==================================       
        lcd_row_col(1,0);
        Lcd_putc("setpoint=");
        hex_bcd(value);lcd_row_col(1,9);sent_Lcd();          
        //delay_ms(100); 
//==================================        
        lcd_row_col(2,0);
        Lcd_putc("Value=");
        hex_bcd(value1);lcd_row_col(2,6);sent_Lcd();          
        delay_ms(100);              
   }
}

 




Leave a Comment

*
= 3 + 4

Read previous post:
Seven segment display 4 digit for shift 595 For CSS Compiler

#include <16F877.h> #device adc=8 #fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG #use delay(clock=4000000) #include "shift_595.c" void main() {...

Close
Scroll to top