Motorola DSP56301 user manual Lbld

Models: DSP56301

1 372
Download 372 pages 304 b
Page 305
Image 305

; Switch to ISA mode

 

movep X0,X:M_DCTR

; Software personal reset

move #$010020,y1

; width 16, offset 32

 

; (also used as replacment to needed NOP after sw

reset!)

 

movep #$3a0000,X:M_DCTR ; HM=$3 (UB)

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

;HIRH=0 (HIRQ_ pin - handshake disabled)

;HRSP=1 (HRST pin - active low)

;HDRP=0 (HDRQ pin - active high)

;HTAP=0 (HTA pin - active high)

;HDSM=0 (Data-strob pin mode enabled)

;read the "magic sequence" 32 consecutive words with value $37

_LBLC

do #32,_LOOP3 jclr #2,X:M_DSR,* movep X:M_DRXR,A1 and #$00ffff,A cmp #$37,A

beq <_LBLD enddo bra <_LBLC

_LBLD

nop

_LOOP3

;

;Wait for SRRQ to go high (i.e. data ready)

;Store 24-bit data into A1

;Mask upper byte

;Compare the 24-bit dat to $000037

;If dat = $37 then go back to loop

;else break the loop and retry

; read new CBMA value ("ISA base address")

jclr #2,X:M_DSR,*

; Wait for SRRQ to go high (i.e. data ready)

movep X:M_DRXR,A1

; Store 24-bit data into A1

; Switch to Self Configuration mode

movep X0,X:M_DCTR

; Software personal reset

movep A1,X:M_DPMC

; write to DPMC

 

; (also used as replacment to needed NOP after sw

reset!)

 

movep b1,X:M_DCTR

; Configure HI32 as Self-Config

rep #4

 

movep X0,X:M_DPAR

; write to DPAR (CSTR+CCMR,CCCR+CRID,CLAT,CBMA)

; Switch to ISA mode

 

movep X0,X:M_DCTR

; Software personal reset

move #$010010,x1

; width 16, offset 16

 

; (also used as replacment to needed NOP after sw

reset!)

 

movep #$3a0010,x:M_DCTR ; HM=$3 (UB)

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

;HIRH=0 (HIRQ_ pin - handshake disabled)

;HRSP=1 (HRST pin - active low)

;HDRP=0 (HDRQ pin - active high)

;HTAP=0 (HTA pin - active high)

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

;HF4 =1 (turn on flag 4 for handshake)

jclr #2,X:M_DSR,* movep X:M_DRXR,a0 jclr #2,X:M_DSR,* movep X:M_DRXR,x0 jclr #2,X:M_DSR,*

;Wait for SRRQ to go high (i.e. data ready)

;Store number of words

;Wait for SRRQ to go high (i.e. data ready)

;Store starting address

;Wait for SRRQ to go high (i.e. data ready)

DSP56301 User’s Manual

A-9

Page 305
Image 305
Motorola DSP56301 user manual Lbld