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.

Built-in Functions<br />

LCD_DISABLED, LCD_STATIC, LCD_MUX12, LCD_MUX13,<br />

LCD_MUX14<br />

See the devices .h file for other device specific options.<br />

Prescale may be 1-16 for the LCD clock.<br />

Segments0-31 may be any of the following constants or'ed together when<br />

using the PIC16C92X series of chips::<br />

SEG0_4, SEG5_8, SEG9_11, SEG12_15, SEG16_19,<br />

SEG20_26, SEG27_28, SEG29_31 ALL_LCD_PINS<br />

When using the PIC16F/LF1xxx or PIC18F/LFxxxx series of chips, each of the<br />

segments are enabled individually. A value of 1 will enable the segment, 0 will<br />

disable it and use the pin for normal I/O operation.<br />

Segments 32-47 when using a chip with more than 32 segments, this enables<br />

segments 32-47. A value 1 will enable the segment, 0 will disable it. Bit 0<br />

corresponds to segment 32 and bit 15 corresponds to segment 47.<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires<br />

undefined.<br />

This function is used to initialize the LCD Driver Module on the PIC16C92X and<br />

PIC16F/LF193X series of chips.<br />

Only on devices with built-in LCD Driver Module hardware.<br />

Constants are defined in the devices *.h file.<br />

Examples:<br />

· setup_lcd( LCD_MUX14 | LCD_STOP_ON_SLEEP, 2, ALL_LCD_PINS );<br />

// PIC16C92X<br />

· setup_lcd( LCD_MUX13 | LCD_REF_ENABLED | LCD_B_HIGH_POWER, 0, 0xFF0429);<br />

// PIC16F/LF193X – Enables Segments 0, 3, 5, 10, 16, 17, 18, 19, 20,<br />

21, 22, 23<br />

Example Files:<br />

Also See:<br />

ex_92lcd.c<br />

lcd_symbol(), lcd_load(), lcd_contrast( ), Internal LCD Overview<br />

setup_low_volt_detect( )<br />

Syntax:<br />

Parameters:<br />

setup_low_volt_detect(mode)<br />

mode may be one of the constants defined in the devices .h file.<br />

LVD_LVDIN, LVD_45, LVD_42, LVD_40, LVD_38, LVD_36, LVD_35,<br />

LVD_33, LVD_30, LVD_28, LVD_27, LVD_25, LVD_23, LVD_21,<br />

LVD_19<br />

One of the following may be or’ed(via |) with the above if high voltage<br />

291

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

Saved successfully!

Ooh no, something went wrong!