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.

setup_clc2(mode);<br />

setup_clc3(mode);<br />

setup_clc4(mode);<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Returns:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

mode – The mode to setup the Configurable Logic Cell (CLC)<br />

module into. See the device's .h file for all options. Some<br />

typical options include:<br />

CLC_ENABLED<br />

CLC_OUTPUT<br />

CLC_MODE_AND_OR<br />

CLC_MODE_OR_XOR<br />

Undefined.<br />

Sets up the CLC module to performed the specified logic.<br />

Please refer to the device datasheet to determine what each<br />

input to the CLC module does for the select logic function<br />

On devices with a CLC module.<br />

Undefined.<br />

setup_clc1(CLC_ENABLED | CLC_MODE_AND_OR);<br />

None<br />

clcx_setup_gate(), clcx_setup_input()<br />

setup_comparator( )<br />

Syntax:<br />

Parameters:<br />

setup_comparator (mode)<br />

mode is a constant. Valid constants are in the devices .h file refer to devices<br />

.h file for valid options. Some typical options are as follows:<br />

A0_A3_A1_A2<br />

A0_A2_A1_A2<br />

NC_NC_A1_A2<br />

NC_NC_NC_NC<br />

A0_VR_A1_VR<br />

A3_VR_A2_VR<br />

A0_A2_A1_A2_OUT_ON_A3_A4<br />

A3_A2_A1_A2<br />

284

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

Saved successfully!

Ooh no, something went wrong!