Nogen her der ha leget med ATA (IDE) Interface ?

Hej.

Jeg har gang i et projekt til bilen med en Ipod og et Drive+play system fra Harman/Kardon. (Display og joystick-styring)

Jeg har indkøbt en defekt Ipod til formålet. denne er født med en 1,8" harddisk med 3,3 volts ATA-interface, men den er 5-volts tolerant.

Jeg har forsøgt at forbinde en 2,5" og en 3,5" harddisk til den, og det virker helt fint. dog har jeg problemer med at de fysisk større diske er længere tid om at komme op i omdrejninger - nævnligt den 120 GB Maxtor jeg har udset mig til formålet. den er 6-7 sekunder om at starte op til den er klar. så lang tid venter Ipod'en ikke, og laver derefter timeout og skipper et nummer :-O

Jeg har undersøgt mulighederne for en anden Firmware (Linux-baseret) men den er ikke kompatibel med Drive+Play systemet, så det er ikke interessant.

Jeg har læst lidt på IDE-interfacet som viser sig at være ret simpelt (Alt er vel relativt) :-) .

Jeg har læst lidt på denne side og specielt de dokumenter han linker til:

formatting link

Jeg har en vision om at:

1: programmere en pic til at overvåge CS1, CS0, A0, A1 & A2 og når der så er peget på kontrol-registret og der er en shutdown-kommando på de nederste 8 bits, så disabler den enable-benet før at den kan nå at sende kommandoen til disken. Jeg har bare betænkeligheder om en PIC er kvik nok..

2: Alternativet er at lave noget med nogle and-gates og en nand til sidst, så den overvåger de omtalte bits og når alle betingelser er opfyldt disables wr-benet med en nand-gate.

Hvor hurtige er alm. 74-kredse ? skal jeg bruge HCT-typerne? Jeg vil skyde på at maskinen kører ATA-66 e.l.

Lyder noget af det her bekendt, er der andre der har rodet med det, eller har tips til hvad jeg ellers kan gøre for at løse mit problem??

MVH, Per. fjern fjernmig ved direkte mail.

Reply to
Per Jensen
Loading thread data ...

=20

=2E..

pelt=20

r=20

der=20

de=20

t sende=20

nok.. =2E..

Hej Per

Du kan f.eks. s=F8ge efter hjemmebyggede MP3 afspillere - dog helst ARM=20 mikroprocessor styret - dem er der mange af.

-

F=F8rst lidt om PIC og FAT16, IDE:

Flash-kort interfacing med FAT16:

64MB MMC und PIC-Mikrocontroller:
formatting link

Her er et FAT16 bibliotek: Dateisystem FAT16 ( File Allocation Table Dateizuordnungstabelle)

formatting link

The IDE Project - PIC baseret med diagram og kode:

formatting link
Citat: "...amazing 430kb/s transfers from drive to RAM [PS: set fra PIC =

-verdenen - kig ogs=E5 p=E5 ARM processoren!]...Here's the all basic=20 routines and the schematic..."

-

S=F8g f.eks.:

formatting link

Arm er flertydigt p=E5 engelsk men det g=E5r vel...:

Welcome to the ARM microcontroller Wiki!:

formatting link
Citat: "...Storage Cards...=20
formatting link
has lots of information=20 on busses.
formatting link
sell an LPC2114 pre-programmed =

with an implementation of the FAT filesystem, and device drivers for=20 IDE, MMC Card, SD Card, and Compact Flash, that your master device=20 controls via RS232 or SPI..."

The MP3 Player Project:

formatting link
Med kildekode.

MP3 Player Jukebox Module:

formatting link

Stand-Alone-MP3-Player

formatting link
FAT32 + Windows long filenames

microcontroller based MP3 Player:

formatting link
Citat: "...The reason for doing this project was to gain experience in=20 PCB design & production, protocol & device driver implementation (FAT32, =

ATA, I2C) on memory restricted microcontroller systems (AVR) based=20 around the interesting subject matter of compressed audio players..."

-

Andre brokker:

formatting link
Citat: "... Jeff Bachiochi from Circuit Cellar
formatting link
did some =

FAT work with PICs -- Circuit Cellar issues 143-146. I can't remember if =

it was FAT16 or FAT32. Forgive me if my recollection is poor.

Also check out the work by Fred Eady

formatting link
. Fred has an ATA hard drive controller project (not MMC/SD) but I think=20 you will find out that the FAT file system will be the most challenging=20 part of your project (versus PIC interfacing to a MMC/SD flash card). =2E.."

formatting link
ssage=3D16223011 Citat: "... interfacing 5V PIC w/ 3.3V MMC/SD card: Use the 74LVC244 or 74LVT244 or 74LVX244 series of octal buffers that=20 can at Vcc=3D3.3V handle 5V on I/O pins. If you need a DIP '244, your only bet is the SN74LVC244AN from TI. =2E.."

The PIC16F876 3.3volt Prototype Molex MMC socket SD-card FAT12, FAT16

formatting link
Citat: "... The SD card connections are configured for a standard SPI mode=20 connection which is commonly used for interfacing with microcontrollers. The FM24CL64 does not require any wait period after a write and has no=20 limitations on the number of writes. All PIC to MMC transactions must be in chunks of 512 bytes (one can read =

a less amount). Data to be stored is first saved to the external FRAM=20 and is then automatically transferred to the MMC when 512 bytes=20 accumulate. Storage is limited to a single file only, again due to the=20 constraints of the PIC. The modified MMC board which can use MMC as well as SD cards. SDMM3X Kit $57.00 a PIC 16F876 or 18F252 =2E.."

formatting link
SDMXPCB SDMM3X (compact unit ) pcb board only $23 SDMXSRC SD/MMC FAT16 source code emailed $23

4MB MMC und PIC-Mikrocontroller
formatting link

Dateisystem FAT16 ( File Allocation Table Dateizuordnungstabelle):

formatting link

Hoarder (SAK) board should give you some idea about how to interface the =

compact flash card and to program a file system

formatting link

Procyon AVRlib Version 1.0 C-Language Function Library for Atmel AVR Processors - Written by Pascal =

Stang FAT16/32 File System (support is read-only for now)

formatting link

The Alya Project

formatting link
Citat: "...The Alya board mainly consists of a PIC16C64 microcontroller=20 and an Altera 10K10 FPGA to handle the data transfer. Instead, I decided to use an Altera FPGA and just connect all pins to=20 the FPGA. This is a good example how FPGAs simplify a design - instead=20 of having to understand all the details of the devices involved, just=20 connect them directly and implement the details later. This lead to a=20

208 pin device and, as I intended to use it only as a wiring, register=20 and multiplexer box, the smallest FPGA available, a 10K10A, seemed to be =

sufficient. All information about the ATA interface can be found in the ATA spec.=20 You can't download the spec itself, but there are countless drafts at=20

formatting link
that are as well. I'd recommend you download the=20 ATA-2 draft, it has only 90 pages and contains everything you need for=20 programming. =2E.. Most people I spoke to thought the harddisk interface would be pretty=20 complex and interfacing to it some kind of wizardry. It isn't. =2E.."

(Ukendt sprog - men der er et "internationalt" diagram:) SecureDigital=20 op de PIC

formatting link

DOS FAT 12/16/32, VFAT DOS til kopiering af lange filnavne

formatting link
l

USB MMC Reader/Writer for the GBA (With MP3 Playback Capabilities)

formatting link

formatting link

formatting link

1.7.pdf

mvh/Glenn

Reply to
Glenn Møller-Holst

Glenn Møller-Holst skrev:

Hej Glenn, tak for alle de fine links, det er spændende læsning.

Dog har jeg ikke tanker om at bygge en MP3 afspiller op fra bunden, slet slet ikke. jeg har allerede et fint system med den Ipod og Drive+play-systemet, men har bare problemet med at disken slukkes.

Jeg har taget konsekvensen nu., og køber en Logikanalysator hos demotech.dk så jeg kan få syn for sagen.

Det jeg faktisk ønsker at gøre, er at sætte noget imellem disken og ipodden der "æder" shutdown-kommandoen.

Jeg har læst lidt på Cpld, muligvis skulle man bruge sådan en lille sag til det ?? Elfa fører en Altera EPM3032 i 44-pins PLCC-hus, det er jo til at have med at gøre for hjemmefuskeren...

MVH, Per.

Reply to
Per Jensen

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.