Difference between revisions of "Component: Real Time Clock (MCP7940N) (Storage)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray...") |
|||
Line 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 590: | Line 594: | ||
|- | |- | ||
| colspan="2" | Clears the MIAC display | | colspan="2" | Clears the MIAC display | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClear''' | ||
+ | |- | ||
+ | | colspan="2" | Clears the LCD | ||
|- | |- | ||
|- | |- |
Revision as of 10:37, 17 November 2021
Author | Matrix TSL |
Version | 1.0 |
Category | Storage |
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.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
SetTime |
Sets the time from a string HHMMSS | |
![]() |
Time |
![]() |
Return |
![]() |
GetTime |
Returns the time as a string HHMMSS | |
![]() |
Return |
![]() |
ReadRegister |
Read and return the value of the RTC register at the given address | |
![]() |
address |
![]() |
Return |
![]() |
SetDate |
Sets the date from a string DDMMYY | |
![]() |
Date |
![]() |
Return |
![]() |
GetDate |
Returns the date as a string DDMMYY | |
![]() |
Return |
![]() |
WriteRegister |
Write the given data value to the RTC register at the given address | |
![]() |
address |
![]() |
data |
![]() |
Return |
![]() |
Initialise |
Initialises the component ready for I2C communications | |
![]() |
Return |
![]() |
SendBinary32Bit |
Sends out a 32-bit binary value split across four bytes. | |
![]() |
Value |
[[File:]] - | MSBfirst |
0=Least significant byte first, 1=Most significant byte first | |
![]() |
Return |
![]() |
Initialise |
Sets up the RS232 peripheral, must be called at the start of your program or at least before you start calling any other RS232 macros. | |
![]() |
Return |
![]() |
ReceiveChar |
Attempts to receive a single packet from the UART interface. | |
![]() |
Timeout |
Time to wait in milliseconds for valid data before returning, 0=Dont wait, 255=Wait forever. | |
[[File:]] - | Return |
![]() |
Initialise |
Sets up the 1-Wire output pin ready for communications. | |
![]() |
Return |
![]() |
Initialise |
Starts up the UART to allow communications and initialises the states of the various Modbus Coils, Inputs and Registers to 0. | |
![]() |
Return |
![]() |
Initialise |
Initialises the MIDI component and sets up the UART. | |
![]() |
Return |
![]() |
CommsBaud |
Sets the Baud rate of the alt communications channel | |
![]() |
Baud |
Range: 0-7 : 0=1200 / 7=115200 | |
![]() |
Return |
![]() |
LCDOptions |
Controls some of the LCD options | |
![]() |
Foreground |
Range: 0-1 | |
![]() |
Background |
Range: 0-1 | |
![]() |
Transparent |
Range: 0-1 | |
![]() |
Return |
![]() |
ReadDigitalInput |
Reads a single digital input. | |
![]() |
Channel |
![]() |
Return |
![]() |
PWMDuty |
Sets a single PWM channel duty. Channel = 0 - 5 : 0=EN_AB, 1=A, 2=B, 3=C, 4=D, 5=EN_CD Duty = 0 - 65535 | |
![]() |
Channel |
Range 0-5 | |
![]() |
Duty |
![]() |
Return |
![]() |
LCDCursor |
Sets the cursor position for the MIAC display | |
![]() |
X |
Range: 0-21 | |
![]() |
Y |
Range: 0-4 | |
![]() |
Return |
![]() |
WriteTran |
Allows a single transistor output to be switched on or off. | |
![]() |
Channel |
Range 1-4 | |
![]() |
Value |
0 = Off, 1 = On | |
![]() |
Return |
![]() |
Initialise |
![]() |
Return |
![]() |
LCDClear |
Clears the MIAC display | |
![]() |
Return |
![]() |
LCDClear |
Clears the LCD | |
![]() |
Return |