All Forums
 Microsoft Windows CE
 CE Drivers
 CF Bus Driver for Windows CE
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

akidder

1519 Posts

Posted - 14 Mar 2003 :  15:19:33  Show Profile  Email Poster
CompactFlash Data Bus Driver for Windows CE


A number of ADS products make the high-speed CompactFlash bus available to user applications. This 16-bit bus can be used to transfer data at rates up to 17 MHz. For further information about designing devices for the CF bus, consult forum topic 846.

The Windows CE library uses optimized assembly code to move data across the CF bus with very low latency. The library is written in eVC. A sample application at topic 862 demonstrates use of the drivers.

Note: This code will only work for devices that use the SA1111 companion chip for bus control. See topic 1638 for control of the CF bus on non-1111 products.

Key APIs Used

VirtualAlloc
VirtualCopy
VirtualFree

Lines of Code: 236


Source Download
Rev 4, StrongARM or XScale (14k zip).


modified Dec 1, 03 - replaced old rev 3 header in zip with rev 4 header
modified Oct 30, 03 - added Rev 4 - BusPower bug fix
modified Aug 27, 03 - added Rev 3 - PXA255 definitions
modified Mar 31, 03 - added key APIs and LOC
modified Mar 24, 03 - changed link from sample code download to ReadPCMCIA topic
Edited 10-Apr-2003 by akidder - update driver release (minor change: comments in BusReset function)
Edited 25-Jun-2003 by akidder - clarify that sample app is not included with driver code
Edited 5-Oct-2004 by akidder - add link to sample driver code for non-1111 products

akidder

1519 Posts

Posted - 08 Apr 2003 :  17:18:19  Show Profile  Email Poster
Using the BusReset() Function

In addition to toggling the PCMCIA reset line, BusReset() performs several other functions to initialize the CF bus interface. In particular it energizes the bus control lines and activates the Wait line.

You should call BusReset() the first time you use the bus and again each time after wakeup.

Note that the Wait line activation is optional. You can change this function in the driver as needed to suit your application.
Go to Top of Page

ctacke

877 Posts

Posted - 27 Aug 2003 :  14:56:46  Show Profile  Email Poster
Feature Update: XScale Support

We've added support for the PXA255 Xscale device. The PXA255 has a different base address and a completely different set of registers for controlling bus speed. Rev 3 provides the necessary changes for the XScale by simply making sure the following line in ADSCF2.h is uncommented:


#define XSCALE


To revert to the StrongARM, simply comment out the line.

We've left the Rev 2 download in place as it is easier to read without all of the #ifdefs
Go to Top of Page
  Topic  
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000