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.

Functional Overview<br />

Relevant Interrupts:<br />

#int_lcd<br />

Relevant Inlcude Files:<br />

LCD frame is complete, all pixels displayed<br />

None, all functions built-in to the compiler.<br />

Relevant getenv() Parameters:<br />

LCD<br />

Returns TRUE if the device has an Internal LCD Driver Module.<br />

Example Program:<br />

// How each segment of the LCD is set (on or off) for the ASCII digits 0 to 9.<br />

byte CONST DIGIT_MAP[10] = {0xFC, 0x60, 0xDA, 0xF2, 0x66, 0xB6, 0xBE, 0xE0, 0xFE,<br />

0xE6};<br />

// Define the segment information for the first digit of the LCD<br />

#define DIGIT1 COM1+20, COM1+18, COM2+18, COM3+20, COM2+28, COM1+28,<br />

COM2+20, COM3+18<br />

// Displays the digits 0 to 9 on the first digit of the LCD.<br />

for(i = 0; i

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

Saved successfully!

Ooh no, something went wrong!