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

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
#USE STANDARD_IO
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#USE TIMER
Syntax:
Elements:
#USE STANDARD_IO (port)
port is A, B, C, D, E, F, G, H, J or ALL
This directive affects how the compiler will generate code for input and output
instructions that follow. This directive takes effect until another #USE XXX_IO
directive is encountered. The standard method of doing I/O will cause the compiler
to generate code to make an I/O pin either input or output every time it is used. On
the 5X processors this requires one byte of RAM for every port set to standard I/O.
Standard_io is the default I/O method for all ports.
When linking multiple compilation units be aware this directive only applies to the
current compilation unit.
#use standard_io(A)
ex_cust.c
#USE
#USE TIMER (options)
TIMER=x
Sets the timer to use as the tick timer. x is a valid timer that the PIC has. Default
value is 1 for Timer 1.
TICK=xx
Sets the desired time for 1 tick. xx can be used with ns(nanoseconds), us
(microseconds), ms (milliseconds), or s (seconds). If the desired tick time can't be
achieved it will set the time to closest achievable time and will generate a warning
specifying the exact tick time. The default value is 1us.
BITS=x
Sets the variable size used by the get_ticks() and set_ticks() functions for returning
and setting the tick time. x can be 8 for 8 bits, 16 for 16 bits, 32 for 32bits or 64 for
64 bits. The default is 32 for 32 bits.
ISR
Uses the timer's interrupt to increment the upper bits of the tick timer. This mode
requires the the global interrupt be enabled in the main program.
NOISR
The get_ticks() function increments the upper bits of the tick timer. This requires
that the get_ticks() function be called more often then the timer's overflow rate.
NOISR is the default mode of operation.
FAST_IO,
#USE
FIXED_IO,
General Purpose I/O
149

Related parts for PCDIDE COMPILER