Thank you!
The information you maybe need:
CPU board: Motorola MVME 5100
OS : VxWorks 5.4
EPICS: 3.13.8
driver: I modified the driver of VMIVME 4100 coded by Bob Dalesio
( I didn't modified the driver much, which mainly about some configuration information,like channels number, data structure info and so on.)
I configure one 4105 board in an EPICS application's start-up file--st.cmd.
Code like: vmi4105_cnfg(0,0x0000)
Then I download the application on the vxWorks oprating on the MVME 5100 CPU board.
It return OK. 4105 was configured correctly.
Then I display the register on the board:
--------------------------------------------------------------------------------------
-> d 0xfbff0000
fbff0000: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff *................*
fbff0010: ffff ffff ffff ffff ffff ffff ffff ffff *................*
fbff0020: ffff ffff ffff ffff ffff ffff ffff ffff *................*
------OK
-> m 0xfbff0000
fbff0000: 00ff-c300 (I only modified first byes.)
fbff0002: c3ff-.
value = 1 = 0x1 (1 means read-only?)
-> d 0xfbff0000
fbff0000: c3ff c3ff c3ff c3ff c3ff c3ff c3ff c3ff *................* (All of them was modified.)
fbff0010: ffff ffff ffff ffff ffff ffff ffff ffff *................*
fbff0020: ffff ffff ffff ffff ffff ffff ffff ffff *................*
-------(c3 was the basic configuration. The lower 8bits was reserved, and they cannot be wrote to 0)
-> m 0xfbff0000
fbff0000: c3ff-74bb ( D15 is 0, 4bbb is the channel signal)
fbff0002: c3ff-6bbb ( D15 is 0, bbb is the channel signal)
fbff0004: c3ff-.
value = 1 = 0x1
-> d 0xfbff0000
fbff0000: c3ff c3ff c3ff c3ff c3ff c3ff c3ff c3ff *................*
fbff0010: ffff ffff ffff ffff ffff ffff ffff ffff *................*
fbff0020: ffff ffff ffff ffff ffff ffff ffff ffff *................*
---------As you see, They are not modified, even if I input all the 8 channels signals.)
---------Why??
---------But,it could be wrote to other configure information.
-> m 0xfbff0000
fbff0000: c3ff-8bbb
fbff0002: 8bff-.
value = 1 = 0x1
-> d 0xfbff0000
fbff0000: 8bff 8bff 8bff 8bff 8bff 8bff 8bff 8bff *................*
fbff0010: ffff ffff ffff ffff ffff ffff ffff ffff *................*
fbff0020: ffff ffff ffff ffff ffff ffff ffff ffff *................*
----------------------------------------------------------------------------------------
Above shows the errors I come across.
Besides, 4105 has an address modifier response jumper JA.The DAC board is memory mapped in the short I/O address space .To select non-privileged short I/O Access, install jumper at JA.
My board is installed jumper JA.---non-privileged short I/O Access.
The code in driver: status = sysBusToLocalAdrs(VME_AM_SUP_SHORT_IO ,(char *)addr,(char **)&pcard);
( addr is the address I input. pcard returns the local address.)
In sysBusToLocalAdrs, I select VME_AM_SUP_SHORT_IO Address Modifier code.
So, it seems that the hardware configuration and software configuration is inconsistent.But it works well.
I tried remove the jumper of JA, so board response to supervisory short I/O access. But it cannot be configured. 4105 board cannot be found.
I don't know where the errors happened and I don't have idea about the next steps I can try.
I'm looking forward to your response. Thank you very much. ^_^
Ma Xiao yuan
> -----Origin email-----
> From: "Andrew Johnson" <[email protected]>
> Sent Time: Tuesday, April 26, 2011
> To: [email protected]
> Cc: "马晓媛" <[email protected]>
> Subject: Re: VMIC VMIVME 4105 register cannot be modified?
>
> Hi,
>
> On Sunday 24 April 2011 22:26:44 马晓媛 wrote:
> >
> > I worked with VMIVME 4105, but now it comes across some problem that I
> > cannot handle.VMIVME 4105 is a 8channel 12bits multiplying DAC board. I
> > modified the driver of VMIVME 4100 to 4105's driver. VMIVME 4100 is a
> > 16channel 12bit DAC board. They are alike.
> ...
> > Now I can configure the CSR, BUT, I cannot write D15 to "0" to write data
> > to DAC channels. Why? I need your help. Thank you very much!^_^
>
> When you say you cannot do that, what actually happens when you try writing a
> 16-bit value with D15=0 to one of the DAC OUT registers?
>
> Please copy & paste and command you're using and the error messages you see
> directly from the system console, and include more information rather than
> less if you're not sure what might be relevant. You should also explain what
> CPU board, OS version and driver you are using. We can't help you very much
> without knowing more about what you are doing.
>
> - Andrew
> --
> An error is only a mistake if you don't learn from it.
> When you learn something from it, it becomes a lesson.
- Replies:
- Re: VMIC VMIVME 4105 register cannot be modified? Andrew Johnson
- Re: Re: VMIC VMIVME 4105 register cannot be modified? 马晓媛
- References:
- Re: VMIC VMIVME 4105 register cannot be modified? Andrew Johnson
- VMIC VMIVME 4105 register cannot be modified? 马晓媛
- Navigate by Date:
- Prev:
Re: PV not found 闫芬
- Next:
Re: gateway aborted by SIGBUS Martin L. Smith
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: VMIC VMIVME 4105 register cannot be modified? Andrew Johnson
- Next:
Re: VMIC VMIVME 4105 register cannot be modified? Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|