-
Notifications
You must be signed in to change notification settings - Fork 710
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
Add support for DS3232 #254
Open
jaggil
wants to merge
8
commits into
adafruit:master
Choose a base branch
from
jaggil:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The DS3232, an accurate I²C RTC with integrated crystal and SRAM, is similar to the DS3231. However, it has the following modifications: The DS3232 has 236 bytes of battery-backed SRAM. The addition of the I²C timeout function. This limits the minimum frequency at which the I²C interface can be operated. The 32kHz output driver is changed to push-pull. This removes the need for an external pullup resistor, resulting in space savings. This also allows faster edges on the clock, along with power savings in the device. On battery switchover, the BB32kHz bit can be used to selectively enable/disable the 32kHz output. The 32kHz output on the DS3232 is designed to drive low when turned off. The DS3231 is switched to a high impedance state when switched off. On the DS3232, the temperature-conversion rate can now be controlled using 2 CRATE bits. These bits control the sample rate of the device. The sample rate determines how often the temperature sensor makes a conversion and applies compensation to the oscillator. Decreasing the sample rate decreases the overall power consumption by decreasing the frequency at which the temperature sensor operates.
void clearOSF(void); void enableEOSC(void); void disableEOSC(void); bool isEnabledEOSC(void);
void clearOSF(void); void enableEOSC(void); void disableEOSC(void); bool isEnabledEOSC(void);
Fixed doxygen bugs void clearOSF (void); void enableEOSC (void); void disableEOSC (void); bool isEnabledEOSC (void);
Perhaps the maintainer can comment on this PR? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The DS3232, an accurate I²C RTC with integrated crystal and SRAM, is similar to the DS3231. However, it has the following modifications:
The DS3232 has 236 bytes of battery-backed SRAM.
The addition of the I²C timeout function. This limits the minimum frequency at which the I²C interface can be operated.
The 32kHz output driver is changed to push-pull. This removes the need for an external pullup resistor, resulting in space savings. This also allows faster edges on the clock, along with power savings in the device.
On battery switchover, the BB32kHz bit can be used to selectively enable/disable the 32kHz output.
The 32kHz output on the DS3232 is designed to drive low when turned off. The DS3231 is switched to a high impedance state when switched off.
On the DS3232, the temperature-conversion rate can now be controlled using 2 CRATE bits. These bits control the sample rate of the device. The sample rate determines how often the temperature sensor makes a conversion and applies compensation to the oscillator. Decreasing the sample rate decreases the overall power consumption by decreasing the frequency at which the temperature sensor operates.