PCWHD IDE COMPILER Custom Computer Services Inc (CCS), PCWHD IDE COMPILER Datasheet - Page 231

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
output_bit( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
output_bit (pin, value)
Pins are defined in the devices .h file. The actual number 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. The variable must have a value equal to one of the constants (like
PIN_A1) to work properly. The tristate register is updated unless the FAST_I0
mode is set on port A. Note that doing I/0 with a variable instead of a constant will
take much longer time. Value is a 1 or a 0.
undefined
Outputs the specified value (0 or 1) to the specified I/O pin. The
method of setting the direction register is determined by the last #USE
*_IO directive.
All devices.
Pin constants are defined in the devices .h file
output_bit( PIN_B0, 0);
// Same as output_low(pin_B0);
output_bit( PIN_B0,input( PIN_B1 ) );
// Make pin B0 the same as B1
output_bit( PIN_B0,
// Output the MSB of data to
// B0 and at the same time
// shift B1 into the LSB of data
int16 i=PIN_B0;
ouput_bit(i,shift_left(&data,1,input(PIN_B1)));
//same as above example, but
//uses a variable instead of a constant
ex_extee.c
input(), output_low(), output_high(), output_float(), output_x(),
#USE
shift_left(&data,1,input(PIN_B1)));
FAST_IO,
with
9356.c
#USE
STANDARD_IO,
General Purpose I/O
#USE
FIXED_IO,
217

Related parts for PCWHD IDE COMPILER