LCD Module Display 4 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 value1,value2,value3,value4;
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(20); 
   lcd_row_col(3,0);
   lcd_putc("www.kchimicro ");   
   delay_ms(20); 
   lcd_row_col(4,0);
   lcd_putc("Pic controller ");      
   delay_ms(5000);   
   lcd_Clear();
    lcd_init();
while(true){        
        value1 = 2568;
        value2 = 1278;
        value3 = 8887;
        value4 = 9997;        
//==================================       
        lcd_row_col(1,0);
        Lcd_putc("value1=");
        hex_bcd(value1);lcd_row_col(1,8);sent_Lcd();          
        delay_ms(30); 
//==================================        
        lcd_row_col(2,0);
        Lcd_putc("Value2=");
        hex_bcd(value2);lcd_row_col(2,8);sent_Lcd();          
        delay_ms(30);              
//==================================       
        lcd_row_col(3,0);
        Lcd_putc("Value3=");
        hex_bcd(value3);lcd_row_col(3,8);sent_Lcd();          
        delay_ms(30); 
//==================================        
        lcd_row_col(4,0);
        Lcd_putc("Value4=");
        hex_bcd(value4);lcd_row_col(4,8);sent_Lcd();          
        delay_ms(30);  
        lcd_row_col(4,13);
        Lcd_putc("mat");          
        delay_ms(30);  
   }
}

 




Leave a Comment

*
= 3 + 3

Read previous post:
5V to 12V Step Up DC-DC Converter
5V to 12V Step Up DC-DC Converter

Step up DC-DC converter is based on LM2577-ADJ IC, this project provides 12V output using 5V input, maximum output load...

Close
Scroll to top