beautypg.com

Motorola DSP56301 User Manual

Page 303

background image

DSP56301 User’s Manual

A

-7

M_SCTE EQU 9

; SCI Transmitter Enable

M_TDRE EQU 1 ; Transmit Data Register Empty
M_RDRF EQU

2 ; Receive Data Register Full

M_PCRE EQU $FFFF9F ; Port E Control register

M_DCTR EQU $FFFFC5 ; DSP CONTROL REGISTER (DCTR)

M_DPMC EQU $FFFFC7 ; DSP PCI MASTER CONTROL REGISTER (DPMC)

M_DPAR EQU $FFFFC8 ; DSP PCI ADDRESS REGISTER (DPAR)

M_DSR EQU $FFFFC9 ; DSP STATUS REGISTER (DSR)

M_DRXR EQU $FFFFCB ; DSP RECEIVE DATA FIFO (DRXR)

M_AAR1 EQU $FFFFF8 ; Address Attribute Register 1

M_PDRC EQU $FFFFBD ;; Port C GPIO Data Register

M_PRRC EQU $FFFFBE ;; Port C Direction Register

SCK0 EQU $3 ;; SCK0 is bit #3 as GPIO

ORG PL:$ff0000,PL:$ff0000 ; bootstrap code starts at $ff0000

START

clr a #$0a,X0 ; clear a and load X0 with constant $0a0000

move #$3e,x1 ; X1=$3E0000 prepare for UB mode host programming

; HM=$3 (UB)

; HIRD=1 (HIRQ_ pin - drive high enabled)

; HIRH=1 (HIRQ_ pin - handshake enabled)

; HRSP=1 (HRST pin - active low)

; HTAP=0 (HTA pin - active high)

; HDSM=0 (Double-strobe pin mode enabled)

movec omr,a1

and #$f,a ; modd is not don’t care

move a1,n0

move #TABLE,r0

TABLE ;; Table is here because it should actuallly start from 1

jmp (r0)+n0

one ; Reserved, currently aliased to ’b1001

bra

two

bra

three ; Reserved, used for burn-in

bra

four

bra

five ; Reserved, currently aliased to ’b1101

bra

six

bra

seven ; Reserved, currently aliased to ’b1111

bra

eight nop

; external boot

nine

bra

ten

bra

eleven

bra

twelve

bra

thirteen

bra

fourteen

bra

fifteen