free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  1 [2]
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
AnupamAttri
Fri Apr 18 2008, 05:32PM

 User Offline
Registered Member #7182
Joined: Sat Apr 12 2008, 02:43AM

Posts: 15
Thanked 0 times in 0 posts
Hello Ajay,
I wrote following code for the above problem:
if((rtc_recv_val[2]&0x20)!=00)
{
wrt_data(pmam[1]);
else
wrt_data(pmam[0]);
}
with a change in:
if(rtc_recv_val[2]&0x20!=0x00)
ampm=1;//it was ampm=0;
else
ampm=0;//it was ampm=1;
It worked fine during display, but during setting the time, it was abit abrupt. AM-PM toggle every one gives intrupt for time set. But, display gives the same what is set.
Please reply to my above problems. I guess you are vey busy. But, please reply as soon as you are free.



Thanking you in anticipation,
Anupam Attri
Back to top


AnupamAttri
Sat Apr 19 2008, 06:11AM

 User Offline
Registered Member #7182
Joined: Sat Apr 12 2008, 02:43AM

Posts: 15
Thanked 0 times in 0 posts
Please reply to my doubts!!! Currently, I am facing problem in storing the alarm time in RTC RAM. I am making hit-n-trial. But, all are unsuccessful... Please explain me by some example as I have not understood the syntax or please see the previous posts of mine. Please help me!!!

Thanking you in anticipation,
Anupam Attri
Back to top


Ajay
Sat Apr 19 2008, 08:02AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3745
Thanked 695 times in 654 posts
this is what i was saying..

CODE:
start_rtc();
send_adr(0xD0);
send_adr(0x09);
send_adr(alarmhr);
send_adr(alarmmin);
stop_rtc();
 


PS: Sorry for late reply.. i was kind of busy in other work...

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
AnupamAttri
Sat Apr 19 2008, 07:49PM

 User Offline
Registered Member #7182
Joined: Sat Apr 12 2008, 02:43AM

Posts: 15
Thanked 0 times in 0 posts
Hello Ajay,
Thanks for the reply. I implemented it. I guess correctly. But, but I can't check it unless I retrieve the values back from RTC RAM. I tried but, I could not. There are several doubts in it.
1. What is this synchronization byte "1d" in recv_data() For Loop? Why is it 1d or how does it work?
2.I tried receiving values but the display becomes very abrupt.
Please explain me how can I receive data from RTC RAM. I guess, when I retrieve data from RTC RAM, then that data writes on the code. There is memory overlapping. Please suggest how should I do it?

Thanking you in anticipation,
Anupam Attri
Back to top


AnupamAttri
Sat Apr 19 2008, 08:10PM

 User Offline
Registered Member #7182
Joined: Sat Apr 12 2008, 02:43AM

Posts: 15
Thanked 0 times in 0 posts
Hello Ajay!
I just tried by myself to retrieve data from RTC RAM and it worked. The problem was of memory mapping only. Thanks for all your help. Right now, I don't have any doubt other than how "1d" of recv_data is working. Otherwise, I have retrieved data from RTC RAM. Once again thanks fro your code and other supports.

Thanking you in anticipation,
Anupam Attri
Back to top


Ajay
Sat Apr 19 2008, 08:52PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3745
Thanked 695 times in 654 posts
you can lower the count and see.. well at the time i designed the clock display was grabled so i changed the value, i thought i am reading rtc too fast or something.. its just a hit and trial value.. nothing specific.. you can keep the count to number of bytes to be read. see if it works for u

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


AnupamAttri
Tue Apr 22 2008, 03:02AM

 User Offline
Registered Member #7182
Joined: Sat Apr 12 2008, 02:43AM

Posts: 15
Thanked 0 times in 0 posts
Hello Ajay,
I am trying to store two alarms in RTC RAM and retrieve them from it to 8051 RAM. Now, there is problem that I am facing. When I boot or give supply to controller, it doesn't show anything; just one black row at top.
Last time when I faced this problem, I guessed, it was due to the memory overlapping in controller. So, I changed the address of the received data as:
static bit_8 rtc_recv_val_alarml[7] _at_ 0x37;
This had resolved the problem. But now, I am clueless about the bug. I don't know how to resolve it. Please reply!!!

Thanking you in anticipation,
Anupam Attri
Back to top


Go to page  1 [2]  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems