background image

 

           

E m b e d d e d   S o l u t i o n s     P g   8   o f   2 0

 

Programming 

Programming IP-CF requires only the ability to read and write data in the host’s I/O 
space. The base address is determined by the IP Carrier board.   
 
Please refer to the CompactFLASH programmers manual for detailed bit-map 
information and other programming details.  The manual is available from the 
manufacturers website.  Dynamic Engineering currently uses Sandisk CompactFLASH 
modules.   
 
The IP acts as a bridge between the IP bus interface and the CompactFLASH module.  
There are a few settings to insure proper operation.  This manual covers the internal 
registers of the IP-CF.  Most of the operational interface is controlled by the 
CompactFLASH module and is covered by the CompactFLASH Manual. 
 
The engineering kit provides reference software which Dynamic Engineering uses to 
test the IP-CF.  The IP-CF is mounted to a PCI3IP carrier. 

http://www.dyneng.com/pci_3_ip.html

 ]  Windows 7 is the OS.  The Identify Disk 

information is read and checked.  The model, serial number and firmware revision are 
displayed.  The IDPROM is read and checked.  The vector register has a loop-back test.  
The FLASH memory is programmed and read-back.  The read-write test to the FLASH 
finds the first non-programmed sector, programs that sector and then reads the data 
back.  If the test is looped the data is read many times and only programmed once.  If 
the software is re-launched then the next sector will be written to and then read back.  
We do the sector marking to keep from doing excessive writes in test.  The 
CompactFLASH interrupts and control functions are tested during the identify and r/w 
tests.  The source code for the application is included for your reference.  In addition to 
the software, the engineering kit includes a reference schematic plus the IP-Debug-Bus 
and the IP-Debug-IO. 
 
Linux and VxWorks drivers will be available soon.  If you need a custom version of the 
card or a custom driver please contact Dynamic Engineering. 
 
Please note that some carrier boards do not use the interrupt vector.  Some carriers 
require the interrupt vector.  If needed, the vector register and the interrupt service 
routine should be loaded and the mask set.  
 

Содержание IP-CF

Страница 1: ...Cruz CA 95060 831 457 8891 831 457 4793 FAX http www dyneng com sales dyneng com Est 1988 User Manual IndustryPack CompactFLASH IP CF CompactFLASHtm Adapter IP Module Manual Revision B Revised 8 9 16...

Страница 2: ...t at any time and without notice Furthermore Dynamic Engineering assumes no liability arising out of the application or use of the device described herein The electronic equipment described herein gen...

Страница 3: ...us Register 10 CompactFLASH internal registers 11 Interrupts 12 ID PROM 13 IP Module Logic Interface Pin Assignment 14 IP Module IO Interface Pin Assignment 15 Applications Guide 16 Interfacing 16 Con...

Страница 4: ...n s P g 4 o f 2 0 List of Figures FIGURE 1 IP CF ADDRESS MAP 7 FIGURE 2 IP CF CONTROL REGISTER 0 BIT MAP 9 FIGURE 3 IP CF STATUS BIT MAP 10 FIGURE 4 IP CF ID PROM 13 FIGURE 5 IP CF LOGIC INTERFACE 14...

Страница 5: ...CF has an oscillator position which is not used for the standard interface If you have a custom module which requires an alternate timing scheme the oscillator position can be filled to support your r...

Страница 6: ...n a different one The PCI3IP or PCIe3IP designs make a convenient development platform in many cases http www dyneng com pci_3_ip html http www dyneng com PCIe3IP html Interrupts are supported by IP C...

Страница 7: ..._cf_f_err EQU 42 word write read ip_cf_sec_cnt EQU 44 word write read ip_cf_cyl_l EQU 46 word read write ip_cf_cyl_h EQU 4A word read write ip_cf_sch EQU 4C word write read ip_cf_cmd_stat EQU 4E word...

Страница 8: ...checked The model serial number and firmware revision are displayed The IDPROM is read and checked The vector register has a loop back test The FLASH memory is programmed and read back The read write...

Страница 9: ...it when set can cause an interrupt to the host The master interrupt enable must also be set The force interrupt bit can be used to cause an interrupt for test or software development purposes 4 The ma...

Страница 10: ...s The internal socket is device 1 The card detect bits can be used to determine if a CompactFLASH device is installed The bits are active low 00 when a card is installed and 11 when no device is prese...

Страница 11: ...num 0x46 compact flash read write sector number pointer iip_cf_cyl_l 0x48 compact flash read write cylinder number low pointer ip_cf_cyl_h 0x4a compact flash read write cylinder number high pointer ip...

Страница 12: ...ch data If your carrier board pre fetches the interrupt status then the status may be cleared when the SW goes to look at it If this is an issue then be careful with the order of reading the registers...

Страница 13: ...y check for it directly The location of the ID PROM in the host s address space is dependent on which carrier is used Standard data in the ID PROM on the IP CF is shown in the figure below For more in...

Страница 14: ...35 D7 n c 11 36 D8 A1 12 37 D9 DMAEnd 13 38 D10 A2 14 39 D11 n c 15 40 D12 A3 16 41 D13 IntReq0 17 42 D14 A4 18 43 D15 IntReq1 19 44 BS0 A5 20 45 BS1 n c 21 46 n c A6 22 47 n c Ack 23 48 5V n c 24 49...

Страница 15: ...FP5V D0 9 34 FP5V D14 10 35 GND D1 11 36 DASP D13 12 37 CS1 D2 13 38 CS0 D12 14 39 A2 D3 15 40 A0 D11 16 41 PDIAG D4 17 42 A1 D10 18 43 IOCS16 D5 19 44 IREQ D9 20 45 GND D6 21 46 DMACKN D8 22 47 IORD...

Страница 16: ...ost system This problem may be avoided by turning all power supplies on and off at the same time We provide the components You provide the system Safety and reliability can be achieved only by careful...

Страница 17: ...th plugs and receptacles They are rated at 1 Amp per pin 200 insertion cycles minimum These connectors make consistent correct insertion easy and reliable The IP is secured against the carrier with fo...

Страница 18: ...ip prepaid and insured with the RMA number clearly written on the outside of the package Include a return address and the telephone number of a technical contact For out of warranty repairs a purchase...

Страница 19: ...Mhz for internal operations Approximately 1 uS for CompactFLASH accesses Write operations are posted and return for pipelined operation Read accesses are data delayed Interrupt Masked or polled opera...

Страница 20: ...ints isolated power and quickswitch technology to allow hot swapping of IPs or power cycling without powering down the host http www dyneng com ipdbgbus html PCIe3IP 1 2 length PCIe card with 3 IP slo...

Отзывы: