Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:07 02 Aug 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 : CMM2: RTC oddness.....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:51am 04 Apr 2022
Copy link to clipboard 
Print this post

DS3231 RTC chip NOT fitted, just using the on-board RTC.

Got this email from a client today about oddness with the RTC:

  My client said  
I received the Colour MaxiMite 2 Gen2 unit last week and I have been
testing it. I also have a CMM2 Gen1 computer for comparison.

First I inserted a CR1220 battery. For the power source I used a 5V, 2A
USB plug pack. VGA output is connected to 15.6" monitor The keyboard is
a Mini Starkey Multimedia Keyboard. The mouse is a basic Microsoft
optical mouse. I inserted an SD card with music, and some programs I had
written using CMM2 Gen1 unit.

Switching power on very quickly displayed MaxiMite start-up screen on
the monitor. The bottom line on the screen displayed:
05:09:45   05 - 14 - 2025.
I proceeded to set the current time and date:
TIME$ = "20:45:30" and DATE$ = "31/03/22"
These were now diplayed correctly on the monitor.

I typed FILES <ENTER>. I used mouse, which was working OK,to select and
run a program "bubbles.bas". This program ran fine. When I returned
to a screen with the prompy (>), the bottom line was
displaying:
 A:/bubbles.bas  05:07:42   05 - 19 - 2025
I reset the current time and date again. The bottom line displayed the
correct information.

I decided to request a printout for time and date:

PRINT TIME$ gave 45:85:85
PRINT DATE$ gave 45 - 25 - 2165

NOT WORKING CORRECTLY!


I've never seen or heard of that kind of odd RTC behaviour.  Anyone else see that or can anyone comment on why he would be seeing such strange results?
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:58am 04 Apr 2022
Copy link to clipboard 
Print this post

I am surprised that he/she didn't see the initial startup where you have to set the keyboard and date etc.
I suggest reset all options and start over again, including removing the battery if needed.

Jim
VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 07:22am 04 Apr 2022
Copy link to clipboard 
Print this post

Yes, I am wondering about that myself.

I have suggested that he:

1) Power off the unit
2) REMOVE the 1220 battery
3) Power up the unit
4) Select the keyboard layout, and set the date and time
5) Replace the 1220 battery
6) Cycle power and see if the RTC settings stay correct then.

I am wondering if putting in the 1220 battery BEFORE power-up and setting of the RTC, is somehow corrupting the ARM's internal RTC module or something.
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 11:30pm 04 Apr 2022
Copy link to clipboard 
Print this post

Further to this, got this reply:

  Quote  
Thank you for your quick response.
I followed your instructions as far as I could,
I replaced the power source by Samsung 5V, 2A Travel Adaptor.

- Battery removed
- Power up
- Monitor glowing softly, green LED lit
- Pressed reset button on CMM board
       Red and green LEDs lit
       MicroMite Screen displayed
       Asking to specify keyboard layout - I selected 2 for US
       Entered numbers for time 19:05:40
       Entered numbers for date 04/04/22
       Inserted the battery

Bottom line on the screen:
  A:/bounce.bas     05:17:42  05 - 19 - 2025
  Note: ~bounce.bas was one of the programs I ran yesterday
        ~seconds are counting up

Switched off and on again
MicroMite screen (and)

< (prompt)

Bottom line on the screen
  A:/bounce.bas      05:05:53  05 - 19 - 2025
- Set time and date
    time$ = "19:20:22"
    dates = "04/04/22"
Bottom line on the screen
  A:/bounce.bas      19:20:35  04 - 04 - 2022
  [I didn't repeat PRINT time$ and date$]
- Switched off and on again
 Red and green LEDs lit
MicroMite screen with the prompt and crazy time and date reappear


This is very odd.  I have never seen this before in the hundreds of unit I have sold.

I told him to take the battery out again, and OPTION RESET, cycle power, re-enter the keyboard layout, date/time, put battery back in again and see if that helps.

I have no idea where the 2025 and 2165 year references are coming from....that is very strange indeed.  
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 11:43pm 04 Apr 2022
Copy link to clipboard 
Print this post

OPTION RESET is not the same as pressing the reset button. He mentions pressing the reset.

You also need a few minutes of no battery and power off to discharge backup power supplies.

Peter can advice on the correct method of clearing the system fully.

Jim
VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 04:06am 05 Apr 2022
Copy link to clipboard 
Print this post

OPTION RESET did seem to fix this issue, so you were right to suggest it a few posts back.

  Quote  
OPTION LIST
CURRENT VGA mode 800.600 RGB332
CURRENT DISPLAY 50.100
OPTION DS3231 ON (that was me yesterday)
OPTION USERKEYBOARD US
OPTIOM MOUSE 0.0

OPTION RESET <ENTER>
   Blank screen (faint glow)
- CMM off/on
- Insert battery
    MAXIMITE screen
    Select Keyboard Type 2
    Time 11:02:40
    Date 05/02/22

 A:/bounce.bas    11:02:50  05-04-2022
LOOKS GOOD!

OPTION LIST
CURRENT VGA mode 800.600 RGB332
CURRENT DISPLAY 50.100
OPTION USERKEYBOARD US

- CMM off/on
  A:/bounce.bas    11:23:26  05-04-2022

OPTION MOUSE 0 <ENTER>
>

OPTION LIST
CURRENT VGA mode 800.600 RGB332
CURRENT DISPLAY 50.100
OPTION USERKEYBOARD US
OPTION MOUSE 0.0

- CMM off/on
  MAXIMITE screen

 A:/bounce.bas    11:41:09  05-04-2022
> files

files displayed
Selected (with mouse) Perm.bas
 Ran OK

A:/Perm.bas.bas    11:44:55  05-04-2022

HOOOREY, IT WORKS!

Your suggestion worked, thank you!
OPTION RESET did something. I can't see what?

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