From: Young Fan Newsgroups: comp.os.msdos.djgpp Subject: Using the modem control and status registers Date: Mon, 26 Jul 1999 16:13:49 -0400 Organization: Nortel Lines: 18 Message-ID: <379CC17D.8BD04B6F@hotmail.com> NNTP-Posting-Host: pwdld0av.ca.nortel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I'm wondering what I need to do to receive signals properly through the serial port MSR. I can send signals to the MCR, to pin 4 of the serial port, but am having trouble reading this in at the other end. What do I do to read properly what is sent through the MCR? What I am doing is timing-sensitive. For example, I output 0x0f for a certain length of time using inp() to the MCR, and then 0x00 for a certain length of time. How would I read this in (I would use uclock() to do the timing). Any help as soon as possible, and especially any sample code for me to look at, would be greatly appreciated. Thank you in advance. P.S. Please note that I am not using standard UART serial communications, since I need the signals to follow a certain timing format, as opposed to any baud rate, etc.