section 7 - Index of

section 7 - Index of section 7 - Index of

11.07.2015 Views

7.5 WAIT PROCESSING STATEThe WAIT instruction brings the processor into the wait processing state which is one oftwo low power-consumption states. Asserting the OnCE's debug request pin releases.the DSP from the wait state. In the wait state, the internal clock is disabled from all internalcircuitry except the internal peripherals. All internal processing is halted until anunmasked interrupt occurs, the Debug Request pin of the OnCE is asserted, or the DSPis reset.-Figure 7-15 shows a WAIT instruction being fetched, decoded, and executed. It isfetched as n3 in this example and, during decode, is recognized as a WAIT instruction.The following instruction (n4) is aborted, and the internal clock is disabled from all internalcircuitry except the internal peripherals. The processor stays in this state until aninterrupt or reset is recognized. The response time is variable due to the timing of theinterrupt with respect to the internal clock. Figure 7-15 shows the result of a fast interruptbringing the processor out of the wait state. The two appropriate interrupt vectors arefetched and put in the instruction pipe. The next instruction fetched is n4, which had beenaborted earlier. Instruction execution proceeds normally from this point.,rINTERRUPT SYNCHRONIZED ANDRECOGNIZED AS PENDING~----------------~--~--~--~,INTERRUPT CONTROL CYCLE 1~----------------~--~--+---~~,~--~--~--~--+---~~INTERRUPT CONTROL CYCLE 2FETCH n3 n4 - ~ ii1 ii2 n4 n5r------------------r--~--+---~~,~--_r--_r--~--+_--r_~DECODE n2 WNf - ii1 ii2 n4r------------------r--~--+---~~~~--_r--_r--~--+_--r_~EXECUTEn1 n2 WNf ... ii1 ii2INSTRUCTION CYCLE COUNT= INTERRUPT= INTERRUPT INSTRUCTION WORDn = NORMAL INSTRUCTION WORD1 2 3 4~ 5 6 7 8 9 10L ONLY INTERNAL PERIPHERALSRECEIVE CLOCKFigure 7-15 Wait Instruction TimingFigure 7-16 shows an example of the WAIT instruction being executed at the same timethat an interrupt is pending. Instruction n4 is aborted as before. The WAIT instructioncauses a five-instruction-cycle delay from the time it is decoded, after which the interruptis processed normally. The internal clocks are not turned off, and the net effect is that ofexecuting eight NOP instructions between the execution of n2 and ii1.

INTERRUPT CONTROL CYCLE 1rINTERRUPT SYNCHRONIZED ANDRECOGNIZED AS PENDINGiINTERRUPT CONTROL CYCLE 2iFETCH n3 n4 - - - - - - ii1 ii2DECODE n2 WNr - - - - - - - ii1EXECUTE n1 n2 WNr - - - - - - -INSTRUCTION CYCLE COUNT 1 2 3 4 5 6 7 8 9 10n4ii2ii111INTERRUPT '------------~-----------~INTERRUPT INSTRUCTION WORDEQUIVALENT TO EIGHT NOPsn = NORMAL INSTRUCTION WORDFigure 7-16 Simultaneous Wait Instruction and Interrupt7.6 STOP PROCESSING STATEThe STOP instruction· brings the processor into the stop processing state, which is thelowest power consumption state. In the stop state, the clock oscillator is gated off;whereas, in the wait state, the clock oscillator remains active. The chip clears all peripheralinterrupts and external interrupts (IROA, IROB, and NMI) when it enters the stopstate. Trace or stack errors that were pending, remain pending. The priority levels of theperipherals remain as they were before the STOP instruction was executed. The on-chipperipherals are held in their respective individual reset states while in the stop state.

7.5 WAIT PROCESSING STATEThe WAIT instruction brings the processor into the wait processing state which is one <strong>of</strong>two low power-consumption states. Asserting the OnCE's debug request pin releases.the DSP from the wait state. In the wait state, the internal clock is disabled from all internalcircuitry except the internal peripherals. All internal processing is halted until anunmasked interrupt occurs, the Debug Request pin <strong>of</strong> the OnCE is asserted, or the DSPis reset.-Figure 7-15 shows a WAIT instruction being fetched, decoded, and executed. It isfetched as n3 in this example and, during decode, is recognized as a WAIT instruction.The following instruction (n4) is aborted, and the internal clock is disabled from all internalcircuitry except the internal peripherals. The processor stays in this state until aninterrupt or reset is recognized. The response time is variable due to the timing <strong>of</strong> theinterrupt with respect to the internal clock. Figure 7-15 shows the result <strong>of</strong> a fast interruptbringing the processor out <strong>of</strong> the wait state. The two appropriate interrupt vectors arefetched and put in the instruction pipe. The next instruction fetched is n4, which had beenaborted earlier. Instruction execution proceeds normally from this point.,rINTERRUPT SYNCHRONIZED ANDRECOGNIZED AS PENDING~----------------~--~--~--~,INTERRUPT CONTROL CYCLE 1~----------------~--~--+---~~,~--~--~--~--+---~~INTERRUPT CONTROL CYCLE 2FETCH n3 n4 - ~ ii1 ii2 n4 n5r------------------r--~--+---~~,~--_r--_r--~--+_--r_~DECODE n2 WNf - ii1 ii2 n4r------------------r--~--+---~~~~--_r--_r--~--+_--r_~EXECUTEn1 n2 WNf ... ii1 ii2INSTRUCTION CYCLE COUNT= INTERRUPT= INTERRUPT INSTRUCTION WORDn = NORMAL INSTRUCTION WORD1 2 3 4~ 5 6 7 8 9 10L ONLY INTERNAL PERIPHERALSRECEIVE CLOCKFigure 7-15 Wait Instruction TimingFigure 7-16 shows an example <strong>of</strong> the WAIT instruction being executed at the same timethat an interrupt is pending. Instruction n4 is aborted as before. The WAIT instructioncauses a five-instruction-cycle delay from the time it is decoded, after which the interruptis processed normally. The internal clocks are not turned <strong>of</strong>f, and the net effect is that <strong>of</strong>executing eight NOP instructions between the execution <strong>of</strong> n2 and ii1.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!