Component: PIC32 Core Timer (Timing): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_TimerComponentPIC32Core.fcfx FC_Comp_Source_TimerComponentPIC32Core.fcfx] | ||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_TimerComponentPIC32Core.fcfx FC_Comp_Source_TimerComponentPIC32Core.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
| Line 77: | Line 77: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| Line 90: | Line 92: | ||
===Check_Counter=== | ===Check_Counter=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Check_Counter''' | ||
|- | |- | ||
| colspan="2" | Checks to see if the counter time is elapsed. Used in conjunction with the Start_ component macros. Returns 1 if complete or 0 if still counting. | | colspan="2" | Checks to see if the counter time is elapsed. Used in conjunction with the Start_ component macros. Returns 1 if complete or 0 if still counting. | ||
| Line 104: | Line 106: | ||
===Delay_InstructionCount=== | ===Delay_InstructionCount=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Delay_InstructionCount''' | ||
|- | |- | ||
| colspan="2" | A blocking function that allows for accurate delays to be specified in FOSC instructions using the core timer. | | colspan="2" | A blocking function that allows for accurate delays to be specified in FOSC instructions using the core timer. | ||
| Line 123: | Line 125: | ||
===Delay_Ms=== | ===Delay_Ms=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Delay_Ms''' | ||
|- | |- | ||
| colspan="2" | A blocking function that allows for accurate delays to be specified in milliseconds using the core timer. | | colspan="2" | A blocking function that allows for accurate delays to be specified in milliseconds using the core timer. | ||
| Line 142: | Line 144: | ||
===Delay_Ns=== | ===Delay_Ns=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Delay_Ns''' | ||
|- | |- | ||
| colspan="2" | A blocking function that allows for accurate delays to be specified in nano seconds using the core timer. | | colspan="2" | A blocking function that allows for accurate delays to be specified in nano seconds using the core timer. | ||
| Line 161: | Line 163: | ||
===Delay_S=== | ===Delay_S=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Delay_S''' | ||
|- | |- | ||
| colspan="2" | A blocking function that allows for accurate delays to be specified in seconds using the core timer. | | colspan="2" | A blocking function that allows for accurate delays to be specified in seconds using the core timer. | ||
| Line 180: | Line 182: | ||
===Delay_Us=== | ===Delay_Us=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Delay_Us''' | ||
|- | |- | ||
| colspan="2" | A blocking function that allows for accurate delays to be specified in micro seconds using the core timer. | | colspan="2" | A blocking function that allows for accurate delays to be specified in micro seconds using the core timer. | ||
| Line 199: | Line 201: | ||
===Start_InstructionCount=== | ===Start_InstructionCount=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Start_InstructionCount''' | ||
|- | |- | ||
| colspan="2" | A none blocking function that allows for accurate delays to be specified in FOSC instructions using the core timer. | | colspan="2" | A none blocking function that allows for accurate delays to be specified in FOSC instructions using the core timer. | ||
| Line 218: | Line 220: | ||
===Start_Ms=== | ===Start_Ms=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Start_Ms''' | ||
|- | |- | ||
| colspan="2" | A none blocking function that allows for accurate delays to be specified in milliseconds using the core timer. | | colspan="2" | A none blocking function that allows for accurate delays to be specified in milliseconds using the core timer. | ||
| Line 237: | Line 239: | ||
===Start_Ns=== | ===Start_Ns=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Start_Ns''' | ||
|- | |- | ||
| colspan="2" | A none blocking function that allows for accurate delays to be specified in nano seconds using the core timer. | | colspan="2" | A none blocking function that allows for accurate delays to be specified in nano seconds using the core timer. | ||
| Line 256: | Line 258: | ||
===Start_S=== | ===Start_S=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Start_S''' | ||
|- | |- | ||
| colspan="2" | A none blocking function that allows for accurate delays to be specified in seconds using the core timer. | | colspan="2" | A none blocking function that allows for accurate delays to be specified in seconds using the core timer. | ||
| Line 275: | Line 277: | ||
===Start_Us=== | ===Start_Us=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Start_Us''' | ||
|- | |- | ||
| colspan="2" | A none blocking function that allows for accurate delays to be specified in micro seconds using the core timer. | | colspan="2" | A none blocking function that allows for accurate delays to be specified in micro seconds using the core timer. | ||
| Line 295: | Line 297: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Timing |
PIC32 Core Timer component
Allows for easy and accurate timings using the built in Core timer on the PIC32 devices.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_TimerComponentPIC32Core.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_TimerComponentPIC32Core.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Check_Counter
| Check_Counter | |
| Checks to see if the counter time is elapsed. Used in conjunction with the Start_ component macros. Returns 1 if complete or 0 if still counting. | |
| Return | |
Delay_InstructionCount
| Delay_InstructionCount | |
| A blocking function that allows for accurate delays to be specified in FOSC instructions using the core timer. | |
| Delay | |
| Return | |
Delay_Ms
| Delay_Ms | |
| A blocking function that allows for accurate delays to be specified in milliseconds using the core timer. | |
| Delay | |
| Return | |
Delay_Ns
| Delay_Ns | |
| A blocking function that allows for accurate delays to be specified in nano seconds using the core timer. | |
| Delay | |
| Return | |
Delay_S
| Delay_S | |
| A blocking function that allows for accurate delays to be specified in seconds using the core timer. | |
| Delay | |
| Return | |
Delay_Us
| Delay_Us | |
| A blocking function that allows for accurate delays to be specified in micro seconds using the core timer. | |
| Delay | |
| Return | |
Start_InstructionCount
| Start_InstructionCount | |
| A none blocking function that allows for accurate delays to be specified in FOSC instructions using the core timer. | |
| Delay | |
| Return | |
Start_Ms
| Start_Ms | |
| A none blocking function that allows for accurate delays to be specified in milliseconds using the core timer. | |
| Delay | |
| Return | |
Start_Ns
| Start_Ns | |
| A none blocking function that allows for accurate delays to be specified in nano seconds using the core timer. | |
| Delay | |
| Return | |
Start_S
| Start_S | |
| A none blocking function that allows for accurate delays to be specified in seconds using the core timer. | |
| Delay | |
| Return | |
Start_Us
| Start_Us | |
| A none blocking function that allows for accurate delays to be specified in micro seconds using the core timer. | |
| Delay | |
| Return | |
Property reference
| Properties |