EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  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  1997  <19981999  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: Re: mv167 Parity
From: Dave Reid <[email protected]>
To: Marty Kraimer <[email protected]>
Cc: [email protected]
Date: Thu, 15 Jan 1998 09:43:59 -0800
Marty Kraimer wrote:
> 
> While investigating an ioc problem we (actually Frank Lenkszus) noticed
> that the mv167 board support package does not enable parity checking.
> 
> Has anyone enable parity checking on the mv167?
> What changes to the board support package are necessary?
> Are there any problem doing this?
> 

	I'm actaully working on this as we speak.  After much
going back and forth with WindRiver, they have sent me the two
following fixes:

Fix 1:

====================================================================

#include "vxWorks.h"
#include "sioLib.h"
#include "drv/sio/cd2400Sio.h"

extern SIO_CHAN *sioDesc[];

void evenParitySet(int channel)
    {

    CD2400_QUSART * pQusart;

    pQusart = ((CD2400_CHAN *) sioDesc[channel]) -> pQusart;
    *MPCC_COR1 = COR1_EVEN_PARITY | COR1_PARITY | COR1_8BITS;
    }
 
====================================================================

Fix 2:

=====================================================================
Here is a second version, using sysSerialChanGet:

#include "vxWorks.h"
#include "sioLib.h"
#include "drv/sio/cd2400Sio.h"
#include "sysLib.h"

void evenParitySet(int channel)
    {

    CD2400_QUSART * pQusart;

    pQusart = ((CD2400_CHAN *) sysSerialChanGet(channel)) -> pQusart;
    *MPCC_COR1 = COR1_EVEN_PARITY | COR1_PARITY | COR1_8BITS;
    }
=====================================================================

	I'm just in the process of confirming that these
fixes will work.

dave
=============================================================
Dave Reid                   [email protected]
UW Medical Center           (206)548-4536
Radiation Oncology Dept.    	
Seattle, WA

References:
mv167 Parity Marty Kraimer

Navigate by Date:
Prev: mv167 Parity Marty Kraimer
Next: mv167 Parity Clarification Frank Lenkszus
Index: 1994  1995  1996  1997  <19981999  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: mv167 Parity Marty Kraimer
Next: mv167 Parity Clarification Frank Lenkszus
Index: 1994  1995  1996  1997  <19981999  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·