PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 281

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
setup_dac( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
setup_dci( )
Syntax:
Parameters:
setup_dac(mode);
setup_dac(mode, divisor);
mode- The valid options vary depending on the device. See the devices .h file for
all options. Some typical options include:
· DAC_OUTPUT
divisor- Divides the provided clock
undefined
Configures the DAC including reference voltage. Configures the DAC including
channel output and clock speed.
Only the devices with built in digital to analog converter.
Constants are defined in the devices .h file.
setup_dac(DAC_VDD | DAC_OUTPUT);
dac_write(value);
setup_dac(DAC_RIGHT_ON, 5);
None
dac_write(
setup_dci(configuration, data size, rx config, tx config, sample rate);
configuration - Specifies the configuration the Data Converter Interface should be
initialized into, including the mode of transmission and bus properties. The
following constants may be combined ( OR’d) for this parameter:
· CODEC_MULTICHANNEL
· CODEC_I2S· CODEC_AC16
· CODEC_AC20· JUSTIFY_DATA· DCI_MASTER
· DCI_SLAVE· TRISTATE_BUS· MULTI_DEVICE_BUS
· SAMPLE_FALLING_EDGE· SAMPLE_RISING_EDGE
· DCI_CLOCK_INPUT· DCI_CLOCK_OUTPUT
),
DAC
Overview, See header file for device selected
267

Related parts for PCDIDE COMPILER