6
\$\begingroup\$

I've been considering using a NANDrive by SST in a new design, however I wasn't sure how complicated it would be to connect a PIC to the ATA interface on the NANDrive. I did a quick Google search and found a couple of forums with people who had done it, but I was wondering if anyone here had experience with it and could suggest a standard software library for PIC C18 that implements ATA.

\$\endgroup\$
6
\$\begingroup\$

I wouldn't recommend it outside of an academic exorcise. You'll need 24pins (16 data 8 interface) and most likely bit bang the interface protocol as i don't think there is a PIC18 with any sort of 16bit parallel port. Bit banging the interface, managing the ATA command layer and managing the file system could consume almost all the PIC's time if your trying to get any sort of reasonable transfer rate.

If you really want to go this route a quick google search for "PIC IDE" came up with a few places to look for code that supports ATA/IDE on PIC's.

www.pjrc.com/tech/8051/ide/wesley.html

www.telegraphics.com.au/sw/info/picide.html

Alternately, interfacing to a SD card is really easy via a SPI port and there are PIC18's with SPI interfaces with DMA that would require much less work from the PIC to manage the interface.

If your worried about reliability there are industrial grade SD cards and board mount locking SD connectors.

\$\endgroup\$
  • \$\begingroup\$ In fact there's a project to make a GPS to SD Card logger here, which might have some useful bits about using an SD card: gedanken.demon.co.uk/gps-sd-logger \$\endgroup\$ – Amos May 5 '10 at 8:43
2
\$\begingroup\$

Some 16-bit PICs have an 8/16-bit parallel port with up to 11 address lines. The PIC24FJ16GA002 is an example.

\$\endgroup\$
  • \$\begingroup\$ Do you know of a case where someone has used that parallel port for an ATA/IDE interface? \$\endgroup\$ – mjh2007 May 5 '10 at 14:36
  • \$\begingroup\$ @mjh2007 Theres a library from Microchip for the PIC32 to interface to compact flash cards using the PMP thats beta: microchip.com/forums/tm.aspx?m=364311 CF cards normally operate in IDE mode so you could probably tweak it to work. \$\endgroup\$ – Mark May 5 '10 at 16:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.