section 7 - Index of

section 7 - Index of section 7 - Index of

11.07.2015 Views

DO Start Hardware Loop DOInstruction Format:DO S, exprOpcode:23 20 19 16 15 8 7 0o 0 0 01 0 1 1 o 11 1 D DID D D DID 0 0 01 0 o 0 0ABSOLUTE ADDRESS EXTENSIONInstruction Fields:S=6-bit Source operand = 000000,expr=16-bit Absolute Address in 24-bit extension wordSSource D D D D D D S/L Source D D D D D DXO 0 0 0 1 0 0 no SR 1 1 1 0 0 1X1 0 0 0 1 0 1 no OMR 1 1 1 0 1 0YO 0 0 0 1 1 0 no SP* 1 1 1 0 1 1Y1 0 0 0 1 1 1 no SSL** 1 1 1 1 0 1AO 0 0 1 0 0 0 no LA 1 1 1 1 1 0BO 0 0 1 0 0 1 no LC 1 1 1 1 1 1A2 0 0 1 0 1 0 no RO-R7 0 1 0 r r rB2 0 0 1 1 0 0 no NO-N7 0 1 1 n n nA1 0 0 1 1 0 1 no MO-M7 1 0 0 m m mA 0 0 1 1 1 0 yes [see Notes on page A-97]B 0 0 1 1 1 1 yes [see Notes on page A-97]where rrr=Rn registerwhere nnn=Nn registerwhere mmm=Mn register-*For DO SP, expr The actual value that will be loaded into the loop counter (LC) isthe value of the stack pointer (SP) before the execution of theDO instruction, incremented by 1.Thus, if SP=3, the execution of the DO SP,expr instruction will load the loopcounter (LC) with the value LC=4.**For DO SSL, expr The loop counter (LC) will be loaded with its previous valuewhich was saved on the stack by the DO instruction itself.

DO Start Hardware Loop DONotes: If A or B is specified as the destination operand, the following sequence of eventstakes place:1. The S bit is computed according to its definition (See Section A.S)2. The accumulator value is scaled according to the scaling mode bits SOand S1 in the status register (SR).3. If the accumulator extension is in use, the output of the shifter is limitedto the maximum positive or negative saturation constant, and the L bit isset.4. The LS 16 bits of the resulting 24 bit value is loaded into the loopcounter (LC). The original contents of A or B are not changed.Timing: 6+mv oscillator clock cyclesMemory: 2 program words-

DO Start Hardware Loop DONotes: If A or B is specified as the destination operand, the following sequence <strong>of</strong> eventstakes place:1. The S bit is computed according to its definition (See Section A.S)2. The accumulator value is scaled according to the scaling mode bits SOand S1 in the status register (SR).3. If the accumulator extension is in use, the output <strong>of</strong> the shifter is limitedto the maximum positive or negative saturation constant, and the L bit isset.4. The LS 16 bits <strong>of</strong> the resulting 24 bit value is loaded into the loopcounter (LC). The original contents <strong>of</strong> A or B are not changed.Timing: 6+mv oscillator clock cyclesMemory: 2 program words-

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

Saved successfully!

Ooh no, something went wrong!