Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:44 13 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : DS1307 RTC ... Error.

Author Message
kermess
Regular Member

Joined: 04/04/2013
Location: Spain
Posts: 45
Posted: 12:13pm 25 Feb 2020
Copy link to clipboard 
Print this post

Hi,
I am assembling and testing the DS1307 RTC and the system gives me an error.
-----
[10] RTC settime 2020,2,25,12,3,0
Error: RTC not responding
-----
I've tried it with several MX170 and several DS1307 always gives me the same error.
I am working with version 5.05.02
??? .... Can you think of something that isn't doing well .... ???
Saludos.
David Perez
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 01:41am 26 Feb 2020
Copy link to clipboard 
Print this post

I always use DS3231 and they work OK. I assume you are using a module, just check you have 3.3v to the module and make sure the Data and Clock lines are going to the correct pins. Other than that try another RTC.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 621
Posted: 11:54am 26 Feb 2020
Copy link to clipboard 
Print this post

(if it has one) Is the battery ok  ?
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 10:56pm 26 Feb 2020
Copy link to clipboard 
Print this post

G'Day David

I don't think I have used a RTC on MMBASIC but never-the-less.
There is an OPTION RTC command, have you done that?
Other than that, check your wiring and check for activity with a CRO/DSO if you have one.
Good luck

Peter
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9755
Posted: 12:55am 27 Feb 2020
Copy link to clipboard 
Print this post

Hi.

Make sure your RTC module has the 4k7 pullup resistors on SDA and SCK.

As with palcal above, I also really only ever use the 3231 or 3232 RTC modules, but as far as I know, the 1307's are also supported.

Standard manual, page 27, talks about RTC's, and the 1307 IS supported along with several other common ones, so it should work just fine.

It WON'T respond, if you don't have those 4k7 pull-ups on the I2C bus lines though, so please do check that they are present and in the correct place.  Not all modules include them.  Some do, some don't, and those two little resistors DO matter.
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025