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
| Type | Name | Default | Description |
|---|---|---|---|
| General › Constants | |||
| Types.Platform | platform | ||
| SIunits.Frequency | cpuFrequency | Constants.cpuFrequency[platform] | Default frequency is the platform default (can be modified) |
| SIunits.Frequency | minADCFrequency | Constants.minADCFrequency[platform] | Minimum recommended frequency to sample the ADC |
| SIunits.Frequency | maxADCFrequency | Constants.maxADCFrequency[platform] | Maximum recommended frequency to sample the ADC |
| Integer | adcResolution | Constants.adcResolution[platform] | Bits of resolution in the ADC |
| Real-time › Constants | |||
| SIunits.Frequency | desiredFrequency | if 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.Time | desiredPeriod | 0 | Used to try to select a reasonable default pre-scaler and counter for real-time synchronization. |