Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility with DS1338 #221

Open
TowerDefender007 opened this issue Dec 16, 2024 · 2 comments
Open

compatibility with DS1338 #221

TowerDefender007 opened this issue Dec 16, 2024 · 2 comments

Comments

@TowerDefender007
Copy link

I would like if your library would also feature a compatibility for the DS1338 because its almost similar with the DS1307 but I cant tell if its exactly the same.

@Makuna
Copy link
Owner

Makuna commented Dec 16, 2024

The only difference I see is that the DS1338 has a flag in bit 5 of the control register. Even the device address is the same. It seems to have some duplicate features of the CH in the status register (shared with seconds register) but still requires to be set to zero to function.

image

You can use the DS1307 but just make sure to set the square wave which will also clear this flag, like ...

rtc.SetSquareWavePin(DS1307SquareWaveOut_1Hz); // or what ever you want the output pin to work

This should function until the library is updated specifically to support it.

@TowerDefender007
Copy link
Author

Okay thank you for your fast answer. I am looking forward for your update and will use your suggested way till then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants