SYNCHRONOUS SERIAL INTERFACE (SSI)
MOTOROLA
PORT C
6 - 143
;*************************************************
;
SSI and other I/O EQUATES
*
;*************************************************
IPR
EQU
$FFFF
SSISR
EQU
$FFEE
CRA
EQU
$FFEC
CRB
EQU
$FFED
PCC
EQU
$FFE1
RX
EQU
$FFEF
;*************************************************
;
INTERRUPT VECTOR
*
;*************************************************
ORG
P:$000C
JSR
RCV
;*************************************************
;
MAIN PROGRAM
*
;*************************************************
ORG
P:$40
MOVE
#0,R0
;Pointer to memory buffer for
MOVE
#$08,R1
;received data. Note data will be
MOVE
#3,M0
;split between two buffers which are
MOVE
#3,M1
;modulus 4.
;*************************************************
;
Initialize SSI Port
*
;*************************************************
MOVEP
#$3000,X:IPR
;Set interrupt priority register for SSI.
MOVEP
#$4100,X:CRA
;Set word length = 16 bits.
MOVEP
#$AB00,X:CRB
;Enable RIE and RE; synchronous
;mode with bit frame sync;
;clock and frame sync are
;external; SC0 is an input.
Figure 6-79 Network Mode Receive Example Program (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
.
..