17.05.2015 Views

16-Bit Microprocessor Handbook

16-Bit Microprocessor Handbook

16-Bit Microprocessor Handbook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Clock Logic<br />

Interface Logic<br />

Interface Logic<br />

Programmable<br />

Timers<br />

Read Only<br />

Memory<br />

I/O Ports<br />

Figure 1-3. Logic of the INS8900 <strong>Microprocessor</strong><br />

INS8900 STACK<br />

A Stack is provided on the INS8900 (and PACE) chip. The Stack is <strong>16</strong> bits wide and 10 words deep. The Stack is<br />

not a cascade stack. as described in Volume 1. Chapter 6; rather. chip logic maintains its own Stack Pointer to identify<br />

the next free Stack word. The Stack Pointer is automatically incremented and decremented in response to Push and<br />

Pull operations. Stack Push and Pull operations are initiated by CPU logic during execution of Jump-to-Subroutine<br />

(JSR) and Return-from-Subroutine (RTS) instructions. and during interrupt processing. to automatically save and<br />

restore the Program Counter.<br />

In addition. the Stack can be used for temporary storage of data or status information. There are instructions<br />

which allow you to transfer words between the Stack and any Accumulator. or the Status and Control Flag register.<br />

This capability can significantly reduce the number of memory accesses required (thus increasing system speed) and<br />

can also reduce read/write memory requirements since intermediate values can be stored on trh-.e.S .. t.a-.c .. k ___..<br />

Whenever the Stack becomes completely filled or emptied. an Interrupt Request is<br />

generated on the INS8900 chip. If you have enabled Stack Interrupts. program execution will<br />

be suspended. allowing you to deal with the situation. A Stack Fu II condition will indicate that<br />

it is time to dump data accumulated on the Stack out to read/write memory.<br />

INS8900 AND<br />

PACE STACK<br />

INTERRUPTS<br />

1-5

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

Saved successfully!

Ooh no, something went wrong!