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

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
DCI
DCI is an interface that is found on several dsPIC devices in the 30F and the 33FJ families. It is a
multiple-protocol interface peripheral that allows the user to connect to many common audio
codecs through common (and highly configurable) pulse code modulation transmission protocols.
Generic multichannel protocols, I2S and AC’97 (16 & 20 bit modes) are all supported.
Relevant Functions:
setup_dci(configuration, data
size, rx config, tx config,
sample rate);
setup_adc_ports(value)
set_adc_channel(channel)
read_adc(mode)
adc_done()
Relevant Preprocessor:
#DEVICE ADC=xx
Relevant Interrupts:
INT_DCI
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
None
Example Code:
signed int16 left_channel, right_channel;
dci_initialize((I2S_MODE | DCI_MASTER | DCI_CLOCK_OUTPUT |
SAMPLE_RISING_EDGE | UNDERFLOW_LAST | MULTI_DEVICE_BUS),DCI_1WORD_FRAME
| DCI_16BIT_WORD | DCI_2WORD_INTERRUPT, RECEIVE_SLOT0 | RECEIVE_SLOT1,
TRANSMIT_SLOT0 | TRANSMIT_SLOT1, 6000);
dci_start();
while(1)
{
}
64
dci_read(&left_channel, &right_channel);
dci_write(&left_channel, &right_channel);
Initializes the DCI module.
Sets the available adc pins to be analog or digital.
Specifies the channel to be use for the a/d call.
Starts the conversion and reads the value. The mode can also
control the functionality.
Returns 1 if the ADC module has finished its conversion.
Configures the read_adc return size. For example, using a PIC
with a 10 bit A/D you can use 8 or 10 for xx- 8 will return the most
significant byte, 10 will return the full A/D reading of 10 bits.
Interrupt fires on a number (user configurable) of data words received.

Related parts for PCDIDE COMPILER