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

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 FAST_IO
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#USE FIXED_IO
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#USE FIXED_IO (port_outputs=pin, pin?)
port is A-G, pin is one of the pin constants defined in the devices .h file.
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 fixed 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. The
pins are programmed according to the information in this directive (not the
operations actually performed). This saves a byte of RAM used in standard I/O.
When linking multiple compilation units be aware this directive only applies to the
current compilation unit.
#use fixed_io(a_outputs=PIN_A2, PIN_A3)
None
#USE
#USE FAST_IO (port)
port is A, B, C, D, E, F, G, H, J or ALL
Affects how the compiler will generate code for input and output instructions that
follow. This directive takes effect until another #use xxxx_IO directive is
encountered. The fast method of doing I/O will cause the compiler to perform I/O
without programming of the direction register. The compiler's default operation is
the opposite of this command, the direction I/O will be set/cleared on each I/O
operation. The user must ensure the direction register is set correctly via
set_tris_X(). When linking multiple compilation units be aware this directive only
applies to the current compilation unit.
#use fast_io(A)
ex_cust.c
#USE
FAST_IO,
FIXED_IO,
#USE
#USE
STANDARD_IO,
STANDARD_IO,
General Purpose I/O
set_tris_X()
,
General Purpose I/O
141

Related parts for PCDIDE COMPILER