Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Parallel and Serial Interruption

$
0
0

I want to handle a interrup on LPT1 or COM1 port, without threads. i thought this:

1- In my program i set a interruption and the function that will be called when interrupt occur;

2- Windows automatically handles the port status and calls the function when interrupted;



Now, can I make this? How? If i can't, how can i have a interrup on LPT1 or COM1 which calls a function?

The function is generic, doesn't matter.

I can't use threads because my program already uses too much threads and another one can blow up the timer of all the system.

I'm using C++ and Windows 7


Best Regards, Filipe Isaac Alvarenga e Meireles | Software/Firmware Programmer at GE HealthCare


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>