Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

RTC DS1307 I2C and RS232 interfacing with at89c51

Status
Not open for further replies.

jay_3189

Banned
Full Member level 1
Joined
Sep 19, 2013
Messages
104
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Location
Ahmedabad
Activity points
0
Hi Friends,

I have written C programme for RTC DS1307 interfacing with at89c51 and just want to see this time in PC Hyper Terminal using RS232.
but in hyper terminal I am getting some garbage value.
so anyone can say me that what would be error in that program.

if anyone want to see code it is in below link.
https://www.edaboard.com/threads/303043/
 

First check is serial communication work using controller then try RTC . Send say a,b,c 0,1,2 to PC using controller if it work then may RTC reading issue or data conversion issue. RTC output BCD code & PC require ASCII code. For RTC have any issue then refer by blog it may help u
 

First check is serial communication work using controller then try RTC . Send say a,b,c 0,1,2 to PC using controller if it work then may RTC reading issue or data conversion issue. RTC output BCD code & PC require ASCII code. For RTC have any issue then refer by blog it may help u

I have already read your blog previously but still I have few doubt in this. and I have already tried with rs232 communication to send simple sentences and I have got right output in terminal but not in time only.
and also I have another doubt that how can i set time in 24hr or 12hr period which I have not found in your blog.
Thanking you.
 

See 24 or 12 is depend on RTC so i not mentioned in blog. As u r serial comm. work so problem in RTC reading or sending RTC data to COM port via controller. Check is RTC read correctly if yes then is BCD to ASCII conversion correct.
-----------------------------------
In while loop ur both Printf statement wrong read data not pass directly to function, check it again
 
Last edited:
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top