Page 4 of 5

Re: DS3231 ALARM

Posted: Sat Dec 07, 2024 10:14 am
by kaqkk007
Lately the DS3231 handling on pic bases has been getting worse , I had to change the settings many times before it would work . Today even resetting the update version does not help , it refuses to work . What could be the cause ??

Re: DS3231 ALARM

Posted: Mon Dec 09, 2024 4:26 pm
by kaqkk007
I noticed that only pic16f628 won't start (with internal oscillator)

Re: DS3231 ALARM

Posted: Tue Dec 10, 2024 5:26 am
by chipfryer27
Hi

You need to include your chart illustrating the problem before we can assist.

Regards

Re: DS3231 ALARM

Posted: Tue Dec 10, 2024 4:19 pm
by kaqkk007
This is the problem that is not communicating with the RTC.
7segm_SANYI20241207.fcfx
project
(28.7 KiB) Downloaded 67 times

Re: DS3231 ALARM

Posted: Tue Dec 10, 2024 4:33 pm
by kaqkk007
Perfect in simulation but returns 0000 values "live"

Re: DS3231 ALARM

Posted: Tue Dec 10, 2024 6:04 pm
by kaqkk007
The even values of the run variable are displayed ( BCD converter 74141 + digit outputs ) the odd ones are blanked ( 15 values and digit = 0 )

Re: DS3231 ALARM

Posted: Wed Dec 11, 2024 12:05 am
by chipfryer27
Hi

In your settings you have the clock set as RC Clockout not internal oscillator. Remember if using internal oscillator to include a c-code block at the very beginning of your chart to set the registers. The IntOsc Helper component will assist in creating the value.

Regards

Re: DS3231 ALARM

Posted: Wed Dec 11, 2024 4:04 am
by kaqkk007
Hi
Thank you I will try it

Re: DS3231 ALARM

Posted: Wed Dec 11, 2024 5:06 am
by chipfryer27
Hi

The attached sets the internal oscillator to 4MHz

Regards

Re: DS3231 ALARM

Posted: Thu Dec 12, 2024 5:46 pm
by kaqkk007
Hi
Started thanks for your help