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...

Create successful ePaper yourself

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

I/0 CommandsThe prepare I/O and halt I/O commands are used as described in Chapter 4 under"Input/Output Instruction" and in this chapter under "Module Device Addresses."Immediate read and immediate write commands transfer data between <strong>the</strong> analog inputcontrol and <strong>the</strong> processor module. The setting of <strong>the</strong> modifier field bits in <strong>the</strong> commandfur<strong>the</strong>r defines <strong>the</strong> operation to be performed.In all I/O commands addressed to analog input, <strong>the</strong> device address field contents mustbe 100100. The module address varies depending upon <strong>the</strong> physical location of <strong>the</strong> multifunctionmodule in <strong>the</strong> 5026 Enclosure.Usually, a complete operation is performed within <strong>the</strong> time limit required for executionof <strong>the</strong> immediate commands. Exceptions to this rule are three convert commands that start<strong>the</strong> conversion cycle and <strong>the</strong>n permit <strong>the</strong> program to resume normal operation while awaiting<strong>the</strong> interruption request presented by <strong>the</strong> module at <strong>the</strong> end of <strong>the</strong> conversion cycle.Executing any of <strong>the</strong> three commands sets on <strong>the</strong> ISW device-busy bit, which remains onduring <strong>the</strong> conversion time. When <strong>the</strong> conversion is complete, an interruption request ispresented to <strong>the</strong> processor, <strong>the</strong> device-busy bit is turned off, and <strong>the</strong> device-end bit isturned on. Condition code 2 is returned to all immediate commands issued to this deviceaddress (except read ISW) while <strong>the</strong> module is busy or has a pending interruption.The normal analog input programming routine is shown in Figure F-1 of "Appendix F."Convert Analog Input0 5 8 11 16 20 26 31Op codeRFunZerosMod0 0 0 0 1 XXX 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 XXXXXXMI ii 11 iiil 1111 1111 11111.........,...../•■•••■•••••'00.Y.••••••••■■•••••••••••••■■■••••• "•••••••■••••••"0 8-F 2 0 0 9 0-3 XDAMAThis command starts an analog-to-digital conversion cycle based upon control informationcontained in <strong>the</strong> index register (R), or <strong>the</strong> accumulator if R=000. The control informationword has <strong>the</strong> format:0 15Not usedMpxr addr• • • • • R RR 0 0 OXX X XX1 1 1 1111111•••■•■•••,...M./ ••■•■••.,■10.4.0 0-7 0-1The range bits (RRR) in <strong>the</strong> control word specify <strong>the</strong> input voltage range and <strong>the</strong> amplifiergain desired, as shown in <strong>the</strong> following table.RRR Bits • Input Voltage Range Amplifier Gain000 — Automatic gain001 +10 mV 512010 ±20 mV 256011 +40 mV 128100 +80 mV 64101 +160 mV 32110 +640 mV 8111 ±5.12V 1- , , ,11111111111•M 1.111111■11111.111111111111.1111111M1 11111111111 1111111111M 111111M

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

Saved successfully!

Ooh no, something went wrong!