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

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
input_state( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
input_x( )
Syntax:
Parameters:
Returns:
Function:
value = input_state(pin)
pin to read. 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 .
Bit specifying whether pin is high or low. A 1 indicates the pin is high and a 0
indicates it is low.
This function reads the level of a pin without changing the direction of the pin as
INPUT() does.
All devices.
Nothing
level = input_state(pin_A3);
printf("level: %d",level);
None
input(), set_tris_x(), output_low(), output_high(),
value = input_a()
value = input_b()
value = input_c()
value = input_d()
value = input_e()
value = input_f()
value = input_g()
value = input_h()
value = input_j()
value = input_k()
None
An 16 bit int representing the port input data.
Inputs an entire word from a port. The direction register is changed in
accordance with the last specified #USE *_IO directive. By default with standard
I/O before the input is done the data direction is set to input.
General Purpose I/O
201

Related parts for PCWHD IDE COMPILER