Specifications
Hardware description
5.13 Audio I/O macros
To use the audio macros you need to:
1. Call
RC200AudioRun() in parallel with the rest of your audio code.
2. Set the audio input to the line in connector or the microphone using
RC200AudioInSetInput().
5.13.1 Audio codec management tasks
extern macro proc RC200AudioRun (ClockRate);
Parameters:
ClockRate: Clock rate of the clock domain of the call to this macro, in Hz.
Timing:
Does not terminate in normal use.
Description:
Runs the device management tasks for the Audio codec. You must run this macro
in parallel with accesses to the device.
5.13.2 Setting the audio input
extern macro proc RC200AudioInSetInput (Input);
Parameters:
Input: Either RC200AudioInLineIn or RC200AudioInMicrophone.
Timing:
1 or more clock cycles.
Description:
Sets the input of the audio ADC to be either the line in connector or the
microphone.
5.13.3 Boosting the input amplifier
RC200AudioInSetMicrophoneBoost (Boost);
Parameters:
Boost: Data value of type unsigned 2.
Timing:
1 or more clock cycles.
Description:
Sets the boost level of the microphone input amplifier, in +10dB steps, from 0 to
+30dB.
5.13.4 Setting the gain level
extern macro proc RC200AudioInSetGain (Mute, LeftVol, RightVol);
www.celoxica.com
Page 54