Component: IntOsc Helper (Matrix Tools)
Author | MatrixTSL |
Version | 1.0 (Release) |
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.
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
This component does not contain any downloadable macros
Simulation macro reference
This component does not contain any simulation macros
Property reference
Oscillator Speed
This property is of type Fixed list of ints and can be referenced with the variable name OscSpeed.
Shows what internal oscillator speeds are available on the device and allows the user to select an option.
Info
This property is of type Multiple lines of text and can be referenced with the variable name Info.
General info to the user, checks to see if the selected oscillator speed matches the project oscillator speed.
Code
This property is of type Line of text and can be referenced with the variable name Code.
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.