12.07.2015 Views

Systems Reference Library - All about the IBM 1130 Computing ...

Systems Reference Library - All about the IBM 1130 Computing ...

Systems Reference Library - All about the IBM 1130 Computing ...

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.

Page of GA26-5918-8Revised July 14, 1971By TNL: GN26-0269Sense DeviceInitialize Write (Start I/O)15 0 4 8 II 12 13 14 151 0 0 1 0 1 1 1 10 = Al low pol I ing1 = Suppress polling15 0 4 II 12 15CCW Address [1.0.0.1.011. 0.11Control unitaddress00 = Channel status word 101 = Channel status word 21 0 = Channel status word 31 1 = Channel status word 40 = No indicator reset1 = Indicator resetDevice addressI1301900<strong>1130</strong>198.41This command causes one of <strong>the</strong> four words comprising<strong>the</strong> selector channel status word (CSW) to beread into <strong>the</strong> accumulator. Modifier bits 13 and 14specify <strong>the</strong> word to be read, and modifier bit 15 controlsreset of <strong>the</strong> program resettable indicators in <strong>the</strong>CSW. If modifier bit 15 is on, <strong>the</strong> reset function isperformed. If modifier bit 15 is off, <strong>the</strong> reset functionis not performed. (The individual words of <strong>the</strong>CSW, interrupt indicators, and program resettableindicators are described under "Channel StatusWord. ")Modifier bit 12 of an XIO sense device controls<strong>the</strong> channel polling function. Polling is <strong>the</strong> ability of<strong>the</strong> selector channel to acknowledge a request forservice from a control unit. If modifier bit 12 is on,polling is suppressed. If modifier bit 12 is off,polling is allowed.Aside from XIO sense device with modifier bit12 on, polling also is suppressed by: (1) initiationof a start I/0 operation (XIO initialize write), or(2) <strong>the</strong> selector channel accepting a request forservice from a control unit.Regardless of <strong>the</strong> cause of <strong>the</strong> suppression, pollingremains suppressed until: (1) an XIO sense devicewith modifier bit 12 off is given, (2) a halt I/O(XIO control) is given, or (3) RESET on <strong>the</strong> P-Cconsole is pressed.A request for service from a control unit isusually <strong>the</strong> result of device end or attention turningon in <strong>the</strong> unit status portion of <strong>the</strong> CSW. If polling isnot suppressed and a control unit requests service,<strong>the</strong> unit address-status portion of <strong>the</strong> CSW is transferredfrom <strong>the</strong> control unit to <strong>the</strong> selector channel,and a unit status pending interrupt is given to <strong>the</strong>P-C. The selector channel suppresses fur<strong>the</strong>r pollinguntil <strong>the</strong> program reads <strong>the</strong> status word andreinitiates polling.Polling should be suppressed when any operationis in progress in <strong>the</strong> channel or control unit. Pollingshould always be enabled after <strong>the</strong> last interrupthas been serviced, unless ano<strong>the</strong>r operation is beingstarted. In that case, polling must be suppressed.This allows <strong>the</strong> selector channel to acknowledge arequest from <strong>the</strong> control unit, such as attention or adevice becoming ready.Polling must also be enabled after receiving abusy in response to a start I/O. This allows <strong>the</strong>selector channel to acknowledge <strong>the</strong> request (from<strong>the</strong> control unit) that indicates when <strong>the</strong> device orcontrol unit is no longer busy.To prevent losing <strong>the</strong> interrupts that occur at<strong>the</strong> end of busy, a delay of approximately 30 tisshould be provided between <strong>the</strong> XIO sense that suppressespoll and <strong>the</strong> XIO sense that checks for aninterrupting condition before a start I/O. The selectorchannel may have started to acknowledge arequest from a control unit at <strong>the</strong> time polling wassuppressed. If a start I/O is performed beforesensing for this interrupting condition, <strong>the</strong> unitstatus, device, and control unit address will be lost.Polling should be reinitiated following completionof a start I/0 operation by issuing an XIO sensedevice with modifier bit 12 equal to 0.This command is used as a start I/0 to initiate allselector channel I/0 operations. The address fieldcontains <strong>the</strong> core storage address of a channel commandword (CCW). The CCW specifies <strong>the</strong> operationto be performed by <strong>the</strong> channel, control unit, anddevice as well as <strong>the</strong> core storage area associatedwith <strong>the</strong> operation. IOCC modifier bits 8 through 11select <strong>the</strong> control unit, and modifier bits 12 through15 select <strong>the</strong> device to which <strong>the</strong> operation pertains.Once <strong>the</strong> IOCC area code, function, and modifiershave been sent to <strong>the</strong> selector channel and <strong>the</strong> CCWaddress has been loaded into <strong>the</strong> data channel addressregister (CAR), <strong>the</strong> P-C is released. The selectorchannel continues <strong>the</strong> operation by means of datachannel (cycle steal) operations by fetching <strong>the</strong>addressed CCW from core storage.If an XIO initialize write (start I/0) is givenwhile <strong>the</strong> selector channel is busy, it is ignored andno indication is given to <strong>the</strong> program.Selector Channel 199

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

Saved successfully!

Ooh no, something went wrong!