DS3231 ALARM

Post and discuss new components that you have created.
kaqkk007
Posts: 44
http://meble-kuchenne.info.pl
Joined: Sat Feb 04, 2023 1:09 pm
Has thanked: 2 times
Been thanked: 2 times

Re: DS3231 ALARM

Post 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 ??

kaqkk007
Posts: 44
Joined: Sat Feb 04, 2023 1:09 pm
Has thanked: 2 times
Been thanked: 2 times

Re: DS3231 ALARM

Post by kaqkk007 »

I noticed that only pic16f628 won't start (with internal oscillator)

chipfryer27
Valued Contributor
Posts: 1434
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 337 times
Been thanked: 497 times

Re: DS3231 ALARM

Post by chipfryer27 »

Hi

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

Regards

kaqkk007
Posts: 44
Joined: Sat Feb 04, 2023 1:09 pm
Has thanked: 2 times
Been thanked: 2 times

Re: DS3231 ALARM

Post by kaqkk007 »

This is the problem that is not communicating with the RTC.
7segm_SANYI20241207.fcfx
project
(28.7 KiB) Downloaded 67 times

kaqkk007
Posts: 44
Joined: Sat Feb 04, 2023 1:09 pm
Has thanked: 2 times
Been thanked: 2 times

Re: DS3231 ALARM

Post by kaqkk007 »

Perfect in simulation but returns 0000 values "live"

kaqkk007
Posts: 44
Joined: Sat Feb 04, 2023 1:09 pm
Has thanked: 2 times
Been thanked: 2 times

Re: DS3231 ALARM

Post 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 )

chipfryer27
Valued Contributor
Posts: 1434
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 337 times
Been thanked: 497 times

Re: DS3231 ALARM

Post 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

kaqkk007
Posts: 44
Joined: Sat Feb 04, 2023 1:09 pm
Has thanked: 2 times
Been thanked: 2 times

Re: DS3231 ALARM

Post by kaqkk007 »

Hi
Thank you I will try it

chipfryer27
Valued Contributor
Posts: 1434
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 337 times
Been thanked: 497 times

Re: DS3231 ALARM

Post by chipfryer27 »

Hi

The attached sets the internal oscillator to 4MHz

Regards
Attachments
IntOsc.fcfx
(7.72 KiB) Downloaded 58 times

kaqkk007
Posts: 44
Joined: Sat Feb 04, 2023 1:09 pm
Has thanked: 2 times
Been thanked: 2 times

Re: DS3231 ALARM

Post by kaqkk007 »

Hi
Started thanks for your help

Post Reply