Hi Everyone,
I had one problem with PIC18F4620 interface to DS3231 using RTC componment in Flowcode8 programs, I can set and got the date & times already, I used hardware I2C on pin RC.4 (SDA), RC.3 (SCL), after I turned off main power of this microcontroller and turned on again, the time in DS3231 auto clear all (day, date, year..ect..) to zero, I tried with software I2C and changed to other pins already but not find out what is reason? could you please help me to find problem, Is this problem come to RTC componment?
Regards,
huynhhai77
Flowcode8 with DS3231 problem
Moderator: Benj
-
- Posts: 4
- Joined: Mon May 07, 2018 2:27 pm
- Contact:
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
Re: Flowcode8 with DS3231 problem
Hi huynhhai
Just a little question. Do you have an extra battery on the VBat pin from the DS3231? If yes, is the battery ok?
regards
Stefan
Just a little question. Do you have an extra battery on the VBat pin from the DS3231? If yes, is the battery ok?
regards
Stefan
-
- Posts: 4
- Joined: Mon May 07, 2018 2:27 pm
- Contact:
Re: Flowcode8 with DS3231 problem
Hi Stefan,
the battery is ok, i tried new one already, i tried to press button to reset PIC18f4620 already, it's ok, i also tried to remove SDA & SCL install again they were ok, the problem when i turned off main power of my hardware and turn on again, i didn't know why i turn off power them no saved?
<iframe src="https://onedrive.live.com/embed?cid=956 ... R16iuhlcNk" width="165" height="128" frameborder="0" scrolling="no"></iframe>
regards,
huynhhai77
the battery is ok, i tried new one already, i tried to press button to reset PIC18f4620 already, it's ok, i also tried to remove SDA & SCL install again they were ok, the problem when i turned off main power of my hardware and turn on again, i didn't know why i turn off power them no saved?
<iframe src="https://onedrive.live.com/embed?cid=956 ... R16iuhlcNk" width="165" height="128" frameborder="0" scrolling="no"></iframe>
regards,
huynhhai77
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
Re: Flowcode8 with DS3231 problem
Hi huynhhai
Can you post your program and what hardware do you use?
Can you post your program and what hardware do you use?
-
- Posts: 4
- Joined: Mon May 07, 2018 2:27 pm
- Contact:
Re: Flowcode8 with DS3231 problem
Give attachment file
https://1drv.ms/u/s!AlOlL_PaiWSVg6YVrWM6hB_JUSruqw
https://1drv.ms/u/s!AlOlL_PaiWSVg6YVrWM6hB_JUSruqw
-
- Posts: 4
- Joined: Mon May 07, 2018 2:27 pm
- Contact:
Re: Flowcode8 with DS3231 problem
Hi Stefan,
I tried to use connecting with DS1307 already, it is ok, i turned on and turn off power supply many time but it's ok, i thought the problem come from hardware, i used DS3231M ic type, now, i am ordering new one, when i have been received new DS3231 i will try again and give you information to support, thanks you very much,
regards,
huynhhai
I tried to use connecting with DS1307 already, it is ok, i turned on and turn off power supply many time but it's ok, i thought the problem come from hardware, i used DS3231M ic type, now, i am ordering new one, when i have been received new DS3231 i will try again and give you information to support, thanks you very much,
regards,
huynhhai
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
Re: Flowcode8 with DS3231 problem
Hi Huynhhai
I'm using the DS3232MZ+. It's working nice in my board and with FC8. The chip has a litle RAM what is holding from the battery.This I use for few parameter to save, so I don't need a eeprom.
regards
Stefan
I'm using the DS3232MZ+. It's working nice in my board and with FC8. The chip has a litle RAM what is holding from the battery.This I use for few parameter to save, so I don't need a eeprom.
regards
Stefan