Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Dec 1999 17:40:36 +0200
From:      "Daniel Hilevich" <danhil@cwnt.com>
To:        <freebsd-questions@FreeBSD.ORG>, <freebsd-hackers@FreeBSD.ORG>
Subject:   Use of the ppi interface
Message-ID:  <060901bf4192$926e8350$2e00a8c0@cwnt.co.il>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0606_01BF41A3.55F138D0
Content-Type: text/plain;
	charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

Hi,
I'm using the parallel port to control some sort of a hardware (i2c). =
For that I generate pulses using the ppi device (geek port). The problem =
is that in some cases, the pulse isn't generated. What I do is sending =
an ioctl to make the device high (1) and another ioctl to set the device =
low (0). It seems that in some cases, the two commands arrive together =
to the device so the pulse isn't wide enough.
Does the ppbus layer stores the ioctl's in some sort of a buffer and =
than flushes its content to the hardware?
If so, is there a way to control it?
The pulses should be in fixed size, so any other idea will be welcomed.
Thanx,=20
---
Daniel Hilevich mailto:danhil@cwnt.com=20
Tel: +972-4-9592203  ext. 214
Charlotte's Web Networks LTD.=20
http://www.cwnt.com


------=_NextPart_000_0606_01BF41A3.55F138D0
Content-Type: text/html;
	charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1255" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#a6caf0>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3D"Arial (Hebrew)" size=3D2>I'm using the parallel port =
to control=20
some sort of a hardware (i2c). For that I generate pulses using the ppi =
device=20
(geek port). The problem is that in some cases, the pulse isn't=20
generated.&nbsp;What I do is sending an ioctl to make the device high =
(1) and=20
another ioctl to set the device low (0). It seems that in some cases, =
the two=20
commands arrive together to the device so the pulse isn't wide=20
enough.</FONT></DIV>
<DIV><FONT face=3D"Arial (Hebrew)" size=3D2>Does the ppbus layer stores =
the ioctl's=20
in some sort of a buffer and than flushes its content to the=20
hardware?</FONT></DIV>
<DIV><FONT face=3D"Arial (Hebrew)" size=3D2>If so, is there a way to =
control=20
it?</FONT></DIV>
<DIV><FONT face=3D"Arial (Hebrew)" size=3D2><FONT =
face=3DArial></FONT>The=20
pulses&nbsp;should be in fixed size, so any other idea will be=20
welcomed.</FONT></DIV>
<DIV><FONT face=3D"Arial (Hebrew)" size=3D2>Thanx,</FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>---<BR>Daniel Hilevich <A=20
href=3D"mailto:danhil@cwnt.com">mailto:danhil@cwnt.com</A> <BR>Tel:=20
+972-4-9592203&nbsp; ext. 214<BR>Charlotte's Web Networks LTD. <BR><A=20
href=3D"http://www.cwnt.com">http://www.cwnt.com</A><BR></FONT></DIV></BO=
DY></HTML>

------=_NextPart_000_0606_01BF41A3.55F138D0--




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?060901bf4192$926e8350$2e00a8c0>