Discussion in "8051 Discussion Forum" started by    romel_emperado    Nov 3, 2010.
Sun Nov 07 2010, 12:19 PM
#21
no i dont know dear but i think it is not difficult
few things r replace able in mobile not all
Sun Nov 07 2010, 01:10 PM
#22
yes its not difficult. Programming s more difficult than repairing a mobile phone.. My brother has a mobile phone repair shop and as i can see if i compare programming s more difficult. Hehe
Mon Nov 08 2010, 04:14 AM
#23
halu majoka, i have a difficulty in coding using class fucntion (i dont know how to call that kind of method of programming hehe)

this is i am doing.. i have a digital clock code from the download section and also i have a 3310 LCD driver code for displaying somthing on the LCD.

now pls teach me how to call the LCD.c/lcd.h file from the clock.c main program.
i dont know what is the proper header to use in calling different code in *.c or *.h file

i will also attach the proteus file i made.
*attached file removed*


[ Edited Mon Nov 08 2010, 04:21 AM ]
Mon Nov 08 2010, 04:23 AM
#24
here are the file i included the code and the proteus file:

Mon Nov 08 2010, 05:14 AM
#25
hi romel_emperado
u mix the clock code of ajay that was for 20*4 lcd in with 3310 it will not run
first just display some characters on different places of lcd then go to next step
it will be difficult of error tracing in coding if u jump on a big step
do code for clock in step by step first display seconds only do experiments on it
if get problem post here
this clock file uses other header files of lcd so it give error with 3310 lcd
as i edit some code see it
Attachment
 romel_emperado like this.
Mon Nov 08 2010, 05:26 AM
#26
thaks very much majoka u really understand my query..:D

this code is really what i wanted thanks majoka
#include <AT89X51.H>

#include "lcd.h"


void main()
{
  initlcd();
  cursorxy(1,1);
  putstr("hello");   
  while(1);

}


y does we are just calling the LCD.h? does the compiler allready understand that the lcd.c is included?

---------------------------------------------------------------------------
i just studied the different locations of lcd like character location,lines, x & y position its very nice


[ Edited Mon Nov 08 2010, 05:29 AM ]
Mon Nov 08 2010, 05:31 AM
#27
hi romel
yes this is u want

y does we are just calling the LCD.h? does the compiler allready understand that the lcd.c is included?


when u add a lcd.h in main file then compiler know that there is a file of lcd.c in the project folder if not find that give error
if it give error even file is there then u can add it to ur project same as u add file in normal keil projects
in c u can add a number of files h or c in a single projects


[ Edited Mon Nov 08 2010, 05:33 AM ]
 romel_emperado like this.
Mon Nov 08 2010, 05:38 AM
#28
ah okay makoja thanks very much.. i will also practice on that method of programming
Mon Nov 08 2010, 08:12 AM
#29
helo... i have things that i dont understand here

i know this is array but what is that bit _8?

bit_8 code *days[]={"Sun","Mon","Tue","Wed","Thurs","Fri","Sat"};



i there another way in doing this digital clock? hehe the simple way



------------------------------------------------------------------------------------------
how do i display this aray in the lCD? its different on the 16x2 lcd.

char digit[10]={1,2,3,4,5,6,7,8,9,0};


void main()
{


 while(1);
  {
   initlcd();
   cursorxy(3,4);
   putstr(digit[2]);   /// eror how to do this?
  }



}


[ Edited Mon Nov 08 2010, 08:37 AM ]
Mon Nov 08 2010, 08:31 AM
#30
hi romel
u can write this line

bit_8 code *days[]={"Sun","Mon","Tue","Wed","Thurs","Fri","Sat"};


as

unsigned char code *days[]={"Sun","Mon","Tue","Wed","Thurs","Fri","Sat"};



bit_8 is define in h file see that
typedefine keyword is used
see that

Get Social

Information

Powered by e107 Forum System

Conversation

Wed Jan 22 2020, 01:16 PM
MINU CHAUDHARY
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 02:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me
Tue Dec 17 2019, 08:44 AM
Devangi
hello..i am programming industrial timer using 8051 with 24lc64 eeprom. i have query in storing the 3 diff value in eeprom with enter button. can anyone share c code ?
Tue Dec 17 2019, 05:30 AM
Andrius
Hello. Can anyone share the code in Bascon and scheme in Proteus?
Thu Nov 21 2019, 07:30 AM
raj2555
how to interface 8051 microcontroller with NRF24L01+ module
ExperimenterUK
Sat Oct 12 2019, 05:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 05:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 02:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 03:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 02:09 PM
@Ismail ..post in forum, give details

Downloads

Comments

brucewilliams20
Thu Jan 23 2020, 11:47 AM
Nippy56
Sun Jan 19 2020, 02:13 AM
usb5962
Sat Jan 11 2020, 10:42 AM
elt
Tue Jan 07 2020, 06:53 PM
mg3914697
Tue Jan 07 2020, 12:42 PM
afds43
Sun Dec 29 2019, 05:54 AM
Rupeshpatil
Fri Dec 27 2019, 06:14 PM
pyxus
Sat Dec 14 2019, 12:31 PM

Online

Guests: 42, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38117
Newest member: brucewilliams20
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Jan 17 2020, 10:24 PM
We will need the circuit diagram.A Proteus simulat...
Billz Avatar
Posted By Billz
Sat Jan 11 2020, 05:43 PM
hi everyone please attached files are my c code fo...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Jan 07 2020, 08:18 PM
Not a stupid question.Setting up "Eclipse" can be...
elt Avatar
Posted By elt
Tue Jan 07 2020, 07:06 PM
So i have just began learning programming micros a...
Billz Avatar
Posted By Billz
Mon Jan 06 2020, 09:22 PM
I think it would be better if you guys try to come...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Jan 06 2020, 12:22 AM
Can you post a circuit diagram and any code you ha...
Billz Avatar
Posted By Billz
Sun Jan 05 2020, 08:17 PM
Need help regarding C code (specifically for PIC 1...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Dec 30 2019, 06:42 PM
Can you give more details of your problem.
Rupeshpatil Avatar
Posted By Rupeshpatil
Fri Dec 27 2019, 06:21 PM
How to copy program my old microcontroller to new ...
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 02:26 PM
wil do.thank you for your advice!