packageInterfaces

Reference logic voltage levels (RP2040 approximation, 3.3 V) used by the electrical bridge of MCU

Extends from Modelica.Icons.Package (Icon for standard packages).

Information

Approximate values inspired by the Raspberry Pi Pico (RP2040, 3.3 V supply). Not exact datasheet values — enough for the intended use, to be refined later if needed.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.VoltageVOH3.3Logic high output voltage
Modelica.Units.SI.VoltageVOL0.0Logic low output voltage
Modelica.Units.SI.VoltageVIH2.0Threshold above which a logic input reads high (approximation)
Modelica.Units.SI.VoltageVIL0.8Threshold below which a logic input reads low (approximation)
Modelica.Units.SI.ResistanceROut100Default output series resistance (approximate drive strength)
Modelica.Units.SI.ResistanceRPull50e3Default internal pull resistor, up or down (RP2040: 50 to 80 kOhm)
Modelica.Units.SI.ConductanceGOff1e-9Default leakage of a pin not driving its line (input, released line): 1 GOhm, a real high impedance
IntegerDISPLAY_COLS20Number of columns shown on the icon of the educational peripheral Peripherals.Display (true to a real 20x2 character display) - truncates longer messages on the icon only (the full text remains available in the simulation log)
IntegerTEXT_DISPLAY_COLS32Number of columns of the large text screens Peripherals.Display4x32 and Display8x32 - longer messages are truncated on the icon only (the full text remains available in the simulation log); the generated icons (make_text_icons.py) assume this value
IntegerUART_DEV_MAX_VALUES4Number of real quantities an external serial device can exchange with the rest of the model ({v1}..{v4} substituted in a transmitted frame, {o1}..{o4} captured from a received frame) - must stay aligned with UARTDEV_MAX_VALUES on the C side (Resources/Include/uartdevice/uartdevice_core.h)
IntegerI2C_DEV_MAX_VALUES4Number of real quantities an external I2C peripheral can exchange with the rest of the model (argument v of its Python handlers, return value of outputs()) - must stay aligned with I2CDEV_MAX_VALUES on the C side (Resources/Include/i2cdevice/i2cdevice_core.h)

Contents

NameDescription
InputSourceSource of each button and integrated sensor value of the boards: constant parameter, time table, or connector wired from the diagram - cf. Internal.Sources.SensorSource and Internal.Sources.ButtonSource, and requirements.md decision "Refactoring du socle des cartes"
UartBehaviourOrigin of the behaviour of an external serial device (Internal.Devices.PartialUartDevice)
UartParityParity of a serial frame, as for machine.UART
ChannelKindKind of a channel of the logic analyser probe
BitOrderOrder in which the bits of a byte or word are sent
ClockEdgeEdge of the clock on which the data of a synchronous link is read
ModulationModulation of a radio module
DisplayLinkOutputCausal logical output of the educational display link (MCU side): no real voltage/current, see the decision "Périphérique d'affichage pédagogique" in requirements.md
DisplayLinkInputCausal logical input of the educational display link (Peripherals.Display side) - mirror image of DisplayLinkOutput
AntennaAntenna of a radio module: one wire between the modules that share the air