Component: IntOsc Helper (Matrix Tools)

From Flowcode Help
Revision as of 10:38, 17 August 2016 by BenR (talk | contribs)
Jump to navigationJump to search


Author MatrixTSL
Version 1.0 (Release)
Category Matrix Tools


Image 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.

INTOSC1.jpg


Once you have chosen your required internal oscillator speed copy the code from the Code property.

INTOSC2.jpg


Paste the configuration code into a C icon at the top of your main macro.

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.

INTOSC4.jpg


If everything is correct then the Info field shoud confirm that the project options clock speed matches the current speed selection.

INTOSC5.jpg


Finally you need to enable the internal oscillator in the configuration settings.

INTOSC6.jpg


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.