Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:42 17 Sep 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 : MX170 and DS3232

     Page 1 of 2    
Author Message
banda
Newbie

Joined: 12/05/2014
Location: New Zealand
Posts: 35
Posted: 11:48am 09 Mar 2015
Copy link to clipboard 
Print this post

I've set up the circuit as shown on P17 of Micromite11 manual, but I want to use a DS3232 on an MX170, 28 pin.

When it comes to the line RTC GETTIME (or RTC SETTIME) it gives a message:
Error: PCF8563 not responding

That suggests perhaps that a DS3232 must connect up differently from a PCF8563.
The manual suggests checking with the DS3232 data sheet, but that's well beyond my beginner status to understand.

Can anyone show me how to do the job?
Thanks
Banda


 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 11:51am 09 Mar 2015
Copy link to clipboard 
Print this post

I think its supposed to be a DS3231 not DS3232. That might be a problem. Not sure, I'm still at work, can't check it....
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 11:56am 09 Mar 2015
Copy link to clipboard 
Print this post

You should check the Micromite software version. It is only recently that the DS3231 has been supported along with the PCF8563. These two run at different addresses and that is probably how it is determined which one is in use. Also, the DS3232 may be dead. If I recall correctly, the DS3232 and DS3231 use the same address and the same basic time and date registers.
 
DaveC166
Regular Member

Joined: 13/09/2012
Location: New Zealand
Posts: 44
Posted: 12:03pm 09 Mar 2015
Copy link to clipboard 
Print this post

Hi banda,
Ive used DS3231 boards as well as PCF8563 boards with the Umite MK2, RTC SETTIME and GETTIME work. Are you using MM Basic ver4.6B as previous versions only support PCF8563 based RTC's
 
redrok

Senior Member

Joined: 15/09/2014
Location: United States
Posts: 209
Posted: 12:51pm 09 Mar 2015
Copy link to clipboard 
Print this post

Hi Banda;
  banda said   I've set up the circuit as shown on P17 of Micromite11 manual, but I want to use a DS3232 on an MX170, 28 pin.

When it comes to the line RTC GETTIME (or RTC SETTIME) it gives a message:
Error: PCF8563 not responding

That suggests perhaps that a DS3232 must connect up differently from a PCF8563.
The manual suggests checking with the DS3232 data sheet, but that's well beyond my beginner status to understand.

Can anyone show me how to do the job?
Thanks
Banda

Take a look at the data sheet for the DS3232. I have a copy HERE.
The pinout is clearly different between several of these clocks.
Just use the pin names and not the pin numbers and you should be OK.
Note!, follow the Maxim Typical Operating Circuit in the datasheet.
redrok
 
banda
Newbie

Joined: 12/05/2014
Location: New Zealand
Posts: 35
Posted: 12:52pm 09 Mar 2015
Copy link to clipboard 
Print this post

Accuracy is everything someone said.
I should also have said that I'm using 4.6b.
The DS3232 should be alive and kicking. It's new. How do I test it?
Banda
 
banda
Newbie

Joined: 12/05/2014
Location: New Zealand
Posts: 35
Posted: 12:59pm 09 Mar 2015
Copy link to clipboard 
Print this post

Even further, I should have said my DS3232 is in module form, for dummies like me. It tells me which pins are which.
Banda
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1629
Posted: 04:23pm 09 Mar 2015
Copy link to clipboard 
Print this post

Hi,

I would at first scan the I2C bus.
This is the code for Maximites (not checked on Micromite!):
'**********************************
' I2C-Scanner
' scans I2C-Bus for I2C addresses
' MM-Basic 4.5 / Maximite/Duinomite
' by twofingers 21-08-2014 on TBS
'**********************************
Sub I2CScanner
Local found, i

found=0
Cls
Print "I2C-Scanner from Adr. 8-119":Print:Print

For i = &h08 To &h77 ' gueltige I2C-Adressen von 8-119
I2C open 100, 1000 ' i2c enable 100kHz, 1000ms timeout
I2C read i, 0, 1, temp

Print i;">"; MM.I2C " ";
If MM.I2C = 0 Then
Print:Print:Print "Found I2C-Address at "; i; " ("dec2hex$(i)+")"
found=1
EndIf
I2C close ' i2c disable

Next i
If found = 0 Then Print:Print:Print "NO I2C-Address found!"
End Sub

Function dec2hex$(number) ' uused by I2C-Scanner
dec2hex$ = "&H"+ Hex$(number)
End Function

'***********************************************************


A DS3231(!) should be found at &H68.

Regards
Michael


causality ≠ correlation ≠ coincidence
 
redrok

Senior Member

Joined: 15/09/2014
Location: United States
Posts: 209
Posted: 05:38pm 09 Mar 2015
Copy link to clipboard 
Print this post

Hi Michael;
  twofingers said   Hi,

I would at first scan the I2C bus.
This is the code for Maximites (not checked on Micromite!):

A DS3231(!) should be found at &H68.

Regards
Michael


Cool Code!!!

Works just fine on my uMiteII V4.6B with one exception.
Rem out the "Cls" statement. Apparently we don't have that.
It could be replaced by:

' VT100 escape sequences
PRINT CHR$(27);"[2J"; ' Clear Screen
PRINT CHR$(27);"[H"; ' Curser to Home

Use one or both of these lines.
redrok
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1629
Posted: 03:08am 10 Mar 2015
Copy link to clipboard 
Print this post

Thanks for the kind words and testing (+adaptation) the code example.

Michael
causality ≠ correlation ≠ coincidence
 
banda
Newbie

Joined: 12/05/2014
Location: New Zealand
Posts: 35
Posted: 07:44pm 11 Mar 2015
Copy link to clipboard 
Print this post

Thanks Twofingers and Redroc.
The test for the I2C bus worked fine after I put in a calling statement to make the subroutine work.
I then got:
Found I2C-Address at 104 (&H68)

which to me showed that everything is working as it should.
I checked the DS3232 datasheet and it says that both it and DS3231 have the same I2C address &H68, so that's correct.

However, when I added the RTC GETTIME command it still gave the answer:

RTC GETTIME
Error: PCF8563 not responding

There must be someone successful with a DS3232, 4.6b, mm11 setup. The man behind the whole thing (Geoff) has said (I think) that a DS3232 could work with my setup, so I hope someone has tried it.

Banda
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3303
Posted: 09:12pm 11 Mar 2015
Copy link to clipboard 
Print this post

You cannot be running V4.6B (which supports the Maxim chips).

The message "Error: PCF8563 not responding" was only in the earlier versions.
In 4.6B the message was changed to "Error: RTC not responding".

GeoffEdited by Geoffg 2015-03-13
Geoff Graham - http://geoffg.net
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 10:55pm 11 Mar 2015
Copy link to clipboard 
Print this post

This may be a silly question but I will ask it anyway:

Is there a version 4.6b AND a version v4.6B???

The welcome message I get mentions v4.6b

Appreciate feedback others on v4.6b/B . . . .
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1629
Posted: 12:20am 12 Mar 2015
Copy link to clipboard 
Print this post

ˇ@WW

>Is there a version 4.6b AND a version v4.6B???



This should be a message from mm.46a:



Strange things happen ... Edited by twofingers 2015-03-13
causality ≠ correlation ≠ coincidence
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 12:38am 12 Mar 2015
Copy link to clipboard 
Print this post

  twofingers said  This should be a message from mm.46a:

I think I missed version .46a
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3303
Posted: 05:13am 12 Mar 2015
Copy link to clipboard 
Print this post

4.6A was an interim version released in this thread. You might have been enjoying your honeymoon at the time

There is no difference between 4.6b and 4.6B - I should be more consistent.

Geoff
Geoff Graham - http://geoffg.net
 
banda
Newbie

Joined: 12/05/2014
Location: New Zealand
Posts: 35
Posted: 01:37pm 12 Mar 2015
Copy link to clipboard 
Print this post

Does that mean that if I use 4.6B my DS3232 should be able to be made to work?
Banda
 
banda
Newbie

Joined: 12/05/2014
Location: New Zealand
Posts: 35
Posted: 01:50pm 12 Mar 2015
Copy link to clipboard 
Print this post

Does that mean that my 4.6b (lower case) should work as well as 4.6B (upper case) on my DS3232? If so I must be doing something wrong and I want to fix it.

Banda
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 03:04pm 12 Mar 2015
Copy link to clipboard 
Print this post

@banda,

See Geoff's post. If you get the message "Error: RTC not responding" then you have v4.6B (or rather v4.6b!!). If you see any other wording (as implied in your post) then it seems like you don't have v4.6b.

Simple test: press the reset button on the 44-pin module and observe the 'welcome' message. Which version does it report back?

Then without an RTC connected simply type: RTC GETTIME to see what error message you get.

Please let us know the results of these two simple tests . . . .

WW
 
banda
Newbie

Joined: 12/05/2014
Location: New Zealand
Posts: 35
Posted: 03:47pm 12 Mar 2015
Copy link to clipboard 
Print this post

In the little box (Maximite Progress)!! that appears as MMEDIT runs the program it says:
Micromite 4.6 detected

In the print out of results (Micromite Chat) after the program is run it says:
Error: PCF8563 not responding

If I knew how to copy the print out results from Micromite Chat I'd show you the whole lot, but everything I've done doesn't work.

Banda

 
     Page 1 of 2    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025