Difference between revisions of "Component: Timed Interval (Storage)"
From Flowcode Help
Jump to navigationJump to search (XML import) |
|||
Line 1: | Line 1: | ||
− | + | {| style="width:50%" | |
− | |||
− | {| | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Author | + | | width="20%" style="color:gray;" | Author |
| Matrix TSL | | Matrix TSL | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Version | + | | width="20%" style="color:gray;" | Version |
− | | 1.1 | + | | 1.1 |
|- | |- | ||
− | | width="20%" style="color: gray;" | Category | + | | width="20%" style="color:gray;" | Category |
| Storage | | Storage | ||
|} | |} | ||
+ | ==Timed Interval component== | ||
+ | Allows you to setup a specific timed interval via the use of a hardware timer peripheral. Useful for regular time accurate periodic polling and sampling. | ||
− | == | + | ==Component Pack== |
− | |||
− | |||
− | + | STORAGE | |
− | |||
+ | ==Detailed description== | ||
− | + | ''No detailed description exists yet for this component'' | |
− | === | + | ==Examples== |
− | |||
− | |||
− | + | ''<span style="color:red;">No additional examples</span>'' | |
− | + | ==Downloadable macro reference== | |
− | :'' | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StartTimerInterval''' | ||
+ | |- | ||
+ | | colspan="2" | Starts the timer interval. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | === | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | |
− | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StopTimerInterval''' |
− | + | |- | |
− | + | | colspan="2" | Stops the timer interval. | |
− | + | |- | |
− | + | |- | |
− | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | |
− | + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | |
− | :'' | + | |} |
− | |||
− | |||
− | |||
− | |||
==Property reference== | ==Property reference== | ||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | + | |- | |
− | Unit of time used for the time period. | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | |
− | For example you might want every 4 milliseconds or every 3 hours. | + | |- |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Time Unit | |
− | + | |- | |
− | + | | colspan="2" | Unit of time used for the time period. For example you might want every 4 milliseconds or every 3 hours. | |
− | Value of time used for the time period. | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |
− | For example you might want every 4 milliseconds or every 3 hours. | + | | width="90%" | Time Period |
− | + | |- | |
− | + | | colspan="2" | Value of time used for the time period. For example you might want every 4 milliseconds or every 3 hours. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | |
− | + | | width="90%" | Estimated Best Period | |
− | The closest we can get to the required time period based on prescaler and postscaler settings. | + | |- |
− | + | | colspan="2" | The closest we can get to the required time period based on prescaler and postscaler settings. Smaller scalers provide finer resolution but impose limits on the maximum delay. | |
− | Smaller scalers provide finer resolution but impose limits on the maximum delay. | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | |
− | + | | width="90%" | Max Time Measurement | |
− | + | |- | |
− | + | | colspan="2" | The maximum time we can do based on the current timer and scaler settings. | |
− | + | |- | |
− | The maximum time we can do based on the current timer and scaler settings. | + | | width="10%" align="center" | [[File:Fc9-type-22-icon.png]] |
− | + | | width="90%" | Callback Macro | |
− | + | |- | |
− | + | | colspan="2" | User defined macro automatically called on a periodic basis. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | User defined macro automatically called on a periodic basis. | + | | width="90%" | Timer |
− | + | |- | |
− | + | | colspan="2" | Timer Peripheral to use to monitor the passage of time. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |
− | + | | width="90%" | Bit Depth | |
− | Timer Peripheral to use to monitor the passage of time. | + | |- |
− | + | | colspan="2" | Number of bits in the timer peripheral. 8-bit timers can count from 0-255 before overflowing. 16-bit timers can count from 0 to 65535 before overflowing. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Prescaler | |
− | + | |- | |
− | Number of bits in the timer peripheral. | + | | colspan="2" | Scaler applied to the timer, Small scalers allow for finer resolution but will limit the max time and also put more load on the microcontroller. Recommended to use as large a setting as possible which still provides enough accuracy. |
− | + | |- | |
− | 8-bit timers can count from 0-255 before overflowing. | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] |
− | + | | width="90%" | PostScaler | |
− | 16-bit timers can count from 0 to 65535 before overflowing. | + | |- |
− | + | | colspan="2" | Scaler applied to the timer, Small scalers allow for finer resolution but will limit the max time and also put more load on the microcontroller. Recommended to use as large a setting as possible which still provides enough accuracy. | |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections''' | |
− | + | |- | |
− | Scaler applied to the timer, | + | |- |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | |
− | Small scalers allow for finer resolution but will limit the max time and also put more load on the microcontroller. | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations''' |
− | + | |- | |
− | Recommended to use as large a setting as possible which still provides enough accuracy. | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |
− | + | | width="90%" | Timer Delay (ms) | |
− | + | |- | |
− | + | | colspan="2" | Number of milliseconds between timer events which increment the simulated timer counter variable. 10ms will yield the highest resolution. Values less than this will likely just increase the error and making the timer run slow. Higher delays will yield greater accuracy. | |
− | + | |} | |
− | Scaler applied to the timer, | ||
− | |||
− | Small scalers allow for finer resolution but will limit the max time and also put more load on the microcontroller. | ||
− | |||
− | Recommended to use as large a setting as possible which still provides enough accuracy. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Number of milliseconds between timer events which increment the simulated timer counter variable. | ||
− | |||
− | 10ms will yield the highest resolution. Values less than this will likely just increase the error and making the timer run slow. | ||
− | |||
− | Higher delays will yield greater accuracy. |
Revision as of 12:37, 17 June 2022
Author | Matrix TSL |
Version | 1.1 |
Category | Storage |
Contents
Timed Interval component
Allows you to setup a specific timed interval via the use of a hardware timer peripheral. Useful for regular time accurate periodic polling and sampling.
Component Pack
STORAGE
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
StartTimerInterval |
Starts the timer interval. | |
![]() |
Return |
![]() |
StopTimerInterval |
Stops the timer interval. | |
![]() |
Return |