Component: Injector (DS1307 RTC) ()
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix Ltd |
Version | 1.1 |
Category |
Contents
Injector (DS1307 RTC) component
Comms data injector to allow simulation of a DS1307 Real Time Clock and RAM.
Component Pack
COMMSA
Detailed description
No detailed description exists yet for this component
Examples
This example uses the I2C master component combined with the DS1307 injector to simulate an I2C communications bus between the target Microcontroller and the virtual DS1307 device.
I2C DS1307 Example
The panel displays the current time from the DS1307 RAM which is populated to match the system time.
The I2C console shows the communications between the target microcontroller and simulated I2C device.
The DS1307 console shows the contents of RAM memory on the simulated I2C device.
Downloadable macro reference
![]() |
InitialiseInjector |
Sets up the injector ready to receive commands or send data | |
![]() |
InjectorName |
Name of the console that will be created | |
![]() |
Return |
![]() |
RxByteCount |
Returns the number of bytes currently sat in the receive buffer. | |
![]() |
Return |
![]() |
TxByte |
Puts a byte onto the comms channel. | |
![]() |
DataByte |
![]() |
Return |
![]() |
RxByte |
Attempt to receive a byte back from the injector 0 - 255 = Valid data 256 = RX timeout no data available | |
![]() |
Return |
![]() |
GetConsoleHandle |
Gets the handle to the console allowing data displaying on the panel etc. | |
![]() |
Return |
![]() |
ChangeState |
Changes the state for I2C or SPI type comms where the data bytes along are not enough to go on. | |
![]() |
NewState |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
DS1307 Injector Settings |
![]() |
Circular Buffer Size |
![]() |
Termination Character |
![]() |
Device Address |
![]() |
Day Setting |
Configures how the day of the week is calculated. |