PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 219

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
Examples:
Example Files:
Also See:
kbhit( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
value = kbhit()
value = kbhit (stream)
stream is the stream id assigned to an available RS232 port. If the stream
parameter is not included, the function uses the primary stream used by getc().
0 (or FALSE) if getc() will need to wait for a character to come in, 1 (or TRUE) if a
character is ready for getc()
If the RS232 is under software control this function returns TRUE if the start bit of
a character is being sent on the RS232 RCV pin. If the RS232 is hardware this
function returns TRUE if a character has been received and is waiting in the
hardware buffer for getc() to read. This function may be used to poll for data
without stopping and waiting for the data to appear. Note that in the case of
software RS232 this function should be called at least 10 times the bit rate to
ensure incoming data is not lost.
All devices.
#USE RS232
char timed_getc() {
}
ex_tgetc.c
getc(),
int32 x=1234;
char string[5];
itoa(x,10, string);
// string is now “1234”
None
None
long timeout;
timeout_error=FALSE;
timeout=0;
while(!kbhit()&&(++timeout<50000)) // 1/2
if(kbhit())
else {
}
#USE
delay_us(10);
return(getc());
timeout_error=TRUE;
return(0);
RS232,
RS232 I/O Overview
// second
205

Related parts for PCDIDE COMPILER