English
Language : 

TLC320AC02C_15 Datasheet, PDF (79/86 Pages) Texas Instruments – Single-Supply Analog Interface Circuit
splk
SPLK
call
CLRC
SPM
SPLK
SPLK
CLRC
#00c8h
082h,IMR
AC02INIT
OVM
0
#042h,IMR
#0C8h,TSPC
INTM
; OVM = 0
; PM = 0
; TDMA ser port rec interrupt
;
; enable interrupts
loop
nop
b
loop
; main program here does nothing.
; a user program can be inserted.
;
;
end of main program
;
;
; TDM serial port receiver interrupt service routine
;
TDMREC:
; This loop insures that the master AC02
ldp
#trcv
; is the first one that is written to in the
bit
trcv,15
; loop. the slave AC02(s) will follow in
bcnd
xxx,tc
; sequential order. The master AC02 has a
; 0 in the 1sb. the slave AC02(s) have a 1
; in the 1sb of the receive word.
ldp
#trcv
lacc
trcv
and
#0fffch
;
; user code would go here for master AC02
;
sacl
tdxr
b
yyy
xxx
ldp
#trcv
lacc
trcv
and
#0fffch
;
; user code would go here for slave AC02
;
sacl
tdxr
yyy
rete
D–4