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

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Project Development :: Project Help
 
<< Previous thread | Next thread >>
interfacing p89c51ed2 with ds12c887 rtc
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
venkat
Tue Jun 19 2007, 09:02PM
 User Offline
Registered Member #1633
Joined: Tue Jun 19 2007, 12:00AM

Posts: 12
Thanked 0 times in 0 posts
hai friends,
This is venkat, i am trying to interface the rtc 12887 with p89c51ed2 as per the circuit and the code given in the mazidi book. After initializing and setting the rtc to update the time, I am getting some defualt junk vlaues, even if i remove the rtc iam getting the junk value in hyperterminal. help me please , Thanking you,

Back to top

DS12C887 interfacing with 8051   RTC DS12C887 interfacing   


Ajay
Wed Jun 20 2007, 12:18AM
Rickey's World Admin

 User Offline

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

Posts: 3681
Thanked 685 times in 647 posts
Hi venkat, its easy to interface DS12887, simple map it to port 0 as memory mapped I/O. here is the pin connections...
CODE:
Controller      DS12887
P0                AD[7:0]
ALE               AS
RD                DS
WR               R/W

You can connect CS to permanent ground if you are not using any other memory IC, if you are using then use a decoding logic. Hope this helps..
Please click on thanks button if you are satisfied

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


Ritesh
Wed Jun 20 2007, 05:15AM
 User Offline
Registered Member #65
Joined: Tue Aug 29 2006, 03:10AM

Posts: 54
Thanked 9 times in 9 posts
if u are using hyper terminal then u should use CR command to first clear the screen before the next time display in your code
Back to top


Ajay
Wed Jun 20 2007, 06:01AM
Rickey's World Admin

 User Offline

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

Posts: 3681
Thanked 685 times in 647 posts
he is talking about the garbage he is receiving on the display.. that might be cause of wrong interfacing.. so use the connections as i suggested and test.

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


 

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