Subj : Re: IO Port To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Tue Nov 09 2004 03:15 pm Dani wrote: >This is new for me :( >I need to open a drawer which uses RJ11 Connector. The specifications are: > >The driving voltage is DC+12V. I/O port 408h is used for the solenoid operation. To open the drawer, write E0h to the port, wait 200ms, then write F0h to turn off the drive. > >Can anyone provide me with an example for this. #include outportb( 0x408, 0xe0 ); delay(200) outportb( 0x408, 0xf0 ); Unless you are writting for 32 bit Windows, but then you'd be in the wrong group :-) .