beautypg.com

Motorola DSP56301 User Manual

Page 190

background image

Host-Side Programming Model

6

-72

DSP56301 User’s Manual

Use the following procedure for writing to the CSID:

1.

Power up the DSP56301.

The default CSID value is $00000000. The HI32 is in the Personal Software Reset
state (HM = $0) and responds to memory and configuration space PCI transactions
with a retry event.

2.

Boot the DSP56301through the EPROM or SCI.

a.

The program downloaded to the DSP56301 should do the following:

— Enter the Self-Configuration mode (HM = $5) and write the CSID. The HI32

still responds to memory and configuration space PCI transactions with a retry
event.

— Optional: set the PCTL value.

This enables the DSP56301 to run from the low-frequency internal clock.

— Enter the Personal Software Reset state (HM = $0).

— Enter PCI mode (HM = $1).

Now a PCI master can access the DSP56301 PCI configuration space.

— Optional: Set the mode bits in the OMR to MC:MB:MA = 100 and jump to the

DSP56301 bootstrap ROM start address $FF0000 for further program download
from the HI32 in the PCI mode.

Example 6-5. Code for Setting the CSID

move#0, x0

; set constant

movep

#>$500000, x:M_DCTR

; Set Self-Configuration mode

rep

#4

movep

X0, x:M_DPAR

; set register pointer to SIDR/DVID

movep

#>$012345, x:M_DPMC

; set SIDR value to $2345

movep

#>$6789ab, x:M_DPAR

; set SVID value to $89ab and write SIDR/SVID

movep

x0, x:M_DCTR

; personal software reset

movep

#$100000, x:M_DCTR

; set PCI mode

Note:

Also see Example 6-3 on page 6-17.