Component: Real Time Clock (Internal, DS1307, DS3231, DS3232) (Storage)
From Flowcode Help
(Redirected from Component: ID f0e01201 8951 4748 87c3 d1f8423bb6e4)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 2.2 |
Category | Storage |
Contents
Real Time Clock (Internal, DS1307, DS3231, DS3232) component
A Real Time Clock component allowing things like clocks and timers to easily be created. Compatible with the internal RTCC module and external DS1307, DS3231 or DS3232 RTC ICs.
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
RTC DS1307 DS3231 Example.fcfx
Example showing how to retrieve and display the time using bytes or string RTC component.
Downloadable macro reference
![]() |
SetSecs |
Sets the seconds as a binary value 0-59. Does not currently simulate. | |
![]() |
Seconds |
Range 0-59 | |
![]() |
WhichClock |
0=Time, 1=Alarm1 DS3231 | |
![]() |
Return |
![]() |
SetYear |
Sets the year as a binary value 0-99. Does not currently simulate. | |
![]() |
year |
Range 0-99 | |
![]() |
Return |
![]() |
GetDateString |
Reads the current date from the RTC and returns it formatted as a string. e.g. DD:MM:YY | |
![]() |
USformat |
0="DD/MM/YY", 1="MM/DD/YY" | |
![]() |
Return |
![]() |
GetSecs |
Gets the seconds of the current time as a binary value 0-59. Simulation returns system time. | |
![]() |
WhichClock |
0=Time, 1=Alarm1 DS3231 | |
![]() |
Return |
![]() |
GetHours |
Gets the hours of the current time as a binary value 0-11 or 0-23. Simulation returns system time. | |
![]() |
WhichClock |
0=Time, 1=Alarm1 DS3231, 2=Alarm2 DS3231 | |
![]() |
Return |
![]() |
GetYear |
Gets the year as a binary value 0-99. Simulation returns system date. | |
![]() |
Return |
![]() |
GetWeekDay |
Gets the day of the week as a binary value 1-7. This function doesn't currently simulate. | |
![]() |
WhichClock |
0=Time, 1=Alarm1 DS3231, 2=Alarm2 DS3231 | |
![]() |
Return |
![]() |
SetRamDS3232 |
Sets the value of one of the free RAM locations on the DS3232 device | |
![]() |
Address |
236 RAM Locations. Range: 0 to 235 | |
![]() |
Data |
Data value. Range 0 to 255 | |
![]() |
Return |
![]() |
SetRamDS1307 |
Sets the value of one of the free RAM locations on the DS1307 device | |
![]() |
Address |
56 RAM Locations. Range: 0 to 55 | |
![]() |
Data |
Data value. Range 0 to 255 | |
![]() |
Return |
![]() |
SetWeekDay |
Sets the day of the week as a binary value 1-7. This function doesn't currently simulate. | |
![]() |
Day |
Range 1-7 | |
![]() |
WhichClock |
0=Time, 1=Alarm1 DS3231, 2=Alarm2 DS3231 | |
![]() |
Return |
![]() |
SetMonth |
Sets the month as a binary value 1-12. Does not currently simulate. | |
![]() |
month |
Range 1-12 | |
![]() |
Return |
![]() |
SetMins |
Sets the minutes as a binary value 0-59. Does not currently simulate. | |
![]() |
Minutes |
Range 0-59 | |
![]() |
WhichClock |
0=Time, 1=Alarm1 DS3231, 2=Alarm2 DS3231 | |
![]() |
Return |
![]() |
GetMins |
Gets the minutes of the current time as a binary value 0-59. Simulation returns system time. | |
![]() |
WhichClock |
0=Time, 1=Alarm1 DS3231, 2=Alarm2 DS3231 | |
![]() |
Return |
![]() |
SetDate |
Sets the date as a binary value 1-31. Does not currently simulate. | |
![]() |
date |
Range 1-31 | |
![]() |
Return |
![]() |
GetTimeString |
Reads the current time from the RTC and returns it formatted as a string. e.g. HH:MM:SS | |
![]() |
IncludeSeconds |
0=Dont Include Seconds, 1=Include Seconds | |
![]() |
Return |
![]() |
GetDate |
Gets the date as a binary value 1-31. Simulation returns system date. | |
![]() |
Return |
![]() |
GetRamDS3232 |
Gets a byte of RAM from the free memory on the DS3232 device. | |
![]() |
Address |
236 RAM Locations. Range: 0 to 235 | |
![]() |
Return |
![]() |
GetRamDS1307 |
Gets a byte of RAM from the free memory on the DS1307 device. | |
![]() |
Address |
56 RAM Locations. Range: 0 to 55 | |
![]() |
Return |
![]() |
GetMonth |
Gets the month as a binary value 1-12. Simulation returns system date. | |
![]() |
Return |
![]() |
Initialise |
Initialises the RTC component ready for operation. | |
![]() |
Return |