Check the state of a relay or a switch


New Member

I have a PDA Asus636.
I want to make a small program, in basic4ppc, which is capable to check the state of a relay or a switch.
My questions are, how to use the pins of the connector and how to check the state in the program.

Long time ago, on my old 8086 computer, I used two pins of the parallel port. When connected, an interruption is generated. In the software, I modified the interruption routine to set a flag, which I used in the main program. I want, if possible, something similar on my asus.