blockMicrocontroller

Use as an inner block, defining the characteristics of the AVR microcontroller

Extends from Modelica_DeviceDrivers.Utilities.Icons.GenericIC (Icon with a generic IC).

Parameters

TypeNameDefaultDescription
General › Constants
Types.Platformplatform
SIunits.FrequencycpuFrequencyConstants.cpuFrequency[platform]Default frequency is the platform default (can be modified)
SIunits.FrequencyminADCFrequencyConstants.minADCFrequency[platform]Minimum recommended frequency to sample the ADC
SIunits.FrequencymaxADCFrequencyConstants.maxADCFrequency[platform]Maximum recommended frequency to sample the ADC
IntegeradcResolutionConstants.adcResolution[platform]Bits of resolution in the ADC
Real-time › Constants
SIunits.FrequencydesiredFrequencyif desiredPeriod == 0 then 0 else (1/desiredPeriod)Used to try to select a reasonable default pre-scaler and counter for real-time synchronization. Select this or a period (automatically re-calculated)
SIunits.TimedesiredPeriod0Used to try to select a reasonable default pre-scaler and counter for real-time synchronization.