It is currently Thu Mar 28, 2024 7:46 am




 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: Putting a CF card in 8-bit mode
PostPosted: Mon Apr 14, 2008 11:02 pm 

Joined: Sat Sep 13, 2003 12:21 am
Posts: 251
Hi, a couple of questions:

Does anyone know how you put a CF card into 8-bit mode? Do you just write 0xEF to the command register with 0x1F in the feature register (is the feature register attached on the MyIDE hardware?)

Assuming that you can do this, do you then read 512 consective bytes from the data register?

Assuming all this is true, it should be possible to write code that allows you to read/write to a FAT16 partition with a compact flash drive attached to a MyIDE cartridge. That would be interesting, although I don't know how useful it would really be.



_________________
MyIDE Tools
Offline
 Profile  
 
 Post subject:
PostPosted: Tue Apr 15, 2008 5:47 am 
User avatar

Joined: Sun Nov 02, 2003 8:15 am
Posts: 1549
Location: netherlands
Yes, that is correct.

First put #$01 in register $D101
Then send the command #$EF to $D107
Wait for the status to be OK.
If an error occurs, the drive can not be put in 8 bit mode.

Data transfer is then 2 bytes for a word, LSB first.
After setting 8 bit mode, you must transfer 512 bytes to complete a request to the drive.

Disableing goes the same. Then you need to put #$81 in register $D101
and perform command #$EF (or reset the drive)

Cheers,
Sijmen.


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2009 12:49 am 

Joined: Sat Sep 13, 2003 12:21 am
Posts: 251
Hi Sijmen,

After putting the CF card in 8-bit mode, can I still use the MyIDE OS routines to transfer data, by setting the DCB xfersize to 512 bytes?



_________________
MyIDE Tools
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 61 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron