modelUartErrors
The probe of UartLink on a mismatched link (the device answers in odd parity): the bytes sent back are marked with a parity error
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Same as Examples.Analyzer.UartLink, but the echo device uses odd parity — as in the parity-mismatch verification scenario (verify_45) — while the program and the probe expect even parity.
In UartErrors.analyzer.txt, the bytes transmitted by the microcontroller (TX) are correct; every byte sent back by the device (RX) is followed by ! in the hexadecimal section and by !P under its frame in the timing diagram: its data bits are right, its parity bit is not. Setting analyzer.ch1Parity to Odd makes the errors disappear: the probe then reads the device as it is configured.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| MCU | mcu | scriptPath = Resources/Scripts/MCU/uart_format.py | |
| MicroPythonMCU.Peripherals.UartEchoDevice | echo | Sends back each received byte, in 8O2 unlike the microcontroller | |
| Modelica.Electrical.Analog.Basic.Ground | ground | ||
| MicroPythonMCU.Peripherals.Analyzers.LogicAnalyzer | analyzer | CH0 on the transmit wire of the microcontroller, CH1 on its receive wire, both decoded as UART 1200 baud 8E2 |