Forums

initialize tlc32040

Started by cekak2007 August 14, 2003
does anyone know how to initialize the tlc32040 in assembly language.
my project is to send digital data then using tlc32040 on tms320c31
dsk to convert the data into analog signal. i'm a beginner using the
tms320c31 dsk. thank you.



Hi

Look in the DSK3APPS subdirectory for the file LOOPAIC.ASM

Note:

The TLC32040 AIC receives its timing information using what is known as a
'secondary transfer' that is interleaved with the DAC data. The problem
with this is two fold.

1) The method used for signaling a secondary transmit is to set the 2 LSB's
of an outgoing DAC value where the 2 LSB bit pattern determines which
register it to be reprogrammed. YOU MUST THEREFOR CLEAR THE 2 LSB'S FOR
NORMAL DAC DATA.

2) If your application fails to respond to each DAC interrupt, the DSP and
AIC can get out of synch, causing the data bits to 'slip' relative to the
frame synch. Being 'data' this can easily initiate an AIC reprogram.

3) The *simple* way to prevent this is to use the DMA to recirculate the DXR
value. That is, once the AIC is running, set the DMA to continuously
read-write the DXR value. This however consumes the DMA for other purposes.

VC33 DSK - PCM3003 Codec
------------------------
The PCM3003 stereo codec on the VC33 DSK is *not* serialy programmed, and
therefor is immune to such problems. However, it is a sigma-delta
converter, and therefor of no use for control or instrumentation
applications. Basically you cant convert a DC level, and the sample delay
is huge.

Hope this helps
Keith Larson
------
At 04:27 AM 8/14/03 -0000, you wrote:
>does anyone know how to initialize the tlc32040 in assembly language.
>my project is to send digital data then using tlc32040 on tms320c31
>dsk to convert the data into analog signal. i'm a beginner using the
>tms320c31 dsk. thank you.
>
+-----------+
|Keith Larson |
|Member Group Technical Staff |
|Texas Instruments Incorporated |
| |
| 281-274-3288 |
| |
| www.micro.ti.com/~klarson |
|-----------+
| TMS320C3x/C4x/VC33 Applications |
| |
| TMS320VC33 |
| The lowest cost and lowest power 500 w/Mflop |
| floating point DSP on the planet! |
+-----------+