Download UC1394a-1 DSP Master BSP User's Guide
Transcript
USER'S GUIDE
UC1394A-1 DSP MASTER BSP
Date
: 7 November 2006
Doc. no. :DSP_master_BSP_UG
Iss./Rev : 2.1
Page
: 48
at the higher address. To access a register, either 16-bit accesses or 32-bit accesses can be used.
Example:
*(int *)0x020000; reads the MSW of the LLC version register and should yield 711516
*(int *)0x020001; reads the LSW of the LLC version register and should yield 38A016.
*(long *)0x020000 reads the complete version register and should yield 711538A016
Please note: when writing LLC registers, the MSW must be written first. Therefore, 32-bit accesses
may only occur at even addresses (as shown in the example above). Further, the GRF register
must be accessed by 32-bit accesses only.
For a detailed description of LLC registers, please refer to the LLC's data manual [13].
Address:
02000016 – 02003F16
Please note: the LLC registers are already defined in llc.h, which is automatically included, when
you include the BSP header (dsp_master_bsp.h):
#include "dsp_master_bsp.h" /* board support package definitions */
...
printf("LLC version register: %8.8lX\n", LLC_version);
4.13 Interrupts
The TMS320VC5509 has five interrupt lines: INT0 .. INT4
They are used as described below:
Interrupt line
INT0
INT1
INT2
INT3
INT4
Usage
LLC interrupts
I/O pin interrupts
Software streaming interrupts
External interrupt
External interrupt
Table 5: Interrupt usage
4.13.1 LLC interrupts
INT0 is used by the LLC. LLC interrupts must be enabled during the IEEE1394 API initialization as
shown in chapter 4.3.
The LLC interrupts are then handled by API software.
4.13.2 FPGA I/O pin interrupts
All FPGA I/O pins share the same interrupt. In order to identify the interrupt source, the I/O pin
control registers must be checked. In order to generate a new interrupt, all pending interrupt
sources must be serviced. Programming details about I/O pin handling can be found in chapter
5.5.2.
4.13.3 Streaming interrupts
Streaming interrupts are controlled by the STR_INTM and STR_FLAG registers. Please refer to
chapter 5.3.1.1.7 and 5.3.1.1.8 for details.
4.13.4 External interrupts /INT3 and /INT4.
The external MCM interrupt inputs /INT3 and /INT4 are connected to the TMS320VC5509 interrupt
lines INT3 and INT4 through the FPGA. The external interrupts are falling edge triggered, just as
all DSP interrupts. Connector locations of these interrupts can be found in chapter 6.