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.
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