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

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
Timers
The 16-bit DSC and MCU families implement 16 bit timers. Many of these timers may be
concatenated into a hybrid 32 bit timer. Also, one timer may be configured to use a low power
32.768 kHz oscillator which may be used as a real time clock source.
Timer1 is a 16 bit timer. It is the only timer that may not be concatenated into a hybrid 32 bit timer.
However, it alone may use a synchronous external clock. This feature may be used with a low
power 32.768 kHz oscillator to create a real-time clock source.
Timers 2 through 9 are 16 bit timers. They may use external clock sources only asynchronously
and they may not act as low power real time clock sources. They may however be concatenated
into 32 bit timers. This is done by configuring an even numbered timer (timer 2, 4, 6 or 8) as the
least significant word, and the corresponding odd numbered timer (timer 3, 5, 7 or 9, respectively)
as the most significant word of the new 32 bit timer.
Timer interrupts will occur when the timer overflows. Overflow will happen when the timer
surpasses its period, which by default is 0xFFFF. The period value may be changed when using
setup_timer_X.
Relevant Functions:
setup_timer_X()
get_timerX()
get_timerXY()
set_timerX()
set_timerXY()
Relevant Preprocessor:
None
Relevant Interrupts:
#int_timerX
*When using a 32-bit timer, the odd numbered timer-interrupt of the hybrid timer must be used. (i.e.
when using 32-bit Timer23, #int_timer3)
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
TIMERX
86
Configures the timer peripheral. X may be any valid timer for the
target device. Consult the target datasheet or use getenv to find the
valid timers.
Retrieves the current 16 bit value of the timer.
Gets the 32 bit value of the concatenated timers X and Y (where XY
may only be 23, 45, 67, 89)
Sets the value of timerX
Sets the 32 bit value of the concatenated timers X and Y (where XY
may only be 23, 45, 67, 89)
Interrupts on timer overflow (period match). X is any valid timer
number.
Returns 1 if the device has the timer peripheral X. X may be 1 - 9

Related parts for PCDIDE COMPILER