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

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
Purpose:
Examples:
Also See:
#USE SPI
Syntax:
Elements:
This directive tells the compiler which timer on the PIC to use for monitoring and
when to grant control to a task. Changes to the specified timer's prescaler will effect
the rate at which tasks are executed.
This directive can also be used to specify the longest time that a task will ever take to
execute with the minor_cycle option. This simply forces all task execution rates to be
a multiple of the minor_cycle before the project will compile successfully. If the this
option is not specified the compiler will use a minor_cycle value that is the smallest
possible factor of the execution rates of the RTOS tasks.
If the statistics option is specified then the compiler will keep track of the minimum
processor time taken by one execution of each task, the maximum processor time
taken by one execution of each task, and the total processor time used by each task.
When linking multiple compilation units, this directive must appear exactly the same
in each compilation unit.
#use rtos(timer=0, minor_cycle=20ms)
#TASK
#USE SPI (options)
Options are separated by commas and may be:
MASTER
SLAVE
BAUD=n
CLOCK_HIGH=n
CLOCK_LOW=n
DI=pin
DO=pin
CLK=pin
MODE=n
ENABLE=pin
LOAD=pin
DIAGNOSTIC=pin
SAMPLE_RISE
SAMPLE_FALL
BITS=n
SAMPLE_COUNT=n
Set the device as the master. (default)
Set the device as the slave.
Target bits per second, default is as fast as possible.
High time of clock in us (not needed if BAUD= is
used). (default=0)
Low time of clock in us (not needed if BAUD= is
used). (default=0)
Optional pin for incoming data.
Optional pin for outgoing data.
Clock pin.
The mode to put the SPI bus.
Optional pin to be active during data transfer.
Optional pin to be pulsed active after data is transferred.
Optional pin to the set high when data is sampled.
Sample on rising edge.
Sample on falling edge (default).
Max number of bits in a transfer. (default=32)
Number of samples to take (uses majority vote).
(default=1
147

Related parts for PCDIDE COMPILER