PDA

View Full Version : CD-ROM, IDE HD, and SATA HD



The Captain
08-23-2006, 03:31 AM
Has anyone been able to interface to these devices:
CD-ROM
DVD-ROM
DVD-RW
CD-RW
IDE HD
SATA HD

Chris Savage
08-23-2006, 04:21 AM
Captain,

I have interfaced all of the above to my PC at home. =)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)

The Captain
08-23-2006, 04:34 AM
Chris Savage (Parallax) said...
I have interfaced all of the above to my PC at home. =)


DOH! I mean to a BS2, Javelin, SX, or Pchip. http://forums.parallax.com/images/smilies/lol.gif

Gadgetman
08-23-2006, 04:42 PM
Why would you?

None of those chips have the memory needed to fully parse the directory structure of those things.... (At least not in PBasic or SX/B. Maybe the Java version on the Javelin can do it, and probably Spin, too, but it'll be slow, cumbersome and messy.)

If you need storage, either go for larger EEPROMS, or look at one of the many SD-card adapters available. Some of these even have a dedicated processor to help with handling the FAT file-system.
There are a couple of threads in the Propeller forum...
(too lazy to search them out right now)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...

The Captain
08-23-2006, 11:44 PM
I don't want to use them for file storage. It's just one of those things I can say, look what I can do. http://forums.parallax.com/images/smilies/turn.gif

Chris Savage
08-24-2006, 01:24 AM
Captain,

A simple control interface could possibly be realized using the SX or the Propeller. You might be able to implent simple control on the IDE stuff, but not the SATA devices. You could start by opening the CD Tray and closing it on the CD-ROM Drives. =)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)

hammerhead74000
08-24-2006, 05:25 AM
Mmmm.... somewhere around here I've got a board with either an AVR or PIC (can't remember) that could read & write to an IDE HDD... from EDTP, IIRC...

But, anyway - IDE is not that hard to do. Heck, folks even have it on TRS80s, C64s, and Apple ][s... IIRC, basically, it requires 8 bidirectional data lines (yes, this does leave 1/2 the drive unused), and 5 control lines (3 address, 1 write, 1 read). The command protocol is well documented.

Google for ATA and IDE specifications, you'll find lots of info...


As for SATA - I haven't got a clue, but would tend to suspect that it would require a dedicated chip...

Chris Savage
08-24-2006, 06:28 AM
Correct, that's what i was getting at...Controlling the drive itself is relatively easy. It's trying to read/implement the file system that can be a daunting task with a lot of overhead requirements.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)