Hi,
Sorry I'm late to reply here. Actually, my reply is *almost* useless
(this kind of stuff is way over my head). I'm *almost* off-topic, but
you did mention Linux, so
On Wed, Jan 2, 2019 at 9:47 AM stecdose wrote:
>
> On 12/31/18 8:14 PM, Tom Ehlert wrote:
>
> >> There should be plenty
I have seen logic analysers that claim to get a sample rate up to 1 MHz
from the parallel port depending on hardware.
https://jwasys.home.xs4all.nl/old/diy2.html
If I remember correctly, isn't there a 18.5 Hz interrupt/clock as standard
on the pc? Might be useful to know for original poster.
Den
On 12/31/18 8:14 PM, Tom Ehlert wrote:
I thought about having an ISR capturing the data being called at capture
rate, which should be something around 100kHz to 150kHz
unlikely. expect *each* inp()/outp() operation to use O(500ns)
there is also a notable delay between applying an input 0/1
On Mon, 31 Dec 2018 19:17:15 +0100, stecdose wrote:
> For a later experiment project I want to capture parallel port data on a
> Pentium 3 which is very fast compared to a parallel port's speed.
> I thought about having an ISR capturing the data being called at capture
> rate, which should be
Just as an FYI, other people have tried to do the same kinds of things
(particularly with fast polling of a parallel port) with mixed results.
Some TSRs and device drivers, for example, don't work properly if the the clock
interrupt is reprogrammed. They use the counter you want to reprogram
> Just out of curiosity, if I write something for a DOS4GW 32bit
> environment, would I choose the same way for having a timer or are there
> better ways for having a timer callback function?
the idea will be the same, the routines to use are different.
> For a later experiment project I want to
Thank you Mateusz, Matej already sent your code :)
This is very good example, clear and readable code, as short as possible
and the pitfalls are considered (calling dos-handler at 18.2...)
Thank you for making this! :)
Just out of curiosity, if I write something for a DOS4GW 32bit
On Mon, 31 Dec 2018 17:06:14 +0100, stecdose wrote:
> How would I write a ISR in watcom c? Do you know of any programs making
> use of this, where I can look at?
This is how I did it:
https://sourceforge.net/p/dosmid/code/HEAD/tree/trunk/timer.c
Mateusz
--
FreeDOS is present on the USENET,
That's exactly, what I am looking for. It already handles *everything* I
have to care about. Calling the original interrupt handler at it's rate
- no matter of my programmed rate and servicing the interrupt
controller, setting up registers, how-to-ISR-in-watcom, ...
Thank you very much :)
On Mon, 31 Dec 2018 17:06:14 +0100, stecdose wrote:
How would I write a ISR in watcom c? Do you know of any programs making
use of this, where I can look at?
I think this file in DOSMid by Mateusz Viste is an example of what you
want:
As I had problems finding any examples, that I could adapt I am writing
here now.
I want to use the PIT (programmable interval timer,
https://wiki.osdev.org/Programmable_Interval_Timer ) in a C program for
DOS. I want to peridiocally update a user interface.
How would I write a ISR in
11 matches
Mail list logo