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
| Name | Description |
|---|---|
| Two microcontrollers run the same program and import the same module: each keeps its own state | |
| Two microcontrollers wired together: A raises a request, B acknowledges it from a Pin.irq handler | |
| Two microcontrollers talk over a real serial link: A sends PING, B answers PONG | |
| Two data loggers start from the same flash image: each gets its own copy and writes its own measurements | |
| I2C between two microcontrollers: A is the controller, B is a target that behaves as a memory (machine.I2CTarget with mem=) | |
| I2C between two microcontrollers: B answers the commands of A from an I2CTarget IRQ handler |