Difference between revisions of "Bot test"
Line 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
+ | |||
+ | {| width="50%" | ||
+ | |- | ||
+ | | width="20%" style="color: gray;" | Author | ||
+ | | Matrix Ltd. | ||
+ | |- | ||
+ | | width="20%" style="color: gray;" | Version | ||
+ | | 1.4 (Release) | ||
+ | |- | ||
+ | | width="20%" style="color: gray;" | Category | ||
+ | | Comms: Interface | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | ==[[File:Component Icon 24219805_113d_4b12_b6bd_e1b0b0c33981.png|Image]] I2C Master component== | ||
+ | Generic Two Wire I2C Communications Interface | ||
Revision as of 13:27, 31 August 2021
Author | Matrix Ltd. |
Version | 1.4 |
Category | Comms: Interface |
Contents
I2C Master component
Generic Two Wire I2C Communications Interface
Detailed description
Author | Matrix Ltd. |
Version | 1.4 (Release) |
Category | Comms: Interface |
I2C Master component
Generic Two Wire I2C Communications Interface
Examples
More information on I2C can be found here,
Matrix Flowcode Blog: Simplified communications I2C and SPI
Generic I2C EEPROM
Example file demonstrating how to read and write bytes from a generic I2C EEPROM device.
I2CEEPROM
Simulated I2C devices
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
![]() |
ReceiveByte |
Receives a byte from the I²C bus. | |
![]() |
Last |
Used to signify the last byte when streaming incoming data. 0=Not last byte, 1=Last Byte | |
![]() |
Return |
![]() |
Restart |
Outputs a restart condition onto the I²C bus. | |
![]() |
Return |
![]() |
Stop |
Outputs a stop condition onto the I²C bus. | |
![]() |
Return |
![]() |
Transaction_Uninit |
Uninitialise the I2C interface | |
![]() |
Return |
![]() |
Start |
Outputs a start condition onto the I²C bus. | |
![]() |
Return |
![]() |
Initialise |
Enables the I²C hardware and performs some initialization. Should be called at the start of the program or at least before any of the other I²C functions are called. | |
![]() |
Return |