SYNCHRONOUS SERIAL INTERFACE (SSI)
6 - 142
PORT C
MOTOROLA
;*************************************************
;
Initialize SSI Port
*
;*************************************************
MOVEP
#$3000,X:IPR
;Set interrupt priority register for SSI.
MOVEP
#$411F,X:CRA
;Set continuous clock=5.12/32 MHz
;word length=16.
MOVEP
#$5B34,X:CRB
;Enable TIE and TE; make clock and
;frame sync outputs; frame
;sync=bit mode; synchronous mode;
;make SC0 an output.
;*************************************************
;
Init SSI Interrupt
*
;*************************************************
ANDI
#$FC,MR
;Unmask interrupts.
MOVEP
#$01F8,X:PCC
;Turn on SSI port.
JMP
*
;Wait for interrupt.
;*************************************************
;
MAIN INTERRUPT ROUTINE
*
;*************************************************
XMT
JSET
#0,X:FLG,LEFT
;Check user flag.
RIGHT
BCLR
#0,X:CRB
;Clear SC0 indicating right channel data
MOVEP
X:(R0)+,X:TX
Move data to TX register.
MOVE
#>$01,X0
;Set user flag to 1
MOVE
X0,X:FLG
;for next data.
RTI
LEFT
BSET
#0,X:CRB
;Set SC0 indicating left channel data.
MOVEP
X0,X:TSR
;Write to TSR register.
MOVE
#>$00,X0
;Clear user flag
MOVE
X0,X:FLG
;for next data.
RTI
END
Figure 6-78 Network Mode Transmit Example Program (Sheet 2 of 2)
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..
Содержание DSP56002
Страница 380: ......
Страница 382: ......
Страница 390: ...Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...