16 Dec 95 07:53, Tim Hutzler escrib¡a a All:
Hola Tim!
TH> I want to control the DSR and/or the CTS line of a serial port that a
TH> serial mouse is connected to. When I probed these pins, I found some
TH> unexpected things.
What doy you want to do with the mouse ?
[...]
TH> I want to avoid direct register manipulation, but if someone knows the
TH> programming model of the 8250, I'll consider it. My concern is
TH> compatibility. It *must* work with all PCs.
Direct manipulation is the only way :-( But this method is compatible
enougth. All 8250, 16450 and 16550 supports the same control lines, and
control protocol. You can only experience problems with inteligent
controllers, but... Have you see a mouse conected to an inteligent controller
some time ? :-)
TH> Anyone messed with manipulating control lines before?
I have programmed many RS232 routines, but long time ago, at this moment I
can't explain to you how to do it. You can use the source code that comes
with PowerBASIC 3.1 or 3.2 (I don't known) that provides functions to
manipulate serial lines.
TH> PS - how does a serial mouse get its power. My guess is the toggling
TH> state on the TD line. But that's just a *guess*.
:-) Do you want to detect a mouse attached ? :-))) Look mi next UUencoded
routine ;-)
Saludotes,
,,,
`0-0' JOS (2:348/102) ** Fel¡s navid s **
/-(_)-\ mejuto@sfdzuma.usc.es
--- FD2.12+ & GoldED 2.50+ & FE145+
---------------
* Origin: -=EDI=BBS=- 28800 //V34/VFC// Santiago //+34-81-502110 (2:348/102)
|