Rainbow Electronics AT73C246 User Manual

Page 137

Advertising
background image

137

11050A–PMAAC–07-Apr-10

AT73C246

// account.

TWI_WRITE 0x3F @ AUDIO_CONTROL

TWI_WRITE 0x2F @ AUDIO_CONTROL

// STANDBY release. The codec softly starts.

TWI_WRITE 0x40 @ AUTOSTART.

// Codec Pause by Standby

// All gains are softly ramped down to mute. The codec functions are

// shut down. Current consumption is reduced to a few hundreds of micro-

// amps. VMID remains charged

TWI_WRITE 0x60 @ AUTOSTART

// Pause out: Standby release. The codec softly re-starts.

TWI_WRITE 0x40 @ AUTOSTART

// On-the-fly path change: the stereo microphone inputs are added to the

// DAC playback. The software sets: ONMICL, ONMICR, and ONSIDETONE.

TWI_WRITE 0x70 @ INPUT_CTRL

TWI_WRITE 0x6F @ OUTPUT_CTRL

TWI_WRITE 0x00 @ INPUT_MIXER

// Sidetone gain

TWI_WRITE 0x00 @ SIDETONE_VOL

// ENCONF pulse: the audio controller takes the requested changes into

// account. The path modification is here immediate because STANDBY=0.

TWI_WRITE 0x3F @ AUDIO_CONTROL

TWI_WRITE 0x2F @ AUDIO_CONTROL

// Codec Shutdown. ENAC = 0, STANDBY = 1. The codec turns off smoothly.

// In case of AC Coupling output configuration, HPR & HPL will slowly

// discharge following VMID time constant.

TWI_WRITE 0x20 @ AUTOSTART

WAIT 600ms

// Disable DCBLOCK bit.

TWI_WRITE 0x07 @ AUDIO_CONTROL

// LDO4 shutdown.

TWI_WRITE 0x0C @ VDD4_CONTROL

Advertising