| Posted: 01:11pm 18 Aug 2016 |
Copy link to clipboard |
 Print this post |
|
@curtis
Maybe this is what you're looking for?
Dim crtl_reg%=0
RTC GETREG &H0E,crtl_reg%
Print Bin$(crtl_reg%)
'76543210
RTC SETREG &H0E,crtl_reg% And &B01100011 'clear bit 7,4,3,2
Bit 4,3 are for the frequency
0,0=1Hz
0,1=1.024kHz
1,0=4.096kHz
1,1=8.192kHz
Regards
Michael
EDIT
You will find the description of the control register (0Eh) at page 13 in Maxims datasheet for the DS3231.
In some cases it may be sufficient to set the control register (0Eh) to zero (for 1Hz SQW output).
RTC SETREG &H0E,0 Edited by twofingers 2016-08-19 ‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ... |