🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #335

Re: serial communications on NeXT computer

#335
From: Soo Lee
Date: Thu, 30 Jul 1992 00:57
47 lines
2571 bytes
In article <KARTHY.92Jul23115350@xiv.iesd.auc.dk> karthy@iesd.auc.dk (Karsten Thygesen) writes:
>
>Hi.
>
>I am forwarding this question for a friend, but please send any
>help/comments to me.
>
>Problem: We are currently developing a program to control a
>professional video recorder. The video recorder has a serial RS 232
>interface which communicates at 38400 bit/s, 8 data bits and odd
>parity (i.e. 9 bits per character plus start/stop bits). These
>communication parameters cannot be changed in the video recorder. We
>have suceeded in producing a C program which reads and a writes to one
>of the Next's serial ports at the required speed, but we can't get the
>program to send 8 bit data followed by the parity bit. We guess this
>is due to limitations in the standard serial drivers (/dev/tty) which
>can only generate a parity bit when 7 data bits are used (i.e. max. 8
>bits per character plus start/stop bits). To solve the problem, we
>would like to know:
>
>1) Are we correct in assuming the above limitation regarding the
>standard driver? If not, how do you set it to the required parameters.
>
>2) If the standard driver cannot be set to the required parameters,
>how do you access the hardware (SCC chip)? 
>
>In both cases, pieces of sample code would be very helpful. (We have a
>technical description of the SCC chip itself).
>
>Thanks in advance,
>
>Karsten.
>
>--
>--------------------------------------------------------------------
>Karsten Thygesen              I Aalborg University                 I
>Korsgade 48 2. th             I Institute for electronic systems   I
>9000 Aalborg                  I                                    I
>InterNet: karthy@iesd.auc.dk  I Fredrik Bajers vej 7, 9220 Aalborg I
>Phone (HOME): +45-98124259    I DK-Denmark.                        I
>--------------------------------------------------------------------

My favoite solution for this kind is just one 68HC11. It has EEPROM inside
which can take care of conversion as a snap.

Soo
lee@cs.wisc.edu
Technical Details
Message-ID: <1992Jul30.005733.21284@spool.cs.wisc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!wupost!uwm.edu!daffy!uwvax!pipe.cs.wisc.edu!lee
References: <KARTHY.92Jul23115350@xiv.iesd.auc.dk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!wupost!uwm.edu!daffy!uwvax!pipe.cs.wisc.edu!lee
From: lee@pipe.cs.wisc.edu (Soo Lee)
Subject: Re: serial communications on NeXT computer
Message-ID: <1992Jul30.005733.21284@spool.cs.wisc.edu>
Sender: news@spool.cs.wisc.edu (The News)
Organization: U of Wisconsin CS Dept
References: <KARTHY.92Jul23115350@xiv.iesd.auc.dk>
Distribution: comp
Date: Thu, 30 Jul 1992 00:57:33 GMT
Lines: 47