Specifications

Hardware description
Parameters:
Mute: Data value of type unsigned 1.
LeftVol: Data value of type unsigned 5.
RightVol: Data value of type unsigned 5.
Timing:
1 or more clock cycles.
Description:
LeftVol and RightVol set the gain level of the DAC output amplifiers, from 0dB
to -46.5dB in -1.5dB steps.
Mute is a boolean where "1" = muted.
5.13.8 Setting the output sample rate
extern macro proc RC200AudioOutSetSampleRate (SampleRateCode);
Parameters:
SampleRateCode: a code selecting the sampling rate. Possible values:
Sample rate code Sample rate (Hz)
RC200AudioSampleRate8000
8000
RC200AudioSampleRate11025
11025
RC200AudioSampleRate16000
16000
RC200AudioSampleRate22050
22050
RC200AudioSampleRate32000
32000
RC200AudioSampleRate44100
44100
RC200AudioSampleRate48000
48000 (default)
Timing:
1 clock cycle.
Description:
Changes the sample rate of the audio output.
5.13.9 Writing to the audio interface
extern macro proc RC200AudioOutWrite (Left, Right);
Parameters:
Left: Data value of type signed 20.
Right: Data value of type signed 20.
Timing:
1 or more clock cycles (blocks until data is sent).
Description:
Writes a single stereo sample of data to the audio interface from the expressions
Left and Right. The macro blocks until a new sample can be written.
5.14 Bluetooth macros
To read from or write to the Bluetooth interface you need to:
1. Call
RC200BluetoothRun().
2. Call
RC200BluetoothRead() or RC200BluetoothWrite() in parallel with this.
You can reset the device using RC200BluetoothReset().
www.celoxica.com
Page 56