
blockSynchronizeRealtime
A pseudo realtime synchronization
Parameters
| Type | Name | Default | Description |
| Real | actualInterval | (prescalerConstants[prescaler]*(count + 1)*iterations)/mcu.cpuFrequency | |
| General › Constants |
| SIunits.Frequency | desiredFrequency | mcu.desiredFrequency | Override the MCU global real-time settings |
| Real | maxError | 0.01 | Used when calculating allowed clock parameters. 0.01=1% maximum error. |
| Types.TimerSelect | timer | | |
| Types.TimerPrescaler | prescaler | Functions.Utilities.reasonableClockSelect(mcu.cpuFrequency, desiredFrequency, maxError, prescalerConstants) | Pre-scaler for the clock. |
| Integer | count | Functions.Utilities.getClockCounterValue(mcu.cpuFrequency/prescalerConstants[prescaler], desiredFrequency, maxError) | The number of counts to be made. A value of 249 counts 250 steps. |
| Integer | iterations | div(integer(mcu.cpuFrequency/(desiredFrequency*prescalerConstants[prescaler])), (count + 1)) | The number of times each interrupt should be executed. |