Важная информация

User Tag List

Показано с 1 по 6 из 6

Тема: RTC MODULE for DIVIDE interface

  1. #1
    Master Аватар для VELESOFT
    Регистрация
    04.04.2007
    Адрес
    Praha
    Сообщений
    752
    Спасибо Благодарностей отдано 
    2
    Спасибо Благодарностей получено 
    33
    Поблагодарили
    14 сообщений
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию RTC MODULE for DIVIDE interface

    New RTC module for Divide interface

    http://velesoft.speccy.cz/zx/rtcmodule/index.htm



    http://www.worldofspectrum.org/forum...915#post775915

    MCLOCK utility by BUSYSOFT:


    CLOCK utility by BUSYSOFT:


    ESXDOS with RTC.SYS support:


    SEGA GENESIS joypad from Ebay
    http://velesoft.speccy.cz/zx/joypad.htm



    Board contain two jumpers for select one of four possible 8kB rom pages = up to 4 different systems. This is possible only if you connect 32kB EEPROM chip 28C256. Also can be used original 8kB eeprom and both jumpers will ignored.

    Next two jumpers select address of I/O ports of RTC chip. Is possible select one of this ports:
    #xx03 (jumpers J3 and J4 open) - 12bit address decoding (A15-A12 are ignored)
    #7x3B (jumper J3 closed and J4 open) - full 16bit address decoding
    #CxEF (jumper J3 open and J4 closed) - full 16bit address decoding
    Inhibit RTC chip (jumpers J3 and J4 are both closed)
    Address lines A8-A11 are always used for select number of register in RTC chip. All RTC ports are writeable and readable.

    RTC module contain also own kempston joystick interface with full 8bit address decoded port #1F, but also use jumper for active joypad mode (here are used two joystick ports #1F and #5F.
    Jumper "8_BUTTONS" is open:
    - is used only one kempston joystick port #1F with full 8bit address decoding (A7-A0=BIN 00011111) and M1 line is ignored.
    Jumper "8_BUTTONS" is connect:
    - are used two ports for communication with joypads
    - port #1F is read only and use full 8bit address decoding (A7-A0=BIN 00011111)
    - port #5F is read only and use full 8bit address decoding (A7-A0=BIN 01011111)
    - aech reding of ports #000111xx reset signal "SELECT" on joypad connector
    - aech reding of ports #010111xx set signal "SELECT" on joypad connector

    On board are two joystick connectors, but each use different pinout and only one joystick/jopad can be connect. Horisontal joystick connector use Amiga compatible pinout and support amiga/atari joysticks with up to 3 fire buttons. Also real amiga mouse(with up to 3 buttons) can be connect for controll in some ZX games with A-MOUSE driver. Vertical joystick connector use pinout compatible with SEGA GENESIS/SEGA MASTER SYSTEM joypads with up to 8 fire buttons, but also amiga/atari joystick can be connect here. Both connectors contain +5V and GND for autofire support.

    Jumper "DISABLE KEMPSTON" - CLOSE=joystick disable

    Jumper "DISABLE RTC" - CLOSE=rtc disable (same as previous inhibit function)

    Код:
            JOYPAD DRIVER for RTC module: (v3.0 and higher)
            ===============================================
    
            DI ;communication with joypad need good timing
    
            IN A,(31) ;first byte return standard joy directions+two fire buttons(B+C)
            LD B,A
            AND 192 ;test of joypad (D7 and D6 must be in log.0)
            JR NZ,ERROR
    
            IN A,(95) ;byte 2 contain state of buttons START + A
            LD C,A
            AND 195
            CP 3 ;test of joypad (D7+D6 must be in log.0 and D1+D0 in log.1)
            JR NZ,ERROR
            LD A,C
            AND 48 ;accept only state of buttons START + A
            RLCA
            RLCA ;shift buttons at end of byte
            LD C,A
    
            IN A,(31) ;byte 3 must be D7 and D6 in log.0
            AND 192 ;test of joypad (D7 and D6 must be in log.0)
            JR NZ,ERROR
    
            IN A,(95) ;byte 4
            AND 207
            CP 15 ;test of joypad (D7 and D6 in log.0 and D3-D0 in log.1)
            JR NZ,ERROR
    
            IN A,(31) ;byte 5 contain next 6 fire buttons
            LD E,A
            AND 192 ;test of joypad (D7 and D6 in log.0)
            JR NZ,ERROR
            LD A,E ; A=6 buttons
            OR C ;add next two buttons
            LD C,A ;(C=all 8 fire buttons)
    
            IN A,(95) ;byte 6
            AND 207 ;test of joypad (D7 and D6 in log.0 and D3-D0 in log.0)
            JR NZ,ERROR
    
            ;at end of test save state of directions (reg.B) and state of all 8 buttons (reg.C) to ram
            OR A ;reset carry (NC) if joypad is detected
            JR RETURN
    
    ERROR   LD C,0 ;if joypad is not detected then reset state of all 8 fire buttons
            ;and in register B will always state of portu #1F(dec 31) = kempston joy port
            SCF ;joypad not detected then return with carry (C)
    RETURN  LD (JOYDIR),BC
            EI
            RET
    
    JOYDIR  DEFB 0 ;here save state of 8 fire buttons :START,A,C,B,Z,Y,X,MODE
    JOYDIR2 DEFB 0 ;here save byte with this layout : 0,0,C,B,UP,DOWN,LEFT,RIGHT
    Последний раз редактировалось VELESOFT; 22.07.2014 в 16:17.

  2. Этот пользователь поблагодарил VELESOFT за это полезное сообщение:

    USERHOME (15.05.2022)

  3. #1
    С любовью к вам, Yandex.Direct
    Размещение рекламы на форуме способствует его дальнейшему развитию

  4. #2
    Activist
    Регистрация
    21.07.2010
    Адрес
    Ukraine
    Сообщений
    276
    Спасибо Благодарностей отдано 
    0
    Спасибо Благодарностей получено 
    3
    Поблагодарили
    3 сообщений
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    VELESOFT, на DivMMC будет работать? Доступен драйвер RTC?
    Попробую добавить в конфигурацию для ReVerSE. Для U16 я планирую поддержать USB joypad http://zx-pk.ru/showpost.php?p=724979&postcount=29

  5. #3
    Master Аватар для VELESOFT
    Регистрация
    04.04.2007
    Адрес
    Praha
    Сообщений
    752
    Спасибо Благодарностей отдано 
    2
    Спасибо Благодарностей получено 
    33
    Поблагодарили
    14 сообщений
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Цитата Сообщение от MVV Посмотреть сообщение
    VELESOFT, на DivMMC будет работать? Доступен драйвер RTC?
    System ESXDOS support RTC driver and is supported on DIVIDE and on DIVMMC (same drivers). But now exist RTC module only for original DIVIDE interface. In future will exist also RTC chip for DIVMMC.

    If any ZX clone use own RTC chip then you can write software driver for it. Limit is now only 256bytes. You can contact author of ESXDOS or send me small routine that read values from your rtc chip and I can make new RTC driver. :-)
    Последний раз редактировалось VELESOFT; 22.07.2014 в 17:04.

  6. #4
    Veteran Аватар для MV1971
    Регистрация
    06.04.2010
    Адрес
    Новосибирск
    Сообщений
    1,303
    Спасибо Благодарностей отдано 
    0
    Спасибо Благодарностей получено 
    1
    Поблагодарили
    1 сообщение
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    VELESOFT,

    А конструктивно он подходит к каким версиям divIDE ?
    У вас на фото 5.7d3

    Подойдет ли например к 5.7с ?
    Если есть вопросы - пишите на tetroid собака inbox точка ru

  7. #5
    Master Аватар для VELESOFT
    Регистрация
    04.04.2007
    Адрес
    Praha
    Сообщений
    752
    Спасибо Благодарностей отдано 
    2
    Спасибо Благодарностей получено 
    33
    Поблагодарили
    14 сообщений
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Цитата Сообщение от MV1971 Посмотреть сообщение
    VELESOFT,

    А конструктивно он подходит к каким версиям divIDE ?
    У вас на фото 5.7d3

    Подойдет ли например к 5.7с ?
    RTC module is designed for all DIVIDE 57x models. DIVIDE 57b,57c,57d,57d2,57d3 use identical positions of sockets for EEPROM,MGAL and 74xx245. RTC module is connect to this sockets... (need only same positions of sockets)

    ---------- Post added at 11:07 ---------- Previous post was at 11:02 ----------

    Цитата Сообщение от MVV Посмотреть сообщение
    Попробую добавить в конфигурацию для ReVerSE. Для U16 я планирую поддержать USB joypad http://zx-pk.ru/showpost.php?p=724979&postcount=29
    And I plan software support for more fire buttons in ZX games. Similarly as on my webpage with modified software for K-MOUSE I plan modify some ZX games for joypad buttons. For example TOMAHAWK,....

  8. #6
    Master Аватар для VELESOFT
    Регистрация
    04.04.2007
    Адрес
    Praha
    Сообщений
    752
    Спасибо Благодарностей отдано 
    2
    Спасибо Благодарностей получено 
    33
    Поблагодарили
    14 сообщений
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Picture with RTC MODULE features:


    New utility for test KEMPSTON JOYSTICK and SEGA JOYPAD (6/8 buttons). Without RTC MODULE is this utility usable for testing classic kempston joystick.

    http://velesoft.speccy.cz/zx/rtcmodu...ester_full.zip




    Theoretically is possible make small joystick splitter for connection to vertical connector (connector for joypad). With this splitter will possible connect two josticks (joystick 1 = kempston on port #1F with two fire buttons, joystick 2 = same as kempston but on port #5F). For stable functionality must be resistor R14 on RTC MODULE replaced with resistor 0 Ohm.



    Последний раз редактировалось VELESOFT; 23.07.2014 в 13:05.

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Похожие темы

  1. divIDE
    от breeze в разделе Оси
    Ответов: 9
    Последнее: 26.04.2012, 01:49
  2. DivIDE interface - new WEB page
    от VELESOFT в разделе Внешние накопители
    Ответов: 6
    Последнее: 15.05.2009, 23:41
  3. divIDE
    от Zerios в разделе Внешние накопители
    Ответов: 10
    Последнее: 13.02.2007, 13:04
  4. IDE Flash Module Transcend Vertical 256 MB
    от POIND в разделе Внешние накопители
    Ответов: 16
    Последнее: 28.07.2005, 12:30
  5. divIDE
    от breeze в разделе Внешние накопители
    Ответов: 19
    Последнее: 23.06.2005, 12:17

Метки этой темы

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •