HDD IDE ATA 2 interface problems. code wrong?


Results 1 to 3 of 3

Threaded View

  1. #1
    rastan's Avatar
    rastan Guest

    Red face HDD IDE ATA 2 interface problems. code wrong?

    hi ive been trying to interface my 16f877a with a samsung shd-30560A hard disk drive. its ATA-2 spec at 560MB.
    the attatched code does not read properly from the drive, a previous test (also attatched) where it requests the drives information does work.

    For the program that doesnt work, i got the following output
    Code:
    Ready to Initialize
    head register = 0
    Writing: 11100000
    head register = 11100000
    LBA Mode Activated
    System Initialized and ready
    Writing to number of sectors register
    Writing to LBA
    Writing to command register
    Information:
    
    error register = 0
    Spin down
    as you can see, there is no information being passed back, but the error register is still empty. as if the wrong command is being passed.

    unfortunatly i couldnt upload the ata2 standard paper for reference because the filesize was too big. it can be found easily on the net. cant remember where i got it from though

    thanks everyone for the help

    phil
    Attached Files Attached Files

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  3. Line following robot... problems with some code
    By nepstar in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th March 2005, 01:10
  4. Code dsigner lite problems
    By toalan in forum Off Topic
    Replies: 2
    Last Post: - 23rd February 2005, 20:08
  5. Problems with 16F877A code
    By NightHawk2 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th August 2003, 01:36

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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