Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
PhotoKB Home
Discussion Groups
Digital Photography
Digital PhotoDSLR CamerasZLR CamerasPoint & Shoot Cameras
Film Photography
35 mmLarge FormatMedium formatDarkroomFilm and LabsOther Equipment
Photo Technique
Nature PhotographyPeople PhotographyTechnique General
General Photo Topics
General TopicsAustralian PhotographyUK Photography
DirectoryPhoto Clubs

Photo Forum / Digital Photography / DSLR Cameras / January 2005

Tip: Looking for answers? Try searching our database.

How to access the data register of CF card  byt by byte(8-bit wide access)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ravi kumar.N - 27 Jan 2005 15:47 GMT
Respected Experts,
                                Iam Ravi Kumar .N, working on CF
card. I have a query  regarding  accessing  of  data register when CF
card data width is configured for 8-bit  access. i.e   CE2#  =  HIGH
and   CE1#  =  LOW.

    My queries are  as follows

   1) How to read the 16-bit data register of CF card when CF card is
configured for 8-bit wide access  i.e . By making CE2# HIGH and CE1#
LOW.

  2) I tried to read the 16-bit data register byte by byte, but i
didn't get the intended result.

 3) Here is how I have inplemented to read the 16- bit data register
byte by byte.

             1)Number of sector to read in sector count register
             2) Starting sector number in sector number rigister
             3) Placed zero's to cylinder low and high register
            4) Issue the read the command.
            5)  if the status register is valid i.e 0x58, then the
following code will be executed.

                          unsigned char buffer[512];
                          unsigned char *cf_base_address = 0x2000;
                          for(i = 0; i <= 511; ++i)
                             {
         
                                    buffer[i] =   *(cf_base_address)
                              }

                Iam able to read the CIS, status register, erase the
sector etc. But  Iam not able to read the data register byte by byte.

       Please send me the code(or logic) for how to access the
16-bit data register byte by byte  when CF card is configured for
8-bit data width.

               
    With Regards
       Ravi Kumar.N
Alan Browne - 27 Jan 2005 16:08 GMT
>         Please send me the code(or logic) for how to access the
> 16-bit data register byte by byte  when CF card is configured for
> 8-bit data width.

This is a photography equipment group not a digital electronics group.

Signature

-- r.p.e.35mm user resource: http://www.aliasimages.com/rpe35mmur.htm
--        r.p.d.slr-systems: http://www.aliasimages.com/rpdslrsysur.htm
--      [SI] gallery & rulz: http://www.pbase.com/shootin
--                   e-meil: there's no such thing as a FreeLunch.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.