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

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_timerx( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
setup_timerX(mode)
setup_timerX(mode,period)
Mode is a bit-field comprised of the following configuration constants:
• TMR_DISABLED: Disables the timer operation.
• TMR_INTERNAL: Enables the timer operation using the system clock. Without
divisions, the timer will increment on every instruction cycle. On PCD, this is half
the oscillator frequency.
• TMR_EXTERNAL: Uses a clock source that is connected to the SOSCI/SOSCO
pins
• T1_EXTERNAL_SYNC: Uses a clock source that is connected to the
SOSCI/SOSCO pins. The timer will increment on the rising edge of the external
clock which is synchronized to the internal clock phases. This mode is available
only for Timer1.
• T1_EXTERNAL_RTC: Uses a low power clock source connected to the
SOSCI/SOSCO pins; suitable for use as a real time clock. If this mode is used,
the low power oscillator will be enabled by the setup_timer function. This mode is
available only for Timer1.
• TMR_DIV_BY_X: X is the number of input clock cycles to pass before the timer
is incremented. X may be 1, 8, 64 or 256.
• TMR_32_BIT: This configuration concatenates the timers into 32 bit mode. This
constant should be used with timers 2, 4, 6 and 8 only.
• Period is an optional 16 bit integer parameter that specifies the timer period. The
default value is 0xFFFF.
void
Sets up the timer specified by X (May be 1 – 9). X must be a valid timer on the
target device.
This function is available on all devices that have a valid timer X. Use getenv or
refer to the target datasheet to determine which timers are valid.
Configuration constants are defined in the device's header file.
281

Related parts for PCDIDE COMPILER