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

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:
#USE TOUCHPAD
Syntax:
Elements:
150
This directive creates a tick timer using one of the PIC's timers. The tick timer is
initialized to zero at program start. This directive also creates the define
TICKS_PER_SECOND as a floating point number, which specifies that number of
ticks that will occur in one second.
#USE_TIMER(TIMER=1,TICKS=1ms,BITS=16,NOISR)
unsigned int16 tick_difference(unsigned int16 current, unsigned
int16 previous) {
}
void main(void) {
}
None
get_ticks(),
#USE TOUCHPAD (options)
RANGE=x
Sets the oscillator charge/discharge current range. If x is L, current is nominally 0.1
microamps. If x is M, current is nominally 1.2 microamps. If x is H, current is
nominally 18 microamps. Default value is H (18 microamps).
THRESHOLD=x
x is a number between 1-100 and represents the percent reduction in the nominal
frequency that will generate a valid key press in software. Default value is 6%.
SCANTIME=xxMS
xx is the number of milliseconds used by the microprocessor to scan for one key
press. If utilizing multiple touch pads, each pad will use xx milliseconds to scan for
one key press. Default is 32ms.
PIN=char
If a valid key press is determined on “PIN”, the software will return the character
“char” in the function touchpad_getc(). (Example: PIN_B0='A')
return(current - previous);
unsigned int16 current_tick, previous_tick;
current_tick = previous_tick = get_ticks();
while(TRUE) {
}
current_tick = get_ticks();
if(tick_difference(current_tick, previous_tick) > 1000) {
}
output_toggle(PIN_B0);
previous_tick = current_tick;
set_ticks()

Related parts for PCWHD IDE COMPILER