EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  <19971998  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  Index 1994  1995  1996  <19971998  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 
<== Date ==> <== Thread ==>

Subject: VMIC 2120 Support
From: Graham Waters <[email protected]>
To: [email protected]
Date: Thu, 25 Sep 1997 13:01:55 -0700
I'm writing device support for the VMIC 2120. This is a 64 bit digital
output device. Its data address map is as follows:

Relative Address	mnemonic	function

xxx0			DR0		data register 0 (bits 56 - 63)
xxx1			DR1		data register 1 (bits 48 - 55)
xxx2			DR2		data register 2 (bits 40 - 47)
xxx3			DR3		data register 3 (bits 32 - 39)
xxx4			DR4		data register 4 (bits 24 - 31)
xxx5			DR5		data register 5 (bits 16 - 23)
xxx6			DR6		data register 6 (bits  8 - 15)
xxx7			DR7		data register 7 (bits  0 - 7)

For binary output support I use a 32 bit write to DR0 or DR4 in the
following
manner:

	if (signal > 31) use DR0
	else use DR4

A problem arises with mbbo support. At the record support level
the value field is set to zero for signals > 31.

I've looked at several options:

1) Regard the module as two separate 32-bit devices with different base
addresses
2) Use PARAM as an address offset (eg #C0 S0 @0x0004 or #C0 S0 @0x0000)
3) bypass the VAL field and access the the state masks directly

I'm sure this problem will crop up with other devices.
Anyone have any suggestions

Graham.

+-----------------------------------------------------------------------+
| Graham Waters, Control System Eng          Internet: [email protected]
|
| TRIUMF --- University of British Columbia,	phone: (604)-222-1047   |
| Vancouver, BC, Canada                           Fax: (604)-222-7307  
|
| http://sunset.triumf.ca/homepage/graham01.html                       
|
+-----------------------------------------------------------------------+

Navigate by Date:
Prev: Re: Enhanced vxWorks Variable Support William Lupton
Next: NV Ram use under EPICS Holger Jones
Index: 1994  1995  1996  <19971998  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: Archiving & save/restore update Bob Dalesio
Next: NV Ram use under EPICS Holger Jones
Index: 1994  1995  1996  <19971998  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