Appendix F. CCS C Program Function Reference

This is a summary of the more commonly used functions available in CCS C Version 4 (January 2007). For more details on how to use the listed functions and others not included here, visit www.ccsinfo.com for a current manual download.

The following apply to all the following tables:

1. All functions require a header file, e.g., 16F877A.H.

Table F.1. Port Input and Output (Requires Chip Header File Only, e.g., 16F877A.H)
FunctionDescriptionExampleComment
WRITE BYTEWrite all bits with 8-bit integeroutput_A(255);A replaced by B, C, D, or E
SET BITWrite output bit high using pin labeloutput_high(PIN_A0);A0 replaced by A1, A2, . . ., A7, B0, . . ., B7, etc.
CLEAR BITWrite output bit low using pin labeloutput_low(PIN_A0); ...

Get Programming 8-bit PIC Microcontrollers in C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.