Texas Instruments TMS320DM643x 用户手册

下载
页码 98
www.ti.com
6.6.3 Interrupt Handling
6.7
PSC Registers
PSC Registers
Handle the PSC interrupts as described in the following procedure:
First, enable the interrupt.
1. Set the EMUIHBIE bit and the EMURSTIE bit in MDCTL39 to enable the interrupt events that you
want.
Note:
The PSC interrupt PSCINT is sent to the DSP interrupt controller when at least one enabled
event becomes active.
2. Enable the power and sleep controller interrupt (PSCINT) in the DSP interrupt controller. To interrupt
the DSP, PSCINT must be enabled in the DSP interrupt controller. See
for more
information.
The DSP enters the interrupt service routine (ISR) when it receives the interrupt.
1. Read the Mbit in MERRPR1 to determine the source of the interrupt(s). Note that on the DM643x
DMP, only M[39] can cause an interrupt.
2. For each active event that you want to service:
Read the event status bits in MDSTAT39, depending on the status bits read in the previous step to
determine the event that caused the interrupt.
Service the interrupt as required by your application.
Write the M[39] bit in MERRCR1 to clear corresponding status.
Set the ALLEV bit in INTEVAL to 1. Setting this bit reasserts the PSCINT to the DSP interrupt
controller, if there are still any active interrupt events.
lists the memory-mapped registers for the PSC. See the device-specific data manual for the
memory address of these registers.
Table 6-5. Power and Sleep Controller (PSC) Registers
Offset
Register
Description
Section
0h
PID
Peripheral Revision and Class Information Register
18h
INTEVAL
Interrupt Evaluation Register
44h
MERRPR1
Module Error Pending Register 1
54h
MERRCR1
Module Error Clear Register 1
120h
PTCMD
Power Domain Transition Command Register
128h
PTSTAT
Power Domain Transition Status Register
200h
PDSTAT[0]
Power Domain Status 0 Register
300h
PDCTL[0]
Power Domain Control 0 Register
800h-89Ch
MDSTAT0-39
Module Status Register
A00h-A9Ch
MDCTL0-39
Module Control Register
68
Power and Sleep Controller
SPRU978E – March 2008