Advanced Communication Board Developer Toolkit 1993 ABSTRACT: INT1.C INT1.C is an interrupt driven asynchronous terminal program. The base address is 238 Hex and the IRQ should be jumpered to 5. The interrupt mode jumper should be set to shared if the ACB is sharing an IRQ or to normal if the ACB is the only device on the IRQ. Please note that if an ACB is sharing an IRQ with another device, that device must be disabled when executing this example program. No additional jumpers are needed. To build the program, the ACB.OBJ and the INT.OBJ file must be linked from the \LIBRARY directory. The program will terminate when the "Esc" key is typed from the keyboard. This program is set up for 19.2K baud, no parity, 8 data bits, and 1 stop bit. This program will interrupt on receive characters only. All transmitted characters are sent in a polling loop in the main() function. All characters received in the interrupt service routine are stored in the buffer. The buffer size is fixed at 100. The buffer contents is displayed once the "Esc" key is pressed. Keep in mind that this example is a very simple interrupt driven program. Please refer to the DMA and / or interrupt driven examples for higher throughput examples. Cables: For asynchronous mode, only transmit and receive are needed. The program may be used in a stand alone loop-back configuration, or with another PC with an asynchronous COM: port card installed. For Loop-Back Plug: For Single Ended (RS-232, MIL-188/114) Connect Tx to Rx For Differential Interface (RS-530, V.35, MIL-188/C, etc.) Connect Tx+ to Rx+ Connect Tx- to Rx- Point to Point Cable: For Single Ended (RS-232, MIL-188/114) Connect Tx at point A to Rx at point B Connect Tx at point B to Rx at point A For Differential Interface (RS-530, V.35, MIL-188/C, etc.) Connect Tx+ at point A to Rx+ at point B Connect Tx- at point A to Rx- at point B Connect Tx+ at point B to Rx+ at point A Connect Tx- at point B to Rx- at point A Dip-Switch and Jumpers: Note: If a jumper is not listed, that jumper is not relevant to this example. ACB-104 ACB-II ACB-530 SW1 2,3,4,8 On SW1 1 On SW1 2,3,4,8 On E3 5,R E9 On E1 N or M E3 5 ACB-III ACB-IV ACB-V SW2 2,3,4 On SW1 2,3,4 On SW1 2,3,4 On E8 5,N E8 5,N E3 5,N ACB-VI ACB-MP MAXPORT SW1 2,3,4,8 On See Note 2 SW1 2,3,4,8 On E9 N or M E2 5 E11 5 E3 N or M See Note 1 Note 1: The source code must be modified to enable the interrupts on the ACB-VI. The ACB-VI has the ability to enable and disable interrupts from the on-board status control register. Note 2: This example sets up an interrupt service routine by replacing a vector entry in the interrupt vector table. On a Micro Channel Architecture (MCA) computer this is not the recommended method of installing an interrupt handler. This example can be modified to chain the vector rather than replace / restore. For further assistance, please contact technical support at the numbers listed in the README.TXT file in the root directory of this diskette. Build Dependencies: INT1.C * ACB.OBJ * ACB.H * INT.OBJ * INT.H * Z8530.H * Denotes that files are located in the \LIBRARY directory.