Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Unit Dos of Pascal

(I'm very sorry about my English)

When I program with Pascal I use two functions of Dos Unit

getIntVec(ComInt[Com], OldInt[Com]);
setIntVec(ComInt[Com], @comInterrupt);

And these are my question:
Are there any functions in delphi to substitute for two functions above?
If yes, how to use it?
Thanks

Comments

  • pritaeaspritaeas Posts: 274Member
    No, sorry. You can no longer program interrupts in this way.

    : When I program with Pascal I use two functions of Dos Unit
    :
    : getIntVec(ComInt[Com], OldInt[Com]);
    : setIntVec(ComInt[Com], @comInterrupt);
    :
    : And these are my question:
    : Are there any functions in delphi to substitute for two functions
    : above?
    : If yes, how to use it?

  • HainguyenHainguyen Posts: 3Member
    : No, sorry. You can no longer program interrupts in this way.

    Thank you very much. I'll try anoter way. And I want to ask you one more question:
    I've designed a module (ADC 10 chanel) to conect to PC via Com Port, Baud rate of my module is:1.1520Mhz.
    In Delphi, how can I Open and set Baud rate 1.1520Mhz for Com port of my PC?

    (When I program with Pascal, every thing is OK)



  • pritaeaspritaeas Posts: 274Member
    : I've designed a module (ADC 10 chanel) to conect to PC via Com Port,
    : Baud rate of my module is:1.1520Mhz.
    : In Delphi, how can I Open and set Baud rate 1.1520Mhz for Com port of
    : my PC?

    Don't know. Does a COM port support such speed? I think not. Even if you could do it in Delphi, I don't think Windows will allow you to do this. IIRC only drivers can do this.
  • HainguyenHainguyen Posts: 3Member
    Now, I' changed Baud of my module to 9600. How can I control DTR and RTS line and get serial data from my module ?
Sign In or Register to comment.