Download GPL162002A/162003A Programming Guide

Transcript
GPL162002A/162003A Programming Guide
10 Audio Output
10.1
DAC
GPL162002A/162003A supports the function for speech and melody synthesis. The sound data can be
played back in the sequence of the control functions as designed by users’ program. Several algorithms
are recommended for sound compression: PCM, LOG PCM, DM and ADPCM. In addition, Generalplus
provides SUBBAND, CLEP, LPC, HASC, LRC, Wavetable and FM low bit rate (high compression rate)
software algorithm on this GPL162002A/162003A Integrated Development Environment (IDE).
l
a
i e
t
n s
e
U
d
i
f
n 司
o
C 公
s
限
u 有
l
p 份
l
a
r
e 股
n
e 技
G 科
格
普
y
l
n
O
The GPL162002A/162003A has a 16-bit stereo D/A converter with headphone amplifier circuitry which
can drive16Ω headphone directly.
All voice data will be converted to data of 48K Hz sample rate by the
embedded Sample Rate Controller, SRC.
increase sound quality.
Programmers can use the internal EQ and 3D effector to
GPL162002A/162003A provides two 16-bit DAC drivers for two channel audio
outputs. The audio driver can be amplified by a bipolar junction transistor or by an amplifier to drive a set
of speaker or buzzer.
10.2
GPL162002A/162003A also supports IIS interface for connecting other AC device.
z
Two 16-bit DAC channels
z
Each channel has a 16 X 16-bit ring buffer (FIFO)
z
FIFO empty interrupt
z
FIFO full indication flag
z
Support IIS mode
z
Sample rate converter which can convert voice to data of 48K Hz sample rate
z
Embedded digital 7-band equalizer (EQ)
z
Embedded a 3D surround effector
DAC Operation
In DAC mode, DACA signal is outputted through DAC_L pin, and the DACB signal is through DAC_R pin.
r
o
F
The data of DACA and DACB should be delivered to P_CHA_Data (0x78F1) and P_CHB_Data (0x78F9)
registers, respectively.
In the DAC mode, external components (some amplification circuit) are necessary to drive a speaker.
There are several solutions for these external components, for example, simple transistors (8050BJT) or
standard OPs (LM324) or GENERALPLUS amplifier GPY0030.
© Generalplus Technology Inc.
PAGE 93
V1.0 – Dec. 20, 2006