PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 288

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
setup_oscillator( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
274
setup_oscillator(mode, target [,source] [,divide] )
Mode is one of:
• OSC_INTERNAL
• OSC_CRYSTAL
• OSC_CLOCK
• OSC_RC
• OSC_SECONDARY
Target is the target frequency to run the device it.
Source is optional. It specifies the external crystal/oscillator frequency. If omitted
the value from the last #USE DELAY is used. If mode is OSC_INTERNAL,
source is an optional tune value for the internal oscillator for PICs that support it.
If omitted a tune value of zero will be used.
Divide in optional. For PICs that support it, it specifies the divide ration for the
Display Module Interface Clock. A number from 0 to 64 divides the clock from 1
to 17 increasing in increments of 0.25, a number from 64 to 96 divides the clock
from 17 to 33 increasing in increments of 0.5, and a number from 96 to 127
divides the clock from 33 to 64 increasing in increments of 1. If omitted zero will
be used for divide by 1.
None
Configures the oscillator with preset internal and external source configurations.
If the device fuses are set and #use delay() is specified, the compiler will
configure the oscillator. Use this function for explicit configuration or
programming dynamic clock switches. Please consult your target data sheets for
valid configurations, especially when using the PLL multiplier, as many
frequency range restrictions are specified.
This function is available on all devices.
The configuration constants are defined in the device’s header file.
setup_oscillator( OSC_CRYSTAL, 4000000, 16000000);
setup_oscillator( OSC_INTERNAL, 29480000);
None
setup_wdt(
), Internal Oscillator Overview

Related parts for PCDIDE COMPILER