11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Standard I/O Functions and Serial I/OC Language FeaturesTable 3.13: Supported standard I/O functionsFunction nameprintf(const char * s, ...)sprintf(char * buf, const char * s, ...)PurposeFormatted printing to stdoutWrites formatted text to buf3.13.3 Linker-Defined SymbolsThe link address of a psect can be obtained from the value of a global symbol with name __Lnamewhere name is the name of the psect. For example, __Lbss is the low bound of the bss psect. Thehighest address of a psect (i.e. the link address plus the size) is symbol __Hname.If the psect has different load and link addresses the load start address is specified as __Bname.3.14 Standard I/O Functions and Serial I/OA number of the standard I/O functions are provided in the C library with the compiler, specificallythose functions intended to read and write formatted text on standard output and input. A list of theavailable functions is in Table 3.13. More details of these functions can be found in Appendix A.Before any characters can be written or read using these functions, the putch() and getch()functions must be written. Other routines which may be required include getche() and kbhit().64

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

Saved successfully!

Ooh no, something went wrong!