SYNCHRONOUS SERIAL INTERFACE (SSI)
6 - 132
PORT C
MOTOROLA
;*************************************************
;
SSI and other I/O EQUATES
*
;*************************************************
IPR
EQU
$FFFF
CRA
EQU
$FFEC
CRB
EQU
$FFED
PCC
EQU
$FFE1
TX
EQU
$FFEF
FLG
EQU
$0010
ORG
X:0
DC
$AAAA00
;Data to transmit.
DC
$333300
DC
$CCCC00
DC
$F0F000
;*************************************************
;
INTERRUPT VECTOR
*
;*************************************************
ORG
P:$0010
JSR
XMT
;*************************************************
;
MAIN PROGRAM
*
;*************************************************
ORG
P:$40
MOVE
#0,R0
;Pointer to data buffer.
MOVE
#3,M0
;Set modulus to 4.
MOVE
#0,X0
;Initialize channel flag for SSI flag.
MOVE
X0,X:FLG
;Start with right channel first.
;*************************************************
;
Initialize SSI Port
*
;*************************************************
MOVEP
#$3000,X:IPR
;Set interrupt priority register for SSI.
MOVEP
#$401F,X:CRA
;Set continuous clock=5.12/32 MHz
;word length=16.
MOVEP
#$5334,X:CRB
;Enable TIE and TE; make clock and
;frame sync outputs; frame
;sync=bit mode; synchronous mode;
;make SC0 an output.
Figure 6-73 Normal Mode Transmit Example (Sheet 1 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
.
..