home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / apps / 2515 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.4 KB  |  37 lines

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