Internal Oscillator

From Flowcode Help
Revision as of 17:08, 5 November 2013 by Admin (talk | contribs) (Created page with "A lot of the devices have an inbuilt oscillator which can be used to reduce the number of devices required to drive the microcontroller. The device datasheet should detail th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

A lot of the devices have an inbuilt oscillator which can be used to reduce the number of devices required to drive the microcontroller.

The device datasheet should detail the type of oscillator available to the device.

Here we have the datasheet for the PIC16F88 device listing the options available for the internal oscillator.

16F88OscCon.jpg


Using a C code icon at the very top of the Main macro we can specify which speed the microcontroller should start-up with.

Here is an example to configure the internal oscillator to 8MHz on the PIC16F88.

16F88IntOsc1.jpg


Here is an example to configure the internal oscillator to 1MHz on the PIC16F88.

16F88IntOsc2.jpg


Be sure to set the clock speed in the project options to the same speed to allow your delays and any communications baud rates to be correct.