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_ ...

Read more

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_C ...

Read more

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() { setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_psp(PSP_DISABLED); setup_spi(FALSE); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); set_tris_b(0x00); while(true){ if(SETPOI ...

Read more

Lcd Module Display 2 line For Basic PRO Compiler

@ device pic16f877 define osc 4 define adc_bits 8 Define LCD_DREG PORTD ' Define LCD connections Define LCD_DBIT 4 Define LCD_RSREG PORTD Define LCD_RSBIT 1 Define LCD_EREG PORTD Define LCD_EBIT 0 RW var portd.2 low RW 'LCD R/W low = write trisa = $ff trisd = $00 adcon1 = 7 SW1 VAR PORTA.0 SW2 VAR PORTA.1 num var byte LCDOUT $FE,1,"lcd_read" pause 3000 main: gosub set_value gosub display pause 200 GoTo main ...

Read more

7 Segment Display Interfacing with PIC Microcontroller

This is our 8th tutorial of Learning PIC microcontrollers using MPLAB and XC8. We have come up all the way from installing MPLABX to using a LCD with PIC MCU. If you are new here, then look at previous tutorials where you can learn timers, blinking LED, interfacing LCD etc.. You can find all our PIC Tutorials here. In our last tutorial we saw how we can generate Custom characters with our 16*2 LCD display, ...

Read more

Seven segment display 4 digit for shift 595 For Basic PRO Compiler

@ device pic16f877 define osc 4 define adc_bits 8 Include "MODEDEFS.bas" DEFINE ADC_SAMPLEUS 100 DEFINE SHIFT_PAUSEUS 100 ADCON1 = 7 TRISA =$ff trisb =$00 '=======output=======' dat vAR portb.0 clk vAR portb.1 latch vAR portb.2 relay VAR portb.3 '======input=========' enter vAR porta.0 chg VAR porta.1 hour var byte minute var byte second var byte prsc1 var byte i var byte num var word num2 var word num3 var ...

Read more

Seven segment display 4 digit For Basic PRO Compiler

@ device pic16f877 define osc 4 define adc_bits 8 adcon1 = 7 trisa = $ff trise = $00 trisc = $00 trisd = $00 digit var byte num var word disp var byte num =00 while(1) digit = num dig 0 lookup digit,[$3f,$06,$5b,$4f,$66,$6d,$7d,$07,$7f,$6f],disp portd = disp high portc.0 pause 5 low portc.0 digit = num dig 1 lookup digit,[$3f,$06,$5b,$4f,$66,$6d,$7d,$07,$7f,$6f],disp portd = disp high portc.1 pause 5 low po ...

Read more

PIC16F690 Microcontroller Circuit- How to Drive an LED Display

In this article, we will show how to drive a 7 segment LED Display using a PIC16F690 microcontroller. This PIC16F690 microcontroller chip is actually a part of the PIC2 Starter Kit, so we will actually be using this starter kit to drive the LED Display. A 7 Segment LED Display is an electronic device that contains 8 individual LEDs. Each of the LEDs can either be on or off. Depending on which LEDs are lit d ...

Read more
Scroll to top