QD071             0                    1                     2                     3                     4                     5                     6                     7                     8                     9

                         The Unit Selection is used by Test I/O, Halt I/O and I/O          If doing CC, the routine then goes and sets I/O interrupt
                         interrupt when the channel is not busy and by CC when a           latch and restores the CPU. If doing Start I/O or Halt I/O
A                        program check occurs  If doing a Test I/O or I/O interrupt        the CSW status bytes will be stored and if doing a Test
                         the routine goes to the Status In wait loop in the CC and         I/O or I/O interrupt a CSW with CHannel Not Busy will be
                         Start I/O Unit Selection routine. If one of the other two         stored. The status routine is used by Test I/O and I/O
                         the routine goes to the Halt I/O sequence routine. The            interrupt when the channel is not busy. If doing a Test
                         Control Unit Busy sequence is used whenever a short               I/O with the channel and device status is zero, a
                         Control Unit Busy sequence is encountered by either Unit          condition code 0 is set, otherwise, a CSW is stored.
B                        Selection routine. It checks that Status In does fall and
                         if not, indicates an Interface Control check                                         ------------------------------------------O------------------------------------------------------------------------------QD161------CDE
                                                                                                11 --- 0997   |                                         |         00 --- 098C                                                          (11)
    QD181.NGE------------------------------------------------------                         K 1000        |   |                                         |     K 1011        |                                                          Selr Ch No
    (00)                                                          |                         A GT.KH>Z     |   |                                         |     A 0+KH>R      |                                                          Response test
C   Selr Ch                                                       |                     ----|             |*---                                         | ----|             |*---------------------------------------------------------QD161------CGE
    Prog Ck in                                                    |                     |   C HZ>S4       |                                             | |   C HZ>S4,LZ>S5 |                                                          (00)
    CC                                                            |                     |   |          014V                                             | |   |          014V                                                          Selr Ch
                                                                  |                     |   R 1,1       1FR                                             | |   R 0,0       58R                                                          Addr
                                                                  |                     |   C4--    11 --CD                                             | |   C7--    00 --CG                                                          mismatch
                                                                  |                     |  Time-out                                                     | |  Addr mismatch
D                                                                 |                     |                                                               | |
                                                                  |                     |                                                               | |
                                                    01 --- 099D   |       00 --- 099C   |       01 --- 0995           10 --- 099E           11 --- 09A7 | |       01 --- 098D    
                                                K 1100,1      |   ---*K 1100        |   |   K 0100        |       |             |       K 0110,0      | | |   K 1100,0      |    
                                                A SL>S        |       A GTX+KH>Z    |   |   A V+KL>V      |       A GR^R>Z      |       |             | | |   |             |    
E   QD031.JHE----------------------------------*|             |*------S WRITE       |*--O---|             |*--O---|             |*------|             |*+-O---|             |*----------------------------------------------O----------QD081------EGE
    (01)                                        C K>GH        |       |             |       |             |   |   C GI>GR       |       C K>GB        | |     C K>GB        |                                               |          (10)
    Selr Ch                                     |          014V   ----|          014V       |          014V   |   |          014V       |          014V |     |          014V                                               |          Selr Ch
    Unit Selection                              R 0,0       9CR   |   R AC,1      95R       R AC,1BC    9CR   |   R 1,1       A7R       R 0,Z=0     8CR |     R S6,0      B4R                                               |          Sta In wait
    Test+Halt I-O                               E2--    00 --EB   |   E3--    *1 --EC       E4--    ** --ED   |   E5--    11 --EE       E6--    0* --EF |     E7--    *0 --EG                                               |          loop Test I-O
                                               Sel Out            |  Test for Adr In                          |  Adr In                GR=0             |    Reset Sel Out                                                  |
F                                                                 |  or Sta In response                       |  addr compare                           |                                                                   |
                                                                  O--------------------------------------------  GR=device addr                         |                                                                   -----------QD101------EGE
                                                                  |       11 --- 099F                                                       10 --- 09AE |                               11 --- 09BB                                    (00)
                                                                  |   |             |                                                   K 0111        | |                           K 0100        |                                    Selr Ch
                                                                  |   |             |                                                   A 0+KH>R      | |                           A 0+KH>T      |                                    Halt I-O seq
G                                                                 ----|             |*---                                           ----|             |--                       ----|             |*---
                                                                      C GI>GR       |   |                                           |   C HZ>S4,LZ>S5 |                         |   |             |   |
                                                                      |          014V   |                                           |   |          014V                         |   |          014V   |
                                                                      R 0,0       F8R   |                                           |   R 1,1       1FR                         |   R 0,1       25R   |
                                                                      G3--    00 --GC   |                                           |   G6--    11 --GF                         |   G8--    01 --GH   |
                                                                     Sta In             |                                           |  Status In                                |  I-OIntrp+Test I-O  |
H                                                                    GR=Dev status      |                                           |  failed to fall                           |  T=40               |
                                                                                        |                                           |                                           |                     |
                                                                                        |       00 --- 09F8           10 --- 09F6   |       00 --- 09AC           11 --- 09F7   |       01 --- 09B9   |
                                                                                        ----K 1100,1      |       K 0100        |   |   K 0100        |       |             |   |   |             |   |                     -----------QD101------JHE
                                                                                            A 0>V         |       A GT.KL>Z     |   |   A V+KL>V      |       A 0>R         |   |   |             |   |                     |          (10)
J   QD081.EBE------------------------------------------------------------------------------*|             |*------|             |*--O---|             |*--O---|             |*--O---|             |*--+---------------------O          Selr Ch CC
    (00)                                                                                    C K>GB        |       |             |       |             |   |   |             |       |             |   |                     |          Ctrl unit busy
    Selr Ch                                                                                 |          014V   ----|          014V       |          014V   |   |          014V       |          014V   |                     -----------QD131------JHE
    Ctrl Unit Busy                                                                          R 1,0       F6R   |   R AC,0      ACR       R 1,Z=0     F6R   |   R S6,1      B9R       R 1,S7      F2R   |                                (11)
    CC+Start I-O                                                                            J4--    10 --JD   |   J5--    *0 --JE       J6--    1* --JF   |   J7--    *1 --JG       J8--    1* --JH   |                                Selr Ch
                                                                                           Rst Sel Out        |  Test for fall of Status In               |  Status In down        CC, Start I-O +    |                                Store status
K                                                                                                             |                                           |                        Halt I-O           |                                bytes CU busy
                                                                                                              ---------------------------------------------                                           |
                                                                          11 --- 09A3           01 --- 09A5           10 --- 09A6                                                                     |
                                                                      K 0001,0      |       |             |       K 1001,0      |                                                                     |
                                                                      A 0>R         |       |             |       |             |                                                                     |
L   QD081.JJE-----------------------------------------------------O--*|             |*--O---|             |*--O---|             |*--------------------------------------------------------------------+--------------------------------QD021------LEE
    (10,11)                                                       |   C K>GA        |   |   |             |   |   C K>GB        |                                                                     |                                (01)
    Selr Ch                                                       |   |          014V   |   |          014V   |   |          014V                                                                     |                                Selr Ch set
    Status routine                                                |   R 0,S7      A4R   |   R S4,0      A4R   |   R 0,1       55R                                                                     |                                Cond Code 0
    Test I-O                                                      |   L3--    0* --LC   |   L4--    *0 --LD   |   L5--    01 --LE                                                                     |
                                                                  |  Test I-O and       |  Not I-O Intrp      |  Ch status=0                                                                          |
M                                                                 |  Dev Sta=0          |                     |  Reset Ch                                                                             |
                                                                  |  Srv Out            |                     |                                                                                       |
                                                                  |       10 --- 09A2   |                     |       00 --- 09A4                                                                     |
                                                                  |   K 0001,0      |   |                     ----K 0100        |                                                                     |
                                                                  |   A 0>R         |   |                         A 0+KH>T      |                                                                     |
N                                                                 ----|             |   --------------------------|             |*--------------------------------------------------------------------O--------------------------------QD131------NEE
                                                                      C K>GA        |                             |             |                                                                                                      (01)
                                                                      |          014V*----------------------------|          014V                                                                                                      Selr Ch
                                                                      R 0,0       A4R                             R 0,1       25R                                                                                                      Store CSW
                                                                      N3--    00 --NC                             N5--    01 --NE                                                                                                      Ch not busy
                                                                     Test I-O and                                I-O Intrp+
P                                                                    Dev Sta#0                                   Ch Sta#0
                                                                     Srv Out

 
Q

 

R

S

 Q
 D
 0
 7                                                                                                                                                | 128053        02/18/66 | Mach          2030       | Date  03/01/66          Sheet    1  QD071 |
 1                                                                                                                                                |                        | Name                     | Log    2072             Version    014    |
                                                                                                                                                  |                        | Mode          Manual     |                                           |
                                                                                                                                                  |                        | P.N.          837193     |    Selr CHannel Unit Selection            |
                                                                                                                                                  |                        | IBM Corp.                |    Test and Halt I-O                      |