New Method For DC Serial To SDCARD - InDevelopment

Discussion in 'Sega Dreamcast Development and Research' started by cyrusmaintea, Feb 3, 2015.

  1. cyrusmaintea

    cyrusmaintea Rising Member

    Joined:
    Feb 13, 2014
    Messages:
    66
    Likes Received:
    39
    I love the Dreamcast, Its a very cool system to work with. But I dont like the Speed of data throughput on the SDCard interface.

    So Im working on a New Interface device, using the same Serial port as the original SDCard interface. But with a big twist.

    Heres what i got so far:

    Using the MAX3100 UART to SPI chip (Operates on CMOS level logic), will be used injunction with a PIC18F2455 MCU. This MCU also has a native USB interface, could be handy in the future.

    So i kinda works like this:
    MAX3100 picks up the native signals put off by the dreamcast's serial port, which then converts them into a SPI output interface. From there the PIC will be intercepting the SPI on one of the two virtual SPI interfaces that it will have.

    Next the PIC will perform the necessary functions and operations to read and write on the second virtual SPI output interface; That in-turn provides the data interface to the SDCard at speeds that can reach well over the Dreamcast's ~2MBps limit.

    The USB port could function as a PC - DC debugger as well as an ISO loader.

    The possibility's of the MCU on the Dreamcast's serial port, could allow well over 20+ GPIO for Custom hardware interfacing. This might require a faster more robust MCU, which i also have if necessary. Technically you could use the dreamcast as a Robots Main control Hub. Or some other crazy stuff. Pretty much like having a Dreamcast + Arduino combined.

    Ill be posting updates as i go :D.

    UPDATES:

    Going to Switch to the PIC18F45K50 MCU. Working on pin mapping.

    Possibly dropping the MAX3100.

     
    Last edited: Feb 3, 2015
  2. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,033
    Likes Received:
    891
  3. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    I dont understand how you are going to get any extra speed. Your Serial to SPI interface is still limited to the speed of the serial port on the dreamcast. You are still going to need to convert SPI back to serial data, that is still going to be decoded in the current manner, by the current software.

    Could you explain where this speed up is supposed to be coming from?
     
  4. cyrusmaintea

    cyrusmaintea Rising Member

    Joined:
    Feb 13, 2014
    Messages:
    66
    Likes Received:
    39
    it works the same way u can get 30Mbps with a DC ftdi USB coders cable, it all depends on the interface. Rs232 DB9 port for DC coders able is max of 117XXX bytes per sec.
    im also aware there needs to be DC side software development to use this...
     
    Last edited: Feb 3, 2015
  5. GillBert

    GillBert Spirited Member

    Joined:
    Jul 26, 2012
    Messages:
    101
    Likes Received:
    39
    I'm also curious how to get a higher speed from a serial DC port. AFAIK, it all depends on the source of the signal, not on the interface...
     
  6. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,033
    Likes Received:
    891
    You will always be limited by the Dreamcast serial interface though no? AFAIK, the limit is 12Mbit or 1.5MB/s. Serial SD cable can reach 400-500 KB/s.
     
  7. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    Just because you can interface PC -> USB cable fast, doesnt mean USB cable (FTDI chip) -> DC will be that speed. Just having the option for faster baud rate doesnt mean the other side will accept it.

    While you might be able to send data to the PIC faster, the PIC wont be able to relay that data to the DC that fast, as the DC serial port is the limiting factor.
     
    Last edited: Feb 3, 2015
  8. cyrusmaintea

    cyrusmaintea Rising Member

    Joined:
    Feb 13, 2014
    Messages:
    66
    Likes Received:
    39
    apparently i miss understood the DC side of the Serial connection. Well ill aim for the dcs 1.5MBps max...
    Ill keep you all posted
     
  9. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    I like the idea of some general purpose IO on the serial port. If you could add some GPIO and SPI interfaces and get the support of Dreamshell, it will still be an interesting project.

    Especially as the serial port is getting freed up with the IDE mod being able to boot dreamshell directly.
     
  10. cyrusmaintea

    cyrusmaintea Rising Member

    Joined:
    Feb 13, 2014
    Messages:
    66
    Likes Received:
    39
    This is exactly my reason for this :D. I might just scrap the SDCard and add a full GPIO bank - with UART - SPI - I2C and atleast 30 total GPIO.

    I have so many MCU's and ARM's to choose from idk what to use yet... i Switched Again from the PIC18F45K50 to the PIC18F4555.

    Maybe some ADC's and more analog I/O
     
    Last edited: Feb 3, 2015
  11. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,033
    Likes Received:
    891
    GPIO would allow very nice projects. Imagine removing the PSU, replace it with small modern dc-dc converters and use the extra space to put an internal vga-box with scanlines and maybe a hdmi converter. And then you boot an homebrew that can switch on/off the scanlines or change the video output via GPIO, etc. All that with a retail-looking console.
     
  12. cyrusmaintea

    cyrusmaintea Rising Member

    Joined:
    Feb 13, 2014
    Messages:
    66
    Likes Received:
    39
    Omgosh! IDEA! With the native IDE Drive interface already discovered and working, using the same methods to poll the HDD, it should be possible to add a DVD drive, and maybe keep the hdd. If the GDROM is on a Bus that has similar features as native IDE like multi ports on one Bus... Then there shouldnt be anything from stopping this.

    It would be Really cool to have a AIO Board that Has what my project is working on + IDE port with Dual Device support. Maybe have the serial link up to the board with all the main features. Ill start more searching.
     
  13. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    IIRC, the bus is very IDE like (the ide mod has little parts) and the gdrom can be connected at the same time as its "slave". The bios also shares the same bus iirc.

    I was already looking into making a board that replaces the gdrom and has the extra bios and IDE port on it, you could then screw a 2.5 inch ide drive to the pcb - all in the gdrom space.
     
  14. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,033
    Likes Received:
    891
    That board would have an extra bios? How can it replace the bios from the g1 bus? Or it has other connections? Anyways that's a nice project!

    FG

    [EDIT] And yeah it's almost plain IDE, plus added SEGA SPI interface commands that are now kinda well known. DS can already access the GD-ROM drive and hdd at the same time, e.g. to dump a GD-Rom to hdd.
     
    Last edited: Feb 3, 2015
  15. cyrusmaintea

    cyrusmaintea Rising Member

    Joined:
    Feb 13, 2014
    Messages:
    66
    Likes Received:
    39
    Ok so doing some digging, The Super H SH4 in the DC has a native PCI Interface, with the instruction set for it.

    EDIT: NVM its the 7751 that has pci not the 7750 on the DC... But the DC SH4 has PCMCIA which might be the G2 Port
     
    Last edited: Feb 3, 2015
  16. LordFenixNC

    LordFenixNC Peppy Member

    Joined:
    Aug 24, 2014
    Messages:
    300
    Likes Received:
    72
    im very interested in this set up... but no matter where it goes... we also have to worry about Costs... good luck and hope to see progress...
     
  17. cybdyn

    cybdyn Embedded developer (MCU & FPGA)

    Joined:
    Jan 12, 2012
    Messages:
    551
    Likes Received:
    4
    Bad_Ad84: "I was already looking into making a board that replaces the gdrom and has the extra bios and IDE port on it, you could then screw a 2.5 inch ide drive to the pcb - all in the gdrom space."

    something like we can see from DS + IDE(HDD), or gdrom emulator w/ hdd and bios?
     
  18. cyrusmaintea

    cyrusmaintea Rising Member

    Joined:
    Feb 13, 2014
    Messages:
    66
    Likes Received:
    39
    http://www.cyrusdevxcloud.tk/public.php?service=files&t=3445efacdb9d05a11cbc0bbdd5e6cac6

    Just a quick schematic, not even sure if its functional the way it is in the pdf. Was my first time using Eagle... Always would use paper and pencil...

    Sv3 port is the DC-Serial In:
    Sv1 SPI port (missing one trace XD):
    Sv2 ICSP Header for PIC:
    Sv4 GPIO:

    X2 SDCard Port:

    The six little points up top, are jumpers, first 2 on the left - enable ICSP and USB powering of the board, Only when not connected via DC. The last 4 Are for SPI Config settings.
     

    Attached Files:

    Last edited: Feb 4, 2015
  19. SWAT

    SWAT Active Member

    Joined:
    Apr 8, 2014
    Messages:
    31
    Likes Received:
    9
    This is not usable idea, you can't really improve situation, even if by some miracle a little speed up the interface. Because the main problem is not in a speed.
    The main problem is PIO mode... CPU lost much time. Games oriented to async DMA data transfer, the main is ASYNC. So any PIO mode - will lag in games.
    Even on the HDD in PIO (~25 Mbit/s!!!) - many games will lag. Event on the HDD in DMA but in sync mode (90 Mbit/s!!!!!!) - some games will lag.
    So only async DMA can be make the games fully happy.

    DC Serial can work with DMA in original UART mode, but really usable speed without errors is max 1.5 Mbit/s... it's too slow... It's not a max theoretical speed, it's can be up to 3-5 Mbit/s, but it's not works in general because have much errors at transfer.
    Current soft SPI can give up to 6 Mbit/s.
     
    Last edited: Feb 5, 2015
    Catmato likes this.
  20. cyrusmaintea

    cyrusmaintea Rising Member

    Joined:
    Feb 13, 2014
    Messages:
    66
    Likes Received:
    39
    Hey SWAT :D, yeah im going to ditch the SDcard interface part of it. Just going for a GPIO Control Module now. Im not 100% sure if what u said also goes for the gpio part of the idea. hopefully not.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page