Difference between revisions of "Component: IntOsc Helper (Matrix Tools)"
(XML import) |
|||
Line 20: | Line 20: | ||
==Examples== | ==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 Tools -> 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. | ||
+ | |||
+ | [[File:INTOSC1.jpg]] | ||
+ | |||
+ | |||
+ | Once you have chosen your required internal oscillator speed copy the code from the Code property. | ||
+ | |||
+ | [[File:INTOSC2.jpg]] | ||
+ | |||
+ | |||
+ | Paste the configuration code into a C icon at the top of your main macro. | ||
+ | |||
+ | [[File:INTOSC3.jpg]] | ||
+ | |||
+ | |||
+ | 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. | ||
+ | |||
+ | [[File:INTOSC4.jpg]] | ||
+ | |||
+ | |||
+ | If everything is correct then the Info field shoud confirm that the project options clock speed matches the current speed selection. | ||
+ | |||
+ | [[File:INTOSC5.jpg]] | ||
+ | |||
+ | |||
+ | Finally you need to enable the internal oscillator in the configuration settings. | ||
+ | |||
+ | [[File:INTOSC6.jpg]] | ||
+ | |||
Revision as of 10:38, 17 August 2016
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 Tools -> 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.
If everything is correct then the Info field shoud confirm that the project options clock speed matches the current speed selection.
Finally you need to enable the internal oscillator in the configuration settings.
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.
No additional information
Info
This property is of type Multiple lines of text and can be referenced with the variable name Info.
No additional information
Code
This property is of type Line of text and can be referenced with the variable name Code.
Code to add to a C icon which should be placed at the top of main.