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.

%2u 18 *<br />

%5 18 254<br />

%d 18 -2<br />

%x 12 fe<br />

%X 12 FE<br />

%4X 0012 00FE<br />

%3.1w 1.8 25.4<br />

* Result is undefined - Assume garbage.<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

All Devices<br />

#USE RS232 (unless fname is used)<br />

byte x,y,z;<br />

printf("HiThere");<br />

printf("RTCCValue=>%2x\n\r",get_rtcc());<br />

printf("%2u %X %4X\n\r",x,y,z);<br />

printf(LCD_PUTC, "n=%u",n);<br />

ex_admm.c, ex_lcdkb.c<br />

atoi(), puts(), putc(), getc() (for a stream example), RS232 I/O Overview<br />

profileout()<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

profileout(string);<br />

profileout(string, value);<br />

profileout(value);<br />

string is any constant string, and value can be any constant or variable<br />

integer. Despite the length of string the user specifies here, the code<br />

profile run-time will actually only send a one or two byte identifier tag to<br />

the code profile tool to keep transmission and execution time to a<br />

minimum.<br />

Undefined<br />

Typically the code profiler will log and display function entry and exits, to<br />

show the call sequence and profile the execution time of the functions.<br />

By using profileout(), the user can add any message or display any<br />

variable in the code profile tool. Most messages sent by profileout() are<br />

displayed in the 'Data Messages' and 'Call Sequence' screens of the code<br />

profile tool.<br />

If a profileout(string) is used and the first word of string is "START", the<br />

code profile tool will then measure the time it takes until it sees the same<br />

profileout(string) where the "START" is replaced with "STOP". This<br />

measurement is then displayed in the 'Statistics' screen of the code profile<br />

tool, using string as the name (without "START" or "STOP")<br />

234

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

Saved successfully!

Ooh no, something went wrong!