g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: How to set the parameters of the mrmEvrSetupVME or mrmEvgSetupVME
From: "Bjorklund, Eric A" <bjorklund@lanl.gov>
To: EPICS tech-talk <tech-talk@aps.anl.gov>
Date: Fri, 10 Feb 2012 00:33:23 +0000
Hello Kevin

I've never tried using the jumpers to set the VME address, so I can't answer with any authority on that point.  However, using the jumpers should not be necessary if you are using a VME-64X crate.

To initialize and EVG in slot 2 to have a VME address of "0x100000", with IRQ Level 3 and IRQ vector 4 the call to mrmEvgSetupVME would look something like:

mrmEvgSetupVME ("EVG-1", 2, 0x100000, 3, 4)
where:
 "EVG-1" is the "name string you wish to associate with this EVG"
 "2" is the slot it is in.
 "0x100000" is the VME address (in A24 space for the EVG, in A32 space for the EVR) you want the card to have
 "3" is the IRQ level, and
 "4" is the IRQ vector.

The software uses VME CR/CSR addressing to set the card in slot 2 to whatever VME address you select.
The VME address and IRQ vector must be chosen to not conflict with other VME boards and also be in a valid range for your environment.  Since you are running RTEMS, Michael Davidsaver can probably advise you about what would be valid values for the VME address and IRQ vector would be.

HTH.

-Eric Bj.

On Feb 9, 2012, at 4:25 PM, Zhu, Lixin wrote:

> 
> Hi All,
> 
>      Thanks in advance.
> 
> How to fill the parameters of the   mrmEvrSetupVME(const char *id, int slot, int base, int level, int vector ), especially for the base address and vector number para. ?
> 
>      I am using the MVME3100 +  VME-EVR-230RF /  VME-EVG-230  board ,standard VME crate  . The EVR & EVG 230 boards, I set them as the slot 2 by setting the jumbers 
> 
> according to the VME specification datasheet as the following .
> 
> Slot GAP* GA4* GA3* GA2* GA1* GA0*
> No.   Pin    Pin    Pin     Pin    Pin     Pin
> 1  Open  Open Open  Open Open GND
> 2  Open  Open Open  Open GND Open
> 3  GND   Open Open  Open GND GND
> 4  Open  Open Open  GND Open Open
> 5  GND   Open Open   GND Open GND
> .....
> 21 Open GND  Open  GND  Open  GND
> 
> 
> 
>    1)     I don't quite understand  the base address is decided by jumper setting.  I am not familiar with the VME protocol,   any body  tell me ,  if the slot is  2, then how 
> 
>            to get  how to get the base address then ?
> 
>    2)     The EVR or EVR address space will be remapped as a part of the  address space of the MVME3100,  how to set the last param., the interrupt vector then ?  
> 
>             Does the BSP layer implement a reasonable conversion or .... ?   My OS  is  RTEMS 4-9,  bsp is MVME3100 .  
> 
>            How to set the last param ?   Thanks~ 
> 
> 
>      Catching up time to demo,  no time to read carefully the protocols and related datasheet. Appreciate your help :) .
> 
> 
> Best regards,
> 
> Kevin Zhu        
> 
> 
> 



References:
How to set the parameters of the mrmEvrSetupVME or mrmEvgSetupVME Zhu, Lixin

Navigate by Date:
Prev: How to set the parameters of the mrmEvrSetupVME or mrmEvgSetupVME Zhu, Lixin
Next: Re: Driver for Lake Shore Model 336 temperature controller Martin L. Smith
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: How to set the parameters of the mrmEvrSetupVME or mrmEvgSetupVME Zhu, Lixin
Next: Waveform record missing fields Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·