![]() |
Forum Index : Microcontroller and PC projects : MX170 and DS3232
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
banda Newbie ![]() Joined: 12/05/2014 Location: New ZealandPosts: 35 |
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 StatesPosts: 925 |
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: AustraliaPosts: 935 |
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 ZealandPosts: 44 |
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 StatesPosts: 209 |
Hi 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 ZealandPosts: 35 |
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 ZealandPosts: 35 |
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: GermanyPosts: 1629 |
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 StatesPosts: 209 |
Hi 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: GermanyPosts: 1629 |
Thanks for the kind words and testing (+adaptation) the code example. ![]() Michael causality ≠ correlation ≠ coincidence |
||||
banda Newbie ![]() Joined: 12/05/2014 Location: New ZealandPosts: 35 |
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: AustraliaPosts: 3303 |
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". Geoff Geoff Graham - http://geoffg.net |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2948 |
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: GermanyPosts: 1629 |
ˇ@WW >Is there a version 4.6b AND a version v4.6B??? ![]() This should be a message from mm.46a: ![]() Strange things happen ... ![]() causality ≠ correlation ≠ coincidence |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2948 |
I think I missed version .46a ![]() |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3303 |
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 ZealandPosts: 35 |
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 ZealandPosts: 35 |
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 KingdomPosts: 2948 |
@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 ZealandPosts: 35 |
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 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |