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.

<strong>CCS</strong> C <strong>Compiler</strong> <strong>Manual</strong><br />

<strong>PCB</strong> / <strong>PCM</strong> / <strong>PCH</strong><br />

How can the RB interrupt be used to detect a button press? ................................................ 355<br />

How do I directly read/write to internal registers? ................................................................. 356<br />

How do I do a printf to a string? ............................................................................................ 356<br />

How do I get getc() to timeout after a specified time? ........................................................... 357<br />

How do I put a NOP at location 0 for the ICD? ..................................................................... 357<br />

How do I wait only a specified time for a button press? ........................................................ 357<br />

How do I write variables to EEPROM that are not a byte? .................................................... 358<br />

How does one map a variable to an I/O port? ...................................................................... 358<br />

How does the compiler determine TRUE and FALSE on expressions? ................................ 359<br />

How does the PIC® connect to a PC?.................................................................................. 360<br />

How does the PIC® connect to an I2C device? .................................................................... 361<br />

How much time do math operations take? ........................................................................... 361<br />

Instead of 800, the compiler calls 0. Why? ........................................................................... 362<br />

Instead of A0, the compiler is using register 20. Why? ........................................................ 362<br />

What can be done about an OUT OF RAM error? ................................................................ 362<br />

What is an easy way for two or more PICs® to communicate? ............................................ 363<br />

What is an easy way for two or more PICs® to communicate? ............................................ 364<br />

What is the format of floating point numbers? ...................................................................... 365<br />

Why does the .LST file look out of order? ............................................................................. 366<br />

Why does the compiler show less RAM than there really is? ................................................ 367<br />

Why does the compiler use the obsolete TRIS? ................................................................... 367<br />

Why is the RS-232 not working right? .................................................................................. 368<br />

Example Programs ................................................................................................................. 371<br />

EXAMPLE PROGRAMS ...................................................................................................... 371<br />

Software License Agreement .................................................................................................. 393<br />

SOFTWARE LICENSE AGREEMENT ................................................................................. 393<br />

Index ....................................................................................................................................... 395<br />

xii

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

Saved successfully!

Ooh no, something went wrong!