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

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
output_drive( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
output_float( )
Syntax:
Parameters:
Returns:
Function:
Availability:
218
output_drive(pin)
Pins are defined in the devices .h file. The actual value is a bit address. For
example, port a (byte 0x2C2 ) bit 3 would have a value of 0x2C2*8+3 or
5651. This is defined as follows: #DEFINE PIN_A3 5651 .
undefined
Sets the specified pin to the output mode.
All devices.
Pin constants are defined in the devices.h file.
output_drive(pin_A0);
output_bit(pin_B0, input(pin_A0))
None
input(), output_low(), output_high(), output_bit(), output_x(),
output_float (pin)
Pins are defined in the devices .h file. The actual value is a bit address. For
example, port a (byte 0x2C2 ) bit 3 would have a value of 0x2C2*8+3 or 5651.
This is defined as follows: #DEFINE PIN_A3 5651. The PIN could also be a
variable to identify the pin. The variable must have a value equal to one of the
constants (like PIN_A1) to work properly. Note that doing I/0 with a variable
instead of a constant will take much longer time.
undefined
Sets the specified pin to the input mode. This will allow the pin to float high to
represent a high on an open collector type of connection.
All devices.
// sets pin_A0 to output its value
// makes B0 the same as A0
output_float()

Related parts for PCDIDE COMPILER