17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

else<br />

data = psp_data;<br />

Example Files:<br />

Also See:<br />

ex_psp.c<br />

setup_psp(), PSP Overview<br />

putc( ) putchar( ) fputc( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

putc (cdata)<br />

putchar (cdata)<br />

fputc(cdata, stream)<br />

cdata is a 8 bit character.<br />

Stream is a stream identifier (a constant byte)<br />

undefined<br />

This function sends a character over the RS232 XMIT pin. A #USE RS232<br />

must appear before this call to determine the baud rate and pin used. The<br />

#USE RS232 remains in effect until another is encountered in the file.<br />

If fputc() is used then the specified stream is used where putc() defaults to<br />

STDOUT (the last USE RS232).<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

All devices<br />

#USE RS232<br />

putc('*');<br />

for(i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!