Component: Real Time Clock (MCP7940N) (Real Time Clock)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Real Time Clock |
Contents
Real Time Clock (MCP7940N) component
Serial (I2C) Real Time Clock component for MCP7940N device. When used with a MIAC project this component gives access to the internal RTC (if fitted, depending upon model) and the component properties will be automatically configured.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_RTC_(MCP7940N).fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_RTC_(MCP7940N).fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetDate
![]() |
GetDate |
Returns the date as a string DDMMYY | |
![]() |
Return |
GetTime
![]() |
GetTime |
Returns the time as a string HHMMSS | |
![]() |
Return |
Initialise
![]() |
Initialise |
Initialises the component ready for I2C communications | |
![]() |
Return |
ReadRegister
![]() |
ReadRegister |
Read and return the value of the RTC register at the given address | |
![]() |
address |
![]() |
Return |
SetDate
![]() |
SetDate |
Sets the date from a string DDMMYY | |
![]() |
Date |
![]() |
Return |
SetTime
![]() |
SetTime |
Sets the time from a string HHMMSS | |
![]() |
Time |
![]() |
Return |
WriteRegister
![]() |
WriteRegister |
Write the given data value to the RTC register at the given address | |
![]() |
address |
![]() |
data |
![]() |
Return |