PCWHD IDE COMPILER Custom Computer Services Inc (CCS), PCWHD IDE COMPILER Datasheet - Page 81
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
1.PCD_COMMAND_LINE_COMPILER.pdf
(373 pages)
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
- Current page: 81 of 373
- Download datasheet (4Mb)
Example Code:
#use fast_io(b)
...
Int8 Tris_value= 0x0F;
int1 Pin_value;
...
set_tris_b(Tris_value);
output_high(PIN_B7);
If(input(PIN_B0)){
output_high(PIN_B7)
;}
Input Capture
These functions allow for the configuration of the input capture module. The timer source for the
input capture operation can be set to either Timer 2 or Timer 3. In capture mode the value of the
selected timer is copied to the ICxBUF register when an input event occurs and interrupts can be
configured to fire as needed.
Relevant Functions:
setup_capture(x, mode)
get_capture(x, wait)
Relevant Preprocessor:
None
Relevant Interrupts:
INT_ICx
Relevant Include Files:
None, all functions built-in.
Relevant getenv() parameters:
None
Example Code:
setup_timer3(TMR_INTERNAL | TMR_DIV_BY_8);
setup_capture(2, CAPTURE_FE | CAPTURE_TIMER3);
while(TRUE) {
}
timerValue = get_capture(2, TRUE);
printf(“A module 2 capture event occurred at: %LU”, timerValue;
Sets the operation mode of the input capture module x
Reads the capture event time from the ICxBUF result register. If wait is
true, program flow waits until a new result is present. Otherwise the
oldest value in the buffer is returned.
Interrupt fires on capture event as configured
//Sets B0:B3 as
//Set the pin B7 to High
//Read the value on pin B0, set B7 to low if pin
B0 is high
input and B4:B7 as output
67
Related parts for PCWHD IDE COMPILER
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
PROTOTYPING BOARD FOR PIC MCU
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
Extra CCS C Manual
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
MACH X Programmer
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
PCD For 24-bit (PIC24/dsPIC)
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
LOAD-n-GO Programmer
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
EMBEDDED INTERNET DEVELOPMENT KIT W/PCWH
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
PIC24F Development Kit With PCWHD
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
PIC24F Development Kit With PCDIDE
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
PIC24H Development Kit With PCWHD
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
PIC24H Development Kit With PCDIDE
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
PIC18F6722 Embedded C Development Kit With PCWH Compiler
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
PIC18F8722 Embedded C Development Kit With PCWH Compiler
Manufacturer:
Custom Computer Services Inc (CCS)
Part Number:
Description:
USB Master Prototyping Board
Manufacturer:
Custom Computer Services Inc (CCS)