+ Reply to Thread
Results 1 to 7 of 7

Thread: CDDC Interface - For BP

  1. #1
    Wire Amateur robertark is an unknown quantity at this point robertark's Avatar
    Join Date
    Jun 2007
    Location
    Northwest Arkansas
    Posts
    53

    Default CDDC Interface - For BP

    Hey BP, I looked at the CDDC Interface (the updated version on your blog) and I'm somewhat curious how you're supposed to hook it up. I've been going through the code to figure it out, but I can't see how or where you're controlling the CD ray hydraulic, motor outputs, etc using the data/address port.Could you possibly share a small demo/instructions so I can get the general idea as of how to use it?Thanks!
    "Knowledge is power, and without power you're nobody." -Self



  2. #2
    Wirererer jacoby6000 is an unknown quantity at this point jacoby6000's Avatar
    Join Date
    Feb 2008
    Location
    behind you when you aren't looking
    Posts
    275

    Default Re: CDDC Interface - For BP

    Didn't they make PM's for a reason?
    Quote Originally Posted by mattwd0526 View Post
    >.< So yours echoes everything back, except in rainbow? That's like having Richard Simmons follow you around...
    I'm not stupid!
    "In [his] experience that was a sentence never to be uttered except to prove its own inaccuracy" --Orson Scott Card

  3. #3
    Wire Sofaking mattwd0526 is on a distinguished road mattwd0526's Avatar
    Join Date
    Apr 2009
    Location
    findPlayerByName( "mattwd0526" ):pos()
    Posts
    768

    Default Re: CDDC Interface - For BP

    Yeah, but you can't expect people to actually USE them. I mean, he would have to go and find BP on a members list which is so hard considering that he would have to look on the wiremod mods/team/devs list and THEN click on his name and THEN click on the PM button.

  4. #4
    Wire Amateur robertark is an unknown quantity at this point robertark's Avatar
    Join Date
    Jun 2007
    Location
    Northwest Arkansas
    Posts
    53

    Default Re: CDDC Interface - For BP

    Quote Originally Posted by mattwd0526 View Post
    Yeah, but you can't expect people to actually USE them. I mean, he would have to go and find BP on a members list which is so hard considering that he would have to look on the wiremod mods/team/devs list and THEN click on his name and THEN click on the PM button.
    Or possibly I could ask him so that his answer is public and other users will have access to knowing how to use the CDDC. What's up with the hostility here?
    "Knowledge is power, and without power you're nobody." -Self



  5. #5
    That furred thing
    Black Phoenix will become famous soon enough Black Phoenix will become famous soon enough Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    2,743

    Default Re: CDDC Interface - For BP

    What you are you talking about, PM-ing and stuff? Are you serious, this is a pretty good question and the guy did the right thing on asking it in public.

    CDDC interface is only controller interface you should support (for example BlackFOX drive has plug which you plug in your socket - and then you can use socket to access the controllers interface). The example program/implementation of controller that is located in GWCD is a processor which you need to wire to such address bus:
    Code:
    0 1024 CDDC_RAM - controller interface
    1024 1024 CDDC_CONTROL - data port to speak with drives hardware, more below
    2048 8192 Disk heads - you should wire this to your CD ray; although you can wire it to several rays, see below.
    65536 65536 - Buffer, usually you wire this to your plug, which allows drive to send back data over wire.
    
    Okay, now CDDC_RAM contains controller interface which is described in CDDC_Interface.txt (in GWCD SVN).

    CDDC_CONTROL looks like this (what data port is wired to, remember, you wired address bus to data port):
    Code:
    Output port 0: State of motor (1: on; 0: off)
    Output port 1: Motor velocity (in radians/second)
    Output port 2: Activity LED (green light on drives front)
    Output port 3: Ray position (target command for hydaulic)
    
    Input port 0: Is disk present (wire this to CD latch)
    
    Now, you wire the memory3 of address bus to your CD ray; and you also need to specify some constants on top of "cdd.txt":
    Code:
    define GEOMETRY_TRACK0_POSITION,7.5;//position in units of last track
    define GEOMETRY_MAX_VELOCITY,16; //Max drive speed (rad/sec)
    define GEOMETRY_DRIVE_LASTHEAD,1; //Heads count minus one
    
    If you have more than one head, you do that there; you also specify maximum speed, and position of last track on your disk.

    I'll help you more if you want, it shouldn't be too hard to set this all up. GWCD SVN is here: https://anonsvn:anonsvn@svn.wireos.com:81/svn/gwcd_cpu/
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5


  6. #6
    Wire Sofaking Drunkie will become famous soon enough Drunkie will become famous soon enough Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    772

    Default Re: CDDC Interface - For BP

    Quote Originally Posted by jacoby6000 View Post
    Didn't they make PM's for a reason?
    Quote Originally Posted by mattwd0526 View Post
    Yeah, but you can't expect people to actually USE them. I mean, he would have to go and find BP on a members list which is so hard considering that he would have to look on the wiremod mods/team/devs list and THEN click on his name and THEN click on the PM button.
    This part of the site lacks doumentation, so the the more information posted here, the better. Then people can actually search for previously answered questions in threads rather than asking over and over for the same thing.

  7. #7
    Wire Amateur robertark is an unknown quantity at this point robertark's Avatar
    Join Date
    Jun 2007
    Location
    Northwest Arkansas
    Posts
    53

    Default Re: CDDC Interface - For BP

    Thanks Black Phoenix, but I feel like a tard for asking this..

    What files am I supposed to use from the SVN link to use as the "base" of the computer? There's so many of them and a few of them when I try to load into compiler I get reliable channel overflow (odd, maybe a server setting).

    Making a step-by-step guide would be awesome of you!

    Thanks again :]
    "Knowledge is power, and without power you're nobody." -Self



+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts