Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to disable the 5v output of a serial port?

Status
Not open for further replies.

039648690

Programmer
Apr 23, 2002
1
IL
hi there...

i would realy like to get help on this.
i need to disable the 5v output on the 4 pin of a mouse serial output.i tried to get it done by setting the 4th bit of the 3f8H memory byte to zero and that didn't do the trick.i tried to get this by setting to zero complete bytes of several potential addressess (my pc is still running... :) ). i got lost here. i would thank any one who will help...

Grupi
 
Hi Grupi,

Doing what you did once isn't going to keep the state. This level should be reduced to zero whenever there is a change. This can be trapped by hooking up your own Interrupt Service Routine to the mouse interrupt. So your routine overrides the original one and makes this change and hands the control back to the original one for normal functioning.

This type of coding is know as TSR programs. They are Terminate and Stay Resident codes and they start with the function
Code:
keep(...);
Refer to manual for function details. This is how drivers and not to mention, viruses are programmed.

Hope this helps... have fun coding.

Roy
user.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top