packageMultiMcu

Several microcontrollers in one model: isolated programs, GPIO, UART and I2C links between boards, one file system each

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Contents

NameDescription
IndependentTwo microcontrollers run the same program and import the same module: each keeps its own state
HandshakeTwo microcontrollers wired together: A raises a request, B acknowledges it from a Pin.irq handler
UartTwo microcontrollers talk over a real serial link: A sends PING, B answers PONG
FileSystemTwo data loggers start from the same flash image: each gets its own copy and writes its own measurements
I2cI2C between two microcontrollers: A is the controller, B is a target that behaves as a memory (machine.I2CTarget with mem=)
I2cIrqI2C between two microcontrollers: B answers the commands of A from an I2CTarget IRQ handler