Component: Real Time Clock (MCP7940N) (Real Time Clock)
From Flowcode Help
(Redirected from Component: ID c48dfdeb 1177 4381 86dd d7a98fefeb7a)
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 | |
- STRING | Return |
GetTime
GetTime | |
Returns the time as a string HHMMSS | |
- STRING | Return |
Initialise
Initialise | |
Initialises the component ready for I2C communications | |
- VOID | Return |
ReadRegister
ReadRegister | |
Read and return the value of the RTC register at the given address | |
- BYTE | address |
- BYTE | Return |
SetDate
SetDate | |
Sets the date from a string DDMMYY | |
- STRING | Date |
- VOID | Return |
SetTime
SetTime | |
Sets the time from a string HHMMSS | |
- STRING | Time |
- VOID | Return |
WriteRegister
WriteRegister | |
Write the given data value to the RTC register at the given address | |
- BYTE | address |
- BYTE | data |
- VOID | Return |