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

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
Examples:
Example Files:
Also See:
#USE RTOS
(The RTOS is only included with the PCW and PCWH packages.)
The CCS Real Time Operating System (RTOS) allows a PIC micro controller to run regularly
scheduled tasks without the need for interrupts. This is accomplished by a function (RTOS_RUN())
that acts as a dispatcher. When a task is scheduled to run, the dispatch function gives control of
the processor to that task. When the task is done executing or does not need the processor
anymore, control of the processor is returned to the dispatch function which then will give control of
the processor to the next task that is scheduled to execute at the appropriate time. This process is
called cooperative multi-tasking.
Syntax:
Elements:
146
#USE RTOS (options)
options are separated by comma and may be:
timer=X
minor_cycle=time
statistics
the current clock rate, an error will be generated. The definition of the
RS232_ERRORS is as follows:
No UART:
With a UART:
Warning:
The PIC UART will shut down on overflow (3 characters received by the hardware
with a GETC() call). The "ERRORS" option prevents the shutdown by detecting
the condition and resetting the UART.
#use rs232(baud=9600, xmit=PIN_A2,rcv=PIN_A3)
ex_cust.c
getc(), putc(), printf(),
Bit 7 is 9th bit for 9 bit data mode (get and put).
Bit 6 set to one indicates a put failed in float high mode.
Used only by get:
Copy of RCSTA register except:
Bit 0 is used to indicate a parity error.
Where x is 0-4 specifying the timer used by the RTOS.
Where time is a number followed by s, ms, us, ns. This is
the longest time any task will run. Each task's execution
rate must be a multiple of this time. The compiler can
calculate this if it is not specified.
Maintain min, max, and total time used by each task.
setup_uart(
),
RS2332 I/O overview

Related parts for PCDIDE COMPILER