12.07.2015 Views

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The processor module contains two 16-bit interval timers. Each timer is a one-wordbinary counter that decrements <strong>the</strong> value of its contents once each 50-microsecond interval.Upon decrementing from 0 to —1, <strong>the</strong> timer presents an interruption request to <strong>the</strong>processor. The interruption request occurs when <strong>the</strong> timer has counted one more countthan <strong>the</strong> specified number. Unless <strong>the</strong> timer is stopped, it continues to count and presentsan interruption request again whenever <strong>the</strong> transition from 0 to —1 is made. Thetimer value follows <strong>the</strong> sequence —1, —2, ... , —32768, +32767, ... , +1, 0, —1, ...Though timers are automatically decremented by <strong>the</strong> machine, <strong>the</strong>y are separatelycontrolled by programming. Timers can be started, stopped, read, or set to a value by I/Ocommands. A timer that is running can be read without disturbing its operation, but atimer must be stopped before it can be set to a new value.The interval timers are reset to —1 (hexadecimal FFFF) when <strong>System</strong>/7 power is turnedon. If a value is not set in a timer after system power is turned on and <strong>the</strong> timer is started,<strong>the</strong> timer will count <strong>the</strong> maximum time value (see sequence above) before presenting aninterruption request to <strong>the</strong> processor.The timers are incremented by a crystal controlled oscillator. The accuracy of thisoscillator is as follows:Nominal Accuracy10 mHz +0.0%-0.025%(Maximum loss of 21.6 seconds in 24 hours.)Calibration Accuracy9,999,055 Hz ±0.003% with a 90% confidence factorBoth interval timers are prepared simultaneously by a single prepare I/O command. Theprepare command assigns <strong>the</strong> same priority level and sublevel to both timers, with a moduleaddress of 000000 and a device address of ei<strong>the</strong>r 000000 or 000100 for timer 0 or 1respectively. The prepare command is described fur<strong>the</strong>r in Chapter 4 under "Input/OutputInstruction." There is no interrupt status word associated with <strong>the</strong> interval timers becausean interrupt from an interval timer has only one meaning.Set Timer0 5 8 11 16 20 26 31Op code Fun Zeros Mod DA MA0 0 0 0 1 X X X 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 X 0 0 0 0 0 0 0 01111 I I 1 1 I 1 I I I 11111 11111s•■••••■„....." •••■■••••,■■•• •••■••••■,...., •••••••■■••••••• "••■••••■■■■•,0 8-F 2 0 0 0 or 1 0 0The addressed timer (specified by <strong>the</strong> device address field) is loaded with <strong>the</strong> value residingin <strong>the</strong> index register (R), or <strong>the</strong> accumulator if R=000. This value is <strong>the</strong> number of50-microsecond intervals to be counted, after a start timer command is issued, before <strong>the</strong>timer interrupts <strong>the</strong> system. Timers must be stopped before <strong>the</strong>y are set to a new value.Condition code 2 is set if <strong>the</strong> addressed timer is already running or has an interruptionpending.+AeRnp!mpriiwn!AIMeie!,ilA pp milp gongungag

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

Saved successfully!

Ooh no, something went wrong!