Help!

ZXNet echo conference «hardware.zx»

From Mihail Zharov To Pavel Evzovich 4 October 2000

Hello Pavel! PE> Please tell me what signals should be sent from the board to PE> Scorpio controller PE> IBM keyboards (and where exactly, otherwise they didn’t describe me =( Here, from OnLine_15-16: ╒═══< Begin file: zs/at .txt >═══════════ ╔═══════════════════════════════ ═══════════════════════════════╗ ║ CONTROLLER ║ ║ IBM-compatible keyboard and mouse for any computer type ║ ║ ZX-SPECTRUM ║ ║ Operation and connection instructions ║ ║ V 2.0 ║ ║ Firm SCORPION & SCORPION CLUB (St. Petersburg and Moscow 1995) ║ ╚═══════════════════════════════ ═══════════════════════════════╝ 1. PURPOSE: The controller is designed to be connected to a SCORPION computer ZS or other Spectrum-compatible standard computer IBM-compatible XT or AT keyboard and Microsoft mouse or pass- strong The keyboard layout corresponds to the layout for XT/AT: Latin QWERTY and Russian YTSUKEN. The driver supports Russian layout for the most popular text editors: ZX-WORD, TLW2, iS-DOS (selection by function keys). Definition keyboard (XT or AT) - automatic. For Microsoft mouse andpassive driver converts data formats to Kempston format Mouse, which allows you to use programs written for this mice. Mouse type detection is automatic. Moreover, both mouse type can switch to KEMPSTON emulation mode, SINCLAIR, CURSOR, INTERFACE 2 joysticks (selectable by function) keys), AUTOFIRE mode is possible, button control MAGIC. There is a PAUSE function that provides temporary WAIT of the computer. The key combination Ctrl+Alt+Del produces A system reset is in progress. Structurally, the controller is made on printed circuit board measuring 120x68 mm. Consumed by the controller with keyboard current is no more than 400 mA. 2. CONNECTING THE CONTROLLER The controller has 5 connectors: - X1 - 5-pin connector for IBM keyboard (Table 2) - X2 - 10-pin male connector for Microsoft mouse (Table 3) - X3/X4 - system 60-pin connector for connecting to the system dark connector of the SCORPION ZS computer (table 1) - X5 - 10-pin pin connector for connecting the controller pa to the data line of the standard ZX keyboard and the MAGIC button (table tsa 4) - X6 - 10-pin male connector for connecting passive mice (table 5) To connect the controller to the SCORPION ZS board you need: - connect one to one system connectors X3/X4 of the controllerSCORPION boards (Table 1), taking into account that for ease of connection In this case, the controller connector is structurally deployed in its plane bones by 180° compared to the SCORPION connector, that is, if put the computer board and controller board on the table as parts up and turn so that the system connectors of the boards are facing on top of each other, then the top and bottom sides of the connectors correspond correspond to each other, and the numbering is opposite. X3 - contacts with sides of parts (top). X4 - contacts on the mounting side (bottom). When connecting the controller using a flat cable, its length should not exceed 50mm. It is best to use the extension system connector, produced by us and allowing the connection connect up to 3 peripheral devices to the system connector at the same time regularly, in other words, these are slots. - connect the controller X5 connector to the connector using a separate cable periphery ZS in accordance with Table 4. - the keyboard and mouse are connected in accordance with Table 2-5. ┌─────────────────────────── ────────────────────────────┐ │mouse pass. ┌───────────────────┐ ┌────────┐│ │┌────────┐┌───────────┐│ ┌─────────┐ │ │°°°Х2°°°││ ││°°°Х6°°°││█ ││ │ █│ █│ └────────┘│ IBM mouse │ │┌────────┐┌────────── ─┐└───────────────────┘ │ ││°°°Х5°°°││█ │ ││└────────┘└───────────┘ │ │to the keyboard. ┌────────┐ │ │ ┌──┐ ┌──┐ │█ │ ┌──────────────────────┐ ┌─────┤ │ │▀▀│ │▀▀│ └────────┘ │ ┌───────────┐ │ │AT/XT│ │ │ │ │ │ │█ │█ │ │ │ KEY │ │ │ │ │ │ │ └───────────┘ │ └─────┤ │ └──┘ └──┘ └──────────────────────┘ │ └───────────────┐─────────── ───────────────┌────────────┘ │1 30│ └──────────────────────────┘ TABLE 1. SCORPION ZS SYSTEM CONNECTOR ┌─────┬─────┬─────┬───────┐ │CONT.│CIRCUIT │CONT.│CIRCUIT │ │TOP│ │BOTTOM │ │ ├─────┼─────┼─────┼───────┤ │ 1A │ A15 │ 1B │ A14 │ │ 2A │ A13 │ 2B │ A12 │ │ 3A │ D7 │ 3B │ +5V │ │ 6A │ D0 │ 4B │ DOS/ │ │ 7A │ D1 │ 9B │ A0 │ │ 8A │ D2 │ 10B │ A1 │ │ 9A │ D6 │ 11B │ A2 │ │ 10A │ D5 │ 13B │ IORQGE│ │ 11A │ D3 │ 20B │ RESET │ │ 12A │ D4 │ 21B │ A7 │ │ 17A │ IORQ│ 23B │ A5 │ │ 18A │ RD │ 27B │ A9 │ │ 21A │ WAIT│ 28B │ A11 │ │ 26A │ A8 │ 30B │ GND │ │ 27A │ A10 │ │ │ │ 30A │ GND │ │ │ └─────┴─────┴─────┴───────┘ TABLE 2. CONNECTOR FOR CONNECTING an IBM keyboard (X1) ┌───────┬─────┬─────┬───┬───┐ │CONTACT│1 │2 │3 │4 │ ├───────┼─────┼─────┼───┼───┤ │CIRCUIT │KBCLK│KBDAT│Vcc│GND│└───────┴─────┴─────┴───┴───┘ TABLE 3. CONNECTOR FOR IBM MOUSE (X2) ┌───────┬───┬───┬───┬───┬───┐ │CONTACT│2 │3 │4 │5 │7 │ ├───────┼───┼───┼───┼───┼───┤ │CHAIN │RxD│TxD│DTR│GND│RTS│ └───────┴───┴───┴───┴───┴───┘ TABLE 4. CONNECTOR FOR CONNECTING TO THE ZX KEYBOARD (X5) ┌───────┬───┬───┬───┬───┬─────┬───┐ │CONTACT│1 │3 │5 │7 │8 │9 │ ├───────┼───┼───┼───┼───┼─────┼───┤ │CHAIN │Kb0│Kb1│Kb2│Kb3│MAGIC│Kb4│ └───────┴───┴───┴───┴───┴─────┴───┘ TABLE 5. CONNECTOR FOR PASSIVE MOUSE (X6) ┌───────┬──┬──┬──┬──┬──┬──┬───┬───┬──┐ │CONTACT│1 │2 │3 │4 │5 │6 │7 │8 │9 │ ├───────┼──┼──┼──┼──┼──┼──┼───┼───┼──┤ │CHAIN │Xa│Xb│Ya│Yb│Km│KI│Vcc│GND│Kr│ └───────┴──┴──┴──┴──┴──┴──┴───┴───┴──┘ NOTE: The wiring of the X6 connector is similar to the COMMODORE-AMIGA, ATARI-ST, CREATE SOFT MOUSE. When connecting the controller to other Spectrum-compatible computers need to perform a number of simple modifications that These relate to the signals IORQGE, WAIT, DOS/. There are no modifications to be made to the DOS/ and IORQGE signals in SCORPION. before, but on WAIT you may have to (if this modification is on your plan- they're not there yet, check!!!). - IORQGE signal. The controller output required forblocking access to I/O ports located on computer board. To organize this login to the computer you need We need to: disconnect the 20th leg of the Z80 from all other circuits and solder it into gap resistor 470-620 Ohm. After this modification, IORQ is 20 you- water Z80, and the signal IORQGE is the end of the resistor opposite the output du 20 processor. - DOS/ signal. Controller input signal. Signal in use for internal decryption and eliminates conflict with TR-DOS ports The DOS/ signal should indicate which system ROM is selected in currently: DOS/=1 -TR-DOS; DOS/=0 -ZX48/128. In fact, this the signal is the output of the "DOS trigger" of the drive controller, which must be output to the system connector. If, after sub- If ripples appear on the screen, it is best to add a block power supply capacitances on the computer board, or supply +5V power supply and ground to the controller board not from the computer, but from direct from the power supply. - WAIT signal. Controller output signal. If your computer There are circuits that produce a WAIT signal, then for the purpose connection of internal and external signals is necessary: disconnect 24 Z80 pin from all other circuits except the system connector and solder a KD522 type diode into this gap, plus to the processor, and so- Alternatively, solder a resistor from 5 to 15 kOhm between pin 24 of Z80 and +5V.(ATTENTION: IF YOUR SCORPION DOESN'T HAVE THIS DEVICE, THEN READ- CONTINUE) The diode is soldered into the gap in the wire coming from the terminal 19 additional TURBO chip installed on the mounting field, plus to pin 24 of Z80, minus to pin 19 of TURBO IC, also required dim resistor. Check if it may be on your Scorpion ZS board 256 TURBO - this modification has already been done!!!) 3. WORKING WITH AN IBM KEYBOARD The F6...F12, PrintScreen keys are not used yet. The Shift (left) key switches cases when entering numbers and characters, as well as (unlike the ZX keyboard) lowercase and capital letters. The ESC key generates CS/1 (EDIT), and CapaLock generates CS/2. Shift key (right) imitates SS in ZX, Ctrl - CS key, a Alt - Ext Mode. This makes it possible to implement numerous New commands specific to each editor (for example: CS/SS+char=Alt+char); CS/SS+SS+char=Alt+Shift(R)/char), and for ZX-48 get tokens, for example, DEFFN, GRAPHICS, ASN and etc. In this case, the Latin symbol is selected (as indicated in the description). editors) regardless of the current RUS/LAT layout. However, if in RUS mode the editor requires the input of any la- Latin text, it is better to temporarily switch to the Latin layout ku. Switching RUS/LAT for all layouts is done by pressing pressing Shift (L) and Shift (R) simultaneously, and for eachlayout, the corresponding command is generated. When you enter some certain characters (for example, underscores in RUS mode) occurs automatic switching of RUS/LAT or CapsLock modes for a time The input name for this character. On the main numeric keypad when Shift(L) and the Russian layout accept the following characters !"/$:,.;(). The []{}│ў signs available on the PC keyboard do not require previous significant call EXT MODE (it, as well as SS, are generated automatically tically). Functional numeric keypad functions similarly to IBM PC, switching its functions with the NumLock key. At the same time, as As in PC, Shift (L) changes the default values of these keys to the reverse. The main cursor keys, as well as the /*-+ and ENTER are independent of Shift. Pause key with trigger effect turns on/off WAIT of the central processor, which allows stop the program (at the time of the next keyboard poll) or continue it. Simultaneous pressing of Ctrl+Alt+Del leads to resetting the computer and controller. Simultaneous pressing Ctrl+Scroll_Lock simulates pressing MAGIC. Selecting mouse modes and editor is performed using the following key combinations (keys must be pressed in the specified sequence). MOUSE MODES: Ctrl+Alt+1 - KEMPSTON-MOUSE mode Ctrl+Alt+2 - emulation KEMPSTON joystick Ctrl+Alt+3 - CURSOR joystick emulationCtrl+Alt+4 - SINCLAIR joystick emulation Ctrl+Alt+5 - INTERFACE 2 joystick emulation Ctrl+Alt+0 - switches left and right mouse buttons. EDITOR'S PICK: Ctrl+Alt+F1 - BASIC 128 editor Ctrl+Alt+F2 - TLW2 editor Ctrl+Alt+F3 - ZX-WORD editor Ctrl+Alt+F4 - IS-DOS editor Ctrl+Alt+F5 - TASWORD editor Ctrl+Alt+F6...F10 will be used later. Other keys that implement functions: Cursor - move the cursor BackSpace - delete the character in front of the cursor Delete - deleting the character under the cursor Insert - insertion/replacement mode Home - to the beginning of the line End - to the end of the line Ctrl/left - one word to the left Ctrl/right - one word to the right PgUp - page up PgDn - page down Ctrl/PgUp - to the beginning of the file Ctrl/PgDn - to the end of the file TAB - tabulation The remaining keys correspond to their designations. When installing editors (for example: IS-DOS, ZX-WORD) must be selected YTSUKEN driver. Before loading the editor you need to use the PC keyboard enable or disable CapsLock depending on which mode The default mode is accepted for this editor. Before and after zag- loading, it is necessary to ensure compliance with the RUS/LAT in the controller driver ra (default LAT) and in the editor; for this, if necessary, You use the key combination Shift(R)/Space for TLW2 and ESCfor other editors. Don't forget after downloading the editor select the appropriate driver using the Ctrl/Alt/F1-F5 keys. 4. WORKING WITH THE MOUSE When using the mouse in your own programs, you must take into account write the following: - in MOUSE mode when moving the mouse in the output ports of the coordinate nat the resulting increments are summed up, taking into account the signs (up and to the right - positive, down and left - negative). When In this case, the #FBDF port contains the X coordinate, and the #FFDF port contains the Y coordinate. #FADF port when the left button is released D0=1, when pressed D0=0; for the right button, D1 is used similarly; the rest digits are 1; - in KEMPSTON mode, the contents of the specified mouse ports do not change are engaged, and in port #1F the Kempston-Joystick code is generated in depending on the direction of movement and the state of the button (any pressed); This port can only be selected in KEMP mode. STON; the rest of the Joysticks emulate the corresponding ZX keys. In joystick emulation mode, one of the buttons implements the function one is FIRE, the other is AUTOFIRE. Efim @ COMPU-MS.msk ╘═══< End file: zs/at .txt >════════════ Happy. Michael.