We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
sir, i am tyring to communicate rtc and 8051. But my code is not working properly. can u send me the source code
No, I can not.
1) There is not any "the source code". There are 8051 chips with internal RTC. There are external RTC using I2C, SPI or other ways for communication. And external RTC chips can be connected to different processor pins depending on who designed the hardware. Differeng clock frequency, use of timers etc may also affect what the code looks like.
2) You have not told us what processor you have or what RTC you have. All you have said is that you have a 8051 chip - while at the same time you have marked this forum thread to be related to C251 - if you are unsure about what processor architecture you are using, I can understand if you get into troubles with your source code too.
3) If your code doesn't work, the normal resolution is not to throw it away and ask for someone elses code. Programming includes a step called "debugging". Have you spent any time doing any "debugging"? One early step in "debugging" is to figure out what you expected to happen and find out what really is happening. Then you have to decide if you should change the code so what is happening gets closer to what you expected. Or if it is your expectations that are wrong.
4) I am pretty sure that you are doing a school project. It is almost always school projects involved when people do posts requests with a total lack of own information but with the main idea of receiving complete and working code from the net. School projects are assigned to students because the student is expected to do the job. Not because the student is expected to have someone else supply the code.
5) I'm also pretty sure that most languages using Latin characters have the convention to start each sentence with a capital letter. It wouldn't hurt (yo)u to try. Skipping capitals, writing i and u, skipping question marks after questions and other language "simplifications" are best left for your instant-messaging with friends.
If you're using an 8051, why have you selected your toolset/architecture as 80251??
"my code is not working properly. can u send me the source code"
If it's your code, then you must already have the source code for it - surely?!
For instructions on how to interface anything to anything else, see: www.8052.com/.../160143
For some tips on debugging, see: www.8052.com/.../120313