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.

help in this project

Status
Not open for further replies.

mh2008

Newbie level 1
Newbie level 1
Joined
Nov 8, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,286
If allowed possible help in this project is to write a program language c using pic16f877a
https://www.iosrjournals.org/iosr-jeee/Papers/Vol5-issue2/D0522128.pdf
And I've trying to write this code and I do not know is it true or false
Code:
  // LCD module connections
sbit LCD_RS at Rc4_bit;
sbit LCD_EN at Rc5_bit;
sbit LCD_D4 at Rc0_bit;
sbit LCD_D5 at Rc1_bit;
sbit LCD_D6 at Rc2_bit;
sbit LCD_D7 at Rc3_bit;
sbit LCD_RS_Direction at TRISc4_bit;
sbit LCD_EN_Direction at TRISc5_bit;
sbit LCD_D4_Direction at TRISc0_bit;
sbit LCD_D5_Direction at TRISc1_bit;
sbit LCD_D6_Direction at TRISc2_bit;
sbit LCD_D7_Direction at TRISc3_bit;
// End LCD module connections
 void main(){
 trisb=255;
trisd=0;

portd=0;
while(1){
lcd_init();
 lcd_cmd(_lcd_cursor_off);
   lcd_out(1,1,"IEC DEP. CONTROL");
        delay_ms(1000);
        lcd_out(2,1,"mh");
        delay_ms(1000);
        lcd_cmd(_lcd_clear);
        delay_ms(250);

if(portb.B0==0){portd=0x2a  ;DELAY_MS(300);lcd_out(1,1,"increment");
        delay_ms(3000);lcd_cmd(_lcd_clear);
        delay_ms(250);  }
if(portB.B1==0){portd=0x23 ;DELAY_MS(300);lcd_out(1,1,"decrement");
        delay_ms(3000);lcd_cmd(_lcd_clear);
        delay_ms(250); }
if(portB.B2==0){portd=0x0e ;DELAY_MS(300);lcd_out(1,2,"start"); delay_ms(3000);
     lcd_cmd(_lcd_clear);
        delay_ms(250);    }
if(portB.B3==0){portd=0x1c  ;DELAY_MS(300);lcd_out(1,1,"stop");
        delay_ms(3000);lcd_cmd(_lcd_clear);
        delay_ms(250); }
if(portB.B4==0){portd=0x15  ;DELAY_MS(300);lcd_out(1,1,"shoot");
        delay_ms(3000);lcd_cmd(_lcd_clear);
        delay_ms(250);}
if(portB.B5==0){portd=0x31   ; DELAY_MS(300);}
 
Last edited by a moderator:

Can you specify what problem you are facing..Is it not getting compiled?/There is a hardware problem?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top