17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example Files:<br />

Also See:<br />

None<br />

cwg_status( ), cwg_restart( )<br />

setup_dac( )<br />

Syntax:<br />

Parameters:<br />

setup_dac(mode);<br />

mode- The valid options vary depending on the device. See the devices<br />

.h file for all options. Some typical options include:<br />

· DAC_OUTPUT<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

undefined<br />

Configures the DAC including reference voltage.<br />

Only the devices with built in digital to analog converter.<br />

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

setup_dac(DAC_VDD | DAC_OUTPUT);<br />

dac_write(value);<br />

None<br />

dac_write( ), DAC Overview, See header file for device selected<br />

setup_external_memory( )<br />

Syntax: SETUP_EXTERNAL_MEMORY( mode );<br />

Parameters:<br />

Returns:<br />

mode is one or more constants from the device header file OR'ed<br />

together.<br />

undefined<br />

288

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

Saved successfully!

Ooh no, something went wrong!