forum.hobbycomponents.com
http://forum.hobbycomponents.com/

PIC - PIC Development Board + PIC16F877A (HCDVBD0003)
http://forum.hobbycomponents.com/viewtopic.php?f=86&t=1345
Page 5 of 5

Author:  damilare [ Fri Aug 11, 2017 11:34 am ]
Post subject:  Re: PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

pls i use to program in mickro c which i use with my development board but d program not executing pls help me
here is the program


// LCD module connections
sbit LCD_RS at RE0_bit;
sbit LCD_EN at RE2_bit;
sbit LCD_D4 at RD4_bit;
sbit LCD_D5 at RD5_bit;
sbit LCD_D6 at RD6_bit;
sbit LCD_D7 at RD7_bit;

sbit LCD_RS_Direction at TRISE0_bit;
sbit LCD_EN_Direction at TRISE2_bit;
sbit LCD_D4_Direction at TRISD4_bit;
sbit LCD_D5_Direction at TRISD5_bit;
sbit LCD_D6_Direction at TRISD6_bit;
sbit LCD_D7_Direction at TRISD7_bit;
// End LCD module connections

void main()
{
Lcd_Init(); // Initialize LCD
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(1,1,"Hello World"); // Write text'Hello World' in first row
}
pls threat as urgent

Page 5 of 5 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/