Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:39 23 Nov 2024 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 : MMBASIC program for DS1302 RTC to set Micromite clock

     Page 2 of 2    
Author Message
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1057
Posted: 10:25pm 12 Sep 2024
Copy link to clipboard 
Print this post

OK. Thanks for the reply.
Brian

Edit
Just ordered some DS3231's from Amazon (less batteries). 1 day delivery.
Edited 2024-09-13 09:54 by Chopperp
ChopperP
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1057
Posted: 06:53am 13 Sep 2024
Copy link to clipboard 
Print this post

OK

As an exercise, I connected a DS1302 module to a Micromite to test it.

Time worked OK, but Date not so. Incorrect format.

Changed line 71 from
  Quote  DIM STRING D$ = MONTH + "-" + DATE + "-20" + YEAR

to
  Quote  DIM STRING D$ = DATE + "-" + MONTH + "-20" + YEAR

& now all OK

Thanks Darron
ChopperP
 
     Page 2 of 2    
Print this page


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

© JAQ Software 2024