modelPartialUartPins
Extends from PartialSupplyPin (Supply of a peripheral: optional GND and VCC pins, internal supply rail - GND shown and ideal internal supply VOH by default).
Information
Electrical side shared by the external serial devices (Internal.Devices.PartialUartDevice) and the radio modems (Internal.Devices.PartialRadioModem): TX is a push-pull output (voltage source at the supply voltage or VOL, behind ROut; supply: Internal.Devices.PartialSupplyPin, ideal VOH or the VCC pin), RX a high-impedance input with a weak pull-up and an input capacitance, read against the halfway threshold. useTxPin unchecked removes the TX pin (a device that never transmits, such as Peripherals.UartLcd20x2): the output stage then stays unconnected, nothing else changes. The derived class assigns txLevel in its when and reacts to change(rxBoolIn).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Electrical › Supply | |||
| Boolean | useSupplyPin (from PartialSupplyPin) | false | Show the VCC supply pin: the peripheral is supplied by the circuit (its high levels follow VCC, its consumption IQ is drawn from VCC) - unchecked: ideal internal supply VOH, nothing to wire |
| Modelica.Units.SI.Voltage | VOH (from PartialSupplyPin) | Interfaces.VOH | Logic high voltage: ideal internal supply, high level of the outputs and of the pull-ups - with the VCC pin, the voltage of VCC is used instead |
| Modelica.Units.SI.Current | IQ (from PartialSupplyPin) | 1e-3 | Current drawn from VCC by the peripheral (quiescent consumption, outputs excluded) |
| Boolean | useGroundPin (from PartialSupplyPin) | true | Show the GND pin - unchecked: the peripheral is referenced to the simulation ground (0 V), nothing to wire |
| Electrical › Levels | |||
| Modelica.Units.SI.Voltage | VOL | Interfaces.VOL | Logic low voltage |
| Modelica.Units.SI.Voltage | VIH | Interfaces.VIH | Threshold above which an input reads high |
| Modelica.Units.SI.Voltage | VIL | Interfaces.VIL | Threshold below which an input reads low |
| Electrical › Impedances | |||
| Modelica.Units.SI.Resistance | ROut | Interfaces.ROut | Output series resistance |
| Modelica.Units.SI.Resistance | RPullUp | 1e6 | Pull-up of the RX input to the supply |
| Electrical › Pins | |||
| Boolean | useTxPin | true | Show the TX pin - unchecked for a device that never transmits (its output stage then stays unconnected) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.NegativePin | GND (from PartialSupplyPin) | Common reference (ground), to be connected to the microcontroller's one - shown when useGroundPin is checked | |
| Modelica.Electrical.Analog.Interfaces.PositivePin | VCC (from PartialSupplyPin) | Supply of the peripheral (e.g. 3V3(OUT) of a Raspberry Pi Pico) - shown when useSupplyPin is checked | |
| Modelica.Electrical.Analog.Interfaces.PositivePin | TX | Transmission of the device - to be connected to the receive pin of the microcontroller - shown when useTxPin is checked | |
| Modelica.Electrical.Analog.Interfaces.PositivePin | RX | Reception of the device - to be connected to the transmit pin of the microcontroller |