English
Language : 

TLC320AC02C Datasheet, PDF (79/84 Pages) Texas Instruments – Single-Supply Analog Interface Circuit
SOFTWARE MODULE
*****************************************************************************
MODULE NAME: INOUTB.ASM
In-out routine for C5X DSK with two TLC320AC02s on the
TDM serial port of the C5X in master/slave mode.
This version performs the in/out task for both the master
and slave TLC320AC02 in the receive interrupt service
routine.
*****************************************************************************
*
.mmregs
.ds
01000h
PR1
.word
0104h
;A register
PR2
.word
0219h
;B register
PR3
.word
0300h
;A prime register
PR4
.word
0405h
;amplifier gain register
PR5
.word
0501h
;analog configuration register
PR6
.word
0600h
;digital configuration register
PR7
.word
0730h
;frame synch delay register
PR8
.word
0802h
;frame synch number register
value
.word
0800h
value2
.word
0800h
val_add
.word
0200h
val_add2
.word
0400h
*****************************************************************************
Set up the ISR vector
*****************************************************************************
.ps
080ah
rint:
B
RECEIVE
; 0A; Serial port receive interrupt RINT.
xint:
B
TRANSMIT
; 0C; Serial port transmit interrupt XINT.
trint:
B
TDMREC
txint:
B
TDMTX
;
*
*****************************************************************************
TMS320C5X INITIALIZATION
*****************************************************************************
.ps 0a00h
.entry
START:
SETC
INTM
; Disable interrupts
LDP
#0
; Set data page pointer
OPL
#0834h,PMST
LACC
#0
SAMM
CWSR
SAMM
PDWSR
D–3