modelPWM

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
General › Constants
BooleanfastPWMfalse
AVR.Types.TimerSelecttimer
AVR.Types.TimerPrescalerprescalerPre-scaler for the clock.
AVR.Types.TimerNumber[:]timerNumbersWhich PWM outputs on the associated timer should be used (usually {A}, {B}, or {A,B})
Integer[size(timerNumbers, 1)]initialValuesfill(0, size(timerNumbers, 1))The value that is used to initialize the PWM before the first call to PWM.set

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.IntegerInput[size(timerNumbers, 1)]uConnector of PWM input signals (integers 0..255)

Components

TypeNameDefaultDescription
Microcontrollermcu