packageUart
Serial link: the microcontroller and external serial devices - suffix Py: device whose behaviour is described by a Python script
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Contents
| Name | Description |
|---|---|
| Real electrical serial link looped back on itself: GP0 (TX) transmits a frame, GP1 (RX) receives and decodes it, GP3 (LED) confirms that the byte arrived intact | |
| The microcontroller talks to an external serial device: it sends a line, the device sends it back | |
| The microcontroller queries a serial temperature sensor, reads two changing measurements, then sends it a setpoint that comes out on a real output | |
| Control loop closed through the serial link alone: the real output of the sensor drives the plant, whose response comes back on its input | |
| A GPS module spontaneously pushes its position frames; the microcontroller counts them without ever asking for anything | |
| Serial device whose behaviour is described by a state-machine Python script: its reply depends on what happened before | |
| The microcontroller writes two lines to a 20x2 display through a real serial link; the display shows them on its icon with scrolling | |
| Serial link in 8E2 (even parity, 2 stop bits) instead of 8N1: the microcontroller and the device must use the same frame format |