Difference between revisions of "Component: IntOsc Helper (Matrix Tools)"
Line 15: | Line 15: | ||
A component to help configure the speed of the internal oscillator. Currently only supports 8-bit PIC devices. | A component to help configure the speed of the internal oscillator. Currently only supports 8-bit PIC devices. | ||
− | ==Component | + | ==Component Source Code== |
− | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_IntOsc_Helper.fcfx FC_Comp_Source_IntOsc_Helper.fcfx] | |
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 32: | Line 34: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 115: | Line 119: | ||
|- | |- | ||
| colspan="2" | Code to configure the internal oscillator module. This code must be added to a C icon which should be placed at the top of main. | | colspan="2" | Code to configure the internal oscillator module. This code must be added to a C icon which should be placed at the top of main. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Revision as of 17:47, 9 November 2022
Author | MatrixTSL |
Version | 1.0 |
Category | Matrix Tools |
Contents
IntOsc Helper component
A component to help configure the speed of the internal oscillator. Currently only supports 8-bit PIC devices.
Component Source Code
Please click here for the component source code: FC_Comp_Source_IntOsc_Helper.fcfx
Detailed description
No detailed description exists yet for this component
Examples
The INT OSC helper component is designed to help you configure the rate of the internal oscillator on-board your microcontroller.
It can be found under the Runtime -> Matrix Tools component category.
The oscillator speed drop down menu shows you what speeds are available on your device. Use this to select a speed.
Once you have chosen your required internal oscillator speed copy the code from the Code property.
Paste the configuration code into a C icon at the top of your main macro.
Next change the clock speed in the project options to match your oscillator speed. This will ensure that delays and baud rates are calculated correctly.
Finally you need to enable the internal oscillator in the configuration settings.
If everything is correct then the Info field should confirm that the project options clock speed matches the current speed selection.
Downloadable macro reference
![]() |
Initialise |
Called to set the internal oscillator speed to the specified value. | |
![]() |
Return |