Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2003
    Location
    ireland
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sending a pin high in the com port (c++)

    Could anyone tell me how to send (we'll sey pin one) high using c++.
    I have made an alarm for my bedroom and i wanted to be able to disarm it from my pc.
    I would also like the program to do something when the alarm goes off.
    when it goes off it will send a current down to pin 5.So is it possible for my program to detect this and use cout to display a message.


    Also:
    is there a timing function in c++.
    When a sensor is tripped it will send logic high to a pin.But i would type in a password and stop it from activating the alarm.If the password is not enered within 30 seconds it will be activated.

    Thanks,
    NARF!!
    hello says narf
    and narf says hello

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ive not done this in c++, i have done it in VB for a project.

    you need to include the input output dll file for your pc, and then you get the address of your card and send a decimal number to it, dpeneding on what the card manual specifies.

    When i did this we were programming intel 8255 and 8254's programal chips.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •