Re:PCI-660x

FYI,

The 6602 and 6608 cards require a slightly different initialization of the
PCI interface (MITE chip) on the card than other NI cards such as the E
series MIO. With this updated initialization of the MITE, there is no
problem addressing the second TIO chip (TIO1) on the card.

The E series cards include the following initialization of the MITE:

      //Tell the MITE to enable BAR1, where the rest of the board's
registers are
      Bar0.write32(0xC0, (physicalBar1 & 0xffffff00L) | 0x80);


For the 660x this should be replaced with the following code:

      // ***** 6602/6608 specific MITE initialization *****

      // Hit the IO Window Base/Size Register 1 (IOWBSR1) in the MITE.  We
set the
      // address, enable the window and set the size of the window:
      Bar0.write32(0xC4, (physicalBar1 & 0xffffff00L) | 0x8C);

      // Write to the IO Window Control Register 1 (IOWCR1) to make the IO
window
      // go to RAM memory space instead of the config space
      Bar0.write32(0xF4, 0);

physicalBar1 is the physical address of BAR1on the card which is the base
address of the TIO0.

Bar0.write32 writes to the given offset from BAR0 which is the MITE chip on
the board.


Christian H. Loew
Systems Engineer
RLP Discussion Newsgroup - natinst.public.daq.driver-development.general
---------------------------------------------------------
National Instruments | christian.loew_at_ni.com | www.ni.com




|---------+---------------------------->
|         |           Rob Russell      |
|         |           <russell_at_osb1.wff|
|         |           .nasa.gov>       |
|         |           Sent by:         |
|         |           comedi-admin_at_come|
|         |           di.org           |
|         |                            |
|         |                            |
|         |           11/12/2002 08:53 |
|         |           AM               |
|         |                            |
|---------+---------------------------->
  >--------------------------------------------------------------------------------------------------------------|
  |                                                                                                              |
  |       To:       comedi_at_comedi.org                                                                            |
  |       cc:       misculrich_at_yahoo.com                                                                         |
  |       Subject:  Re:PCI-660x                                                                                  |
  >--------------------------------------------------------------------------------------------------------------|




Marc,

             I've been playing with the 660x. I'm not convinced that it is
supported
by Comedi, though.
             A heads up to anyone out there attempting to write a driver
for the
6602:  it seems that the Register Level Programming manual that NI
provides isn't exactly complete.  Some of the functionality of the
board, such as gate interrupts, might be tricky (I haven't been able to
implement, anyway) to get working.  You might also encounter problems
addressing the second counter ( TIO(1) ) on the board.

- Rob




_______________________________________________
comedi mailing list
comedi_at_comedi.org
https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

Received on 2002-11-12Z16:15:11