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

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
Purpose:
Examples:
Example Files:
Also See:
#WARNING
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
This directive will tell the compiler to initialize and activate the Capacitive Sensing
Module (CSM) on the microcontroller. The compiler requires use of the TIMER0
and TIMER1 modules, and global interrupts must still be activated in the main
program in order for the CSM to begin normal operation. For most applications, a
higher RANGE, lower THRESHOLD, and higher SCANTIME will result better key
press detection. Multiple PIN's may be declared in “options”, but they must be valid
pins used by the CSM. The user may also generate a TIMER0 ISR with TIMER0's
interrupt occuring every SCANTIME milliseconds. In this case, the CSM's ISR will
be executed first.
#USE TOUCHPAD (THRESHOLD=5, PIN_D5='5', PIN_B0='C')
void main(void){
detected
'C'
}
'5'
None
touchpad_state(
#WARNING text
text is optional and may be any text
Forces the compiler to generate a warning at the location this directive appears
in the file. The text may include macros that will be expanded for the
display. This may be used to see the macro expansion. The command may also
be used to alert the user to an invalid compile time situation.
#if
#warning
#endif
ex_psp.c
#ERROR
}
char c;
enable_interrupts(GLOBAL);
while(1){
BUFFER_SIZE < 32
Buffer Overflow may occur
c = TOUCHPAD_GETC();
),
touchpad_getc(
),
touchpad_hit( )
//if PIN_B0 is pressed, c will have
//if PIN_D5 is pressed, c will have
//will wait until a pin is
151

Related parts for PCWHD IDE COMPILER