1 introduction
Is day by day perfect along with the digital signal processing theory and the ultra large scale integrated circuit technology swift development, under each kind of real-time processing application demand’s impetus, digital signal processor (DSP) also obtained more and more widespread application.
The DSP monitoring is in the DSP development and the application the very important link. At present in the DSP performance history, the most commonly used way is through purchases processor’s JTAG simulator and the development software package realizes to the DSP debugging and the monitoring. The JTAG debugging aids’ function is very formidable, speaking of not the familiar DSP internal structure and the detail exploiter is one kind of very good choice. But this method also has its flaw: First, the development cost is quite expensive, generally purchases the legal copy simulator and software package’s price in several thousand US dollars to several thousand US dollars different; Next, the versatility is not strong. Not only the different company’s processor needs to use the different simulator, between identical company’s different series DSP also does not have the compatibility.
Based on the above reason, the author unified ADSP-21262 development research other monitorings to realize the way.
2 list DSP system monitoring design
2.1 ADSP-21262 synopses
ADSP-21262 is a section of high performance floating point digital signal processor which ADI Corporation promotes, the characteristic is as follows:
200 MHz work basic frequency. 1 200 MFLOPS;
Super Harvard structure, internal three independent main lines, third-level running water line structure;
2 Mbit pair of mouth SRAM,4 Mbit pair of mouth ROM;
The double essence structure, supports SISD and the SIMD working pattern;
22 independent DMA channels;
Rich auxiliary equipment connection.
2.2 list DSP system monitoring hardware design
List ADSP-21262 DSP system’s monitoring partial hardware circuit as shown in Figure 1.

ADSP-21262 supports on many kinds of electricity guidance way, like exterior EPROM guidance, SPI principal-mode -like guidance, SPI from pattern guidance. Here selects SPI principal-mode -like to take its guidance way. AT25F1024 is serial SPI the Flash memory, uses in procedure which saves ADSP-21262 to need to guide. What if here saves is the monitor routine, then after DSP completes the electricity guidance, then may enter the monitor state. And can carry out the corresponding monitoring function operation.
Here takes the supervisory system and the user PC machine communication connection with asynchronous serial port (UART), completes the first floor monitor routine and between the PC end monitoring service software’s communication. MAX232 is the level switch component, DSP the end CMOS level transformation is PC the end RS232 level. Majority DSP do not provide bringing the UART connection, but because the UART connection is familiar with for the majority project personnel. And the segment is simple, simulates its Tx, the Rx signal separately very easily through two general I/O mouths, therefore here uses this plan.
Certainly may also use the USB controller either the net mouth controller realizes the USB connection way or the network interface way monitoring. Regardless of being the PC machine level monitoring service software design, the first floor monitoring function programming, in the principle basic consistent, different is only the connection way which the upper formation PC machine monitoring service software and between the first floor DSP monitoring function procedure’s communication uses. Here carries on the detailed introduction take the UART connection’s supervisory system as the example.
2.3 monitoring software design
The monitoring major function is facilitates DSP the debugging, therefore its should the function which provides for the user mainly include:
Processor’s replacement and initialization;
Procedure loading and movement;
Examines the DSP internal data area and the procedure area;
Writes the DSP internal data area and the procedure area;
Examines the related system register;
Procedure code counter-assembly demonstration.
Monitors software’s design is composed of the upper formation PC machine monitoring service software and the first floor DSP monitoring function procedure two parts, its hierarchical structure as shown in Figure 2.

2.3.1 PC machine software design
The PC machine software is the user realizes the DSP monitoring operation platform, completes by the C Builder 5.0 developments. Mainly by the monitoring software contact surface, each monitoring functional module and the UART driving function module is composed.
The monitoring software contact surface is the supervisory system and the user carries on the information interactive platform, its conformity each monitoring functional module, the user has completed each functional module through it the transfer, the parameter transmission, the result demonstration and so on.
The PC monitoring functional module completes to the first floor DSP monitoring function procedure transfer, thus realizes the corresponding monitoring function which the user needs.
The UART driving function module’s function is realizes the upper formation PC machine monitoring service software and between the first floor DSP monitoring function procedure UART connection communication.
2.3.2 first floor software design
The first floor DSP monitoring function procedure is the core which the entire monitoring function realizes, completes by the assembly language development. It is composed of the first floor monitoring functional module and the UART agreement receiving and dispatching driving function module.
The first floor monitoring functional module may supply the PC end monitoring functional module to carry on the transfer, it direct completes responsibly to the DSP corresponding management and the operation, for example: The procedure loading and the movement, the DSP interior assign the address memory block the read-write, register’s read-write and so on.
Because ADSP-21262 does not bring the UART connection, therefore needs the UART agreement receiving and dispatching driving function to simulate UART with two general I/O pins the work succession, realizes DSP and the PC communication.
2.4 list DSP system monitoring working mechanism
System’s monitoring functional need PC machine software and the first floor software joint operation realizes, work flow as shown in Figure 3.

Figure 3 left half part represents the first floor DSP monitoring function procedure the flow, the right half part serves software’s operation flow on behalf of the PC machine monitoring, the middle dashed line represents between the first floor software and the PC machine software has the data communication.
In ADSP-21262 has 1 Mbit program memory (PM), when the disposition is 32 word lengths, its address space is: 0X80000~0X87FFF. And 0X80000~0X800FF is the interrupt to meter’s position, after that the space is divided into two parts, deposits the user program and the monitor routine separately. And the user program presence in the low address space, the monitor routine presence in the high address space, the concrete position user may make the adjustment according to the monitor routine size. DSP procedure area schematic drawing as shown in Figure 4. In the first floor monitor routine the UART simulation is through fixed time carries on the sampling to Rx and the Tx holding wire to realize, therefore in monitor routine interrupt to meter’s in timer interruption _TMZHI place execution JUMP TIMER0_INT instruction, TIMER0_INT place to the timer interruption service routine, use in realizing the UART receiving and dispatching function. But when downloads the user program, monitor routine’s center-section vector coating user’s interrupt covers to the meter, therefore was unable to carry out corresponding UART to operate, to solve this problem, joined the following code section in the monitor routine:

Its function is the protection timer interruption vector entrance, guaranteed that enters the timer interruption service routine correctly.
more than 3 DSP system monitoring design
more than 3.1 DSP system monitoring hardware design
Multi-ADSP-21262 DSP system monitoring circuit as shown in Figure 5.

This system altogether is composed of 5 ADSP-21262. And DSP0 supposes primarily the processor, other 4 achievement from processor. The main processor may pass the SPI main line and respectively from the processor communication. Thus realizes to respectively from processor’s monitoring operation. But PC machine uses the list DSP system’s monitor mode which with the main processor between the preceding text states, here does not make the details.
Advocates the DSP establishment is the EPROM guidance way, after on electricity, guides its monitor routine PROGRAM_A from exterior EPROM. From the DSP establishment is respectively SPI from the guidance way, waited for that after advocating DSP completes its own guidance, again monitor routine PROGRAM_B through the SPI mouth will read from DSP. After completing the guidance, main/enters the respective monitor state separately from DSP.

more than 3.2 DSP system monitoring working mechanism
In this system, PC machine to advocates the DSP monitoring mechanism and the list DSP system is similar, but the PC machine monitoring software to advocates time the DSP transmission monitoring order, increased the DSP ID information in the command byte, ID0~ID4 has corresponded DSP0~DSP4 separately. After advocating DSP receives the command byte, withdraws ID information, the DSP code which the judgment user expected, if to advocates the DSP own monitoring order, defers to the list DSP system’s monitoring mechanism to carry on the operation; If to one from DSP monitoring order, then advocates DSP to select correspondingly from DSP, and will monitor the order sending-out correspondingly through the SPI mouth from DSP, from DSP after carrying out the monitoring function which the user requests advocates DSP the result through the SPI mouth sending-out, by advocates DSP to transmit again for the PC machine monitoring service software. Thus realizes the user to the system in each DSP nimble management.
Regarding does not bring SPI connection DSP, also definitely may use other each kind of communication connection achievement to advocate DSP and from the DSP connection.
4 concluding remark
This article discussed and has studied ADI Corporation SHARC the series DSPADSP-21262 monitoring principle and realizes the mechanism. And take list DSP and the multi-DSP system as the example, the distinction introduced in detail by the UART mouth achievement monitoring connection monitoring design method. This method completely is also suitable in other each kind of DSP monitoring realizes.
The user may need the resources which can provide with DSP to use other monitoring method according to the system: For example PC with advocates between the DSP monitoring connection to be possible to choose is the USB mouth, the net mouth and so on; But advocates DSP with from the DSP communication also to be able through other each kind of main line, for example the parallel data/address bus, the synchronized serial port, I2C, HPI, LINK and so on, are decided completely by user’s need, very nimble convenient.