home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.apps
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!ames!eos!aio!zaphod!john
- From: john@zaphod.jsc.nasa.gov (John Fwu/HawkEye)
- Subject: Serial I/O with both parity?
- Message-ID: <1992Nov18.192218.21959@aio.jsc.nasa.gov>
- Sender: news@aio.jsc.nasa.gov (USENET News System)
- Organization: nasa-jsc
- Date: Wed, 18 Nov 1992 19:22:18 GMT
- Lines: 26
-
- Dear Sun Experts:
-
- We got an 12-bit plus sign A/D converter with asynchronous
- serial interace. The way it send 12 bit is pad the 12 bit
- into two bytes. The lower byte has "even parity" and the upper
- byte has "odd parity". We need to base on the parity to figure
- out the byte order then put the 12 bit data together.
-
- Base on my experience, we either set the serial communication
- on "odd" or "even" parity. How can we handle both parity at
- the same time. May be we may set the parity to "even", then
- the upper byte will cause a "parity error". How can we detect
- the "parity error" or it just not available in the SUN's tty
- driver? If we were able to detect the parity error, can we
- also get the upper byte intact?
-
- Your help will be appreciated very much. If possible please
- CC to me at "john@trillian.jsc.nasa.gov", since our news server
- is not stable recently.
-
- Help!!!!!
- --
- ------------
- J. John Fwu (john@trillian.jsc.nasa.gov)
- Integrated Graphics Operations and Analysis Laboratory (IGOAL)
- NASA JSC, ER6, Houston, TX 77058 | Voice: (713) 483-8101 FAX: 483-3204
-