Difference between revisions of "Component: RTC (MCP7940N) (Storage)"
(XML import) |
(XML import) |
||
Line 4: | Line 4: | ||
|- | |- | ||
| width="20%" style="color: gray;" | Author | | width="20%" style="color: gray;" | Author | ||
− | | | + | | Matrix TSL |
|- | |- | ||
| width="20%" style="color: gray;" | Version | | width="20%" style="color: gray;" | Version |
Latest revision as of 15:40, 27 July 2016
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | Storage |
Contents
RTC (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.
Examples
No additional examples
Downloadable macro reference
SetTime
Sets the time from a string HHMMSS
Parameters
- <- STRING Time
- This parameter may be returned back to the caller
Return value
- This call does not return a value
GetTime
Returns the time as a string HHMMSS
Parameters
- This macro has no parameters
Return value
ReadRegister
Read and return the value of the RTC register at the given address
Parameters
- BYTE address
Return value
SetDate
Sets the date from a string DDMMYY
Parameters
- <- STRING Date
- This parameter may be returned back to the caller
Return value
- This call does not return a value
GetDate
Returns the date as a string DDMMYY
Parameters
- This macro has no parameters
Return value
WriteRegister
Write the given data value to the RTC register at the given address
Parameters
- BYTE address
- BYTE data
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Channel
This property is of type Fixed list of ints and can be referenced with the variable name CHANNEL.
I2C peripheral channel used to connect to the RTC device
SDA
This property is of type Single digital pin and can be referenced with the variable name SDA.
No additional information
SCL
This property is of type Single digital pin and can be referenced with the variable name SCL.
No additional information