Interrupt Handling

Hi all,

I’m starting porting some Interrupt Handler programs made on the old DOS to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my cycle of
execution. I programming the div to do the interrupt routine in 10ms or
100ms or any other period. In QNX i will do the same? Or QNX have other ways
to do this kind of job?

2 - I have to write a lot of device drivers for a lot of custom-made
devices, some with Interrupt Event (like Paralel Port), some with a
pre-determinated period of execution (every 100ms or 10ms) and some with
both options. Is there any Guide, Link or Source-Example that someone can
share?


I’m starting with the Real-Time OS World, so, i really want to study some
descriptions, documentations, examples and HOWTO’S.

I know that i’m asking for too much, but a little guide for a simple program
(with Interrupt Handler) for a simple task like sending an out8() to the
paralel port (which is attached to a osciloscope so i can see if it’s
working like i want) every NNms will help me a lot!

I’m a Robotics student trying to make much more confiable work (Real-Time).
So, that’s why i’m asking so much.


Thx a lot.


Leandro Colen.
University PUC-MG.
Mecatronics (Mecanics and Electronics) Engineering.
Brazil.

If you take a look at the Programmer’s Guide, there is a little bit about
writing ISRs. The help for individual functions is useful, as well.
http://qdn.qnx.com/support/docs/neutrino/prog/inthandler.html

David Kuechenmeister
david.kuechenmeister@viasat.com

“Leandro Colen” <lcrocha@yahoo.com> wrote in message
news:ac6e6d$jk4$1@inn.qnx.com

Hi all,

I’m starting porting some Interrupt Handler programs made on the old DOS
to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my cycle
of
execution. I programming the div to do the interrupt routine in 10ms or
100ms or any other period. In QNX i will do the same? Or QNX have other
ways
to do this kind of job?

2 - I have to write a lot of device drivers for a lot of custom-made
devices, some with Interrupt Event (like Paralel Port), some with a
pre-determinated period of execution (every 100ms or 10ms) and some with
both options. Is there any Guide, Link or Source-Example that someone can
share?


I’m starting with the Real-Time OS World, so, i really want to study some
descriptions, documentations, examples and HOWTO’S.

I know that i’m asking for too much, but a little guide for a simple
program
(with Interrupt Handler) for a simple task like sending an out8() to the
paralel port (which is attached to a osciloscope so i can see if it’s
working like i want) every NNms will help me a lot!

I’m a Robotics student trying to make much more confiable work
(Real-Time).
So, that’s why i’m asking so much.


Thx a lot.


Leandro Colen.
University PUC-MG.
Mecatronics (Mecanics and Electronics) Engineering.
Brazil.

I’m looking for more documentation…

Today i use the programmer’s guide, but more documentation will be useful…

It’s hard to find documentations like this on the web. Is there any book
that cover this?

“David Kuechenmeister” <david.kuechenmeister@viasat.com> escreveu na
mensagem news:acangc$8gt$1@nntp.qnx.com

If you take a look at the Programmer’s Guide, there is a little bit about
writing ISRs. The help for individual functions is useful, as well.
http://qdn.qnx.com/support/docs/neutrino/prog/inthandler.html

David Kuechenmeister
david.kuechenmeister@viasat.com

“Leandro Colen” <> lcrocha@yahoo.com> > wrote in message
news:ac6e6d$jk4$> 1@inn.qnx.com> …

Hi all,

I’m starting porting some Interrupt Handler programs made on the old DOS
to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my cycle
of
execution. I programming the div to do the interrupt routine in 10ms or
100ms or any other period. In QNX i will do the same? Or QNX have other
ways
to do this kind of job?

2 - I have to write a lot of device drivers for a lot of custom-made
devices, some with Interrupt Event (like Paralel Port), some with a
pre-determinated period of execution (every 100ms or 10ms) and some with
both options. Is there any Guide, Link or Source-Example that someone
can
share?


I’m starting with the Real-Time OS World, so, i really want to study
some
descriptions, documentations, examples and HOWTO’S.

I know that i’m asking for too much, but a little guide for a simple
program
(with Interrupt Handler) for a simple task like sending an out8() to the
paralel port (which is attached to a osciloscope so i can see if it’s
working like i want) every NNms will help me a lot!

I’m a Robotics student trying to make much more confiable work
(Real-Time).
So, that’s why i’m asking so much.


Thx a lot.


Leandro Colen.
University PUC-MG.
Mecatronics (Mecanics and Electronics) Engineering.
Brazil.
\

Leandro Colen <lcrocha@yahoo.com> wrote:

I’m looking for more documentation…

Today i use the programmer’s guide, but more documentation will be useful…

It’s hard to find documentations like this on the web. Is there any book
that cover this?

Try www.parse.com/books/book_v3/index.html

There’s a table of contents there and a sample chapter to give you an idea.
While it won’t necessarily answer all of your questions, it should give you
some ideas about timers and interrupts…

Cheers,
-RK

“David Kuechenmeister” <> david.kuechenmeister@viasat.com> > escreveu na
mensagem news:acangc$8gt$> 1@nntp.qnx.com> …
If you take a look at the Programmer’s Guide, there is a little bit about
writing ISRs. The help for individual functions is useful, as well.
http://qdn.qnx.com/support/docs/neutrino/prog/inthandler.html

David Kuechenmeister
david.kuechenmeister@viasat.com

“Leandro Colen” <> lcrocha@yahoo.com> > wrote in message
news:ac6e6d$jk4$> 1@inn.qnx.com> …

Hi all,

I’m starting porting some Interrupt Handler programs made on the old DOS
to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my cycle
of
execution. I programming the div to do the interrupt routine in 10ms or
100ms or any other period. In QNX i will do the same? Or QNX have other
ways
to do this kind of job?

2 - I have to write a lot of device drivers for a lot of custom-made
devices, some with Interrupt Event (like Paralel Port), some with a
pre-determinated period of execution (every 100ms or 10ms) and some with
both options. Is there any Guide, Link or Source-Example that someone
can
share?


I’m starting with the Real-Time OS World, so, i really want to study
some
descriptions, documentations, examples and HOWTO’S.

I know that i’m asking for too much, but a little guide for a simple
program
(with Interrupt Handler) for a simple task like sending an out8() to the
paralel port (which is attached to a osciloscope so i can see if it’s
working like i want) every NNms will help me a lot!

I’m a Robotics student trying to make much more confiable work
(Real-Time).
So, that’s why i’m asking so much.


Thx a lot.


Leandro Colen.
University PUC-MG.
Mecatronics (Mecanics and Electronics) Engineering.
Brazil.

\


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Hi Leandro,

Try www.parse.com/books/book_v3/index.html
Robert Krten’s book is what you’re looking for :wink:

Eduard.
ed1k at ukr dot net

Leandro Colen <lcrocha@yahoo.com> wrote in article <acanjq$kg0$1@inn.qnx.com>…

I’m looking for more documentation…

Today i use the programmer’s guide, but more documentation will be useful…

It’s hard to find documentations like this on the web. Is there any book
that cover this?

“David Kuechenmeister” <> david.kuechenmeister@viasat.com> > escreveu na
mensagem news:acangc$8gt$> 1@nntp.qnx.com> …
If you take a look at the Programmer’s Guide, there is a little bit about
writing ISRs. The help for individual functions is useful, as well.
http://qdn.qnx.com/support/docs/neutrino/prog/inthandler.html

David Kuechenmeister
david.kuechenmeister@viasat.com

“Leandro Colen” <> lcrocha@yahoo.com> > wrote in message
news:ac6e6d$jk4$> 1@inn.qnx.com> …

Hi all,

I’m starting porting some Interrupt Handler programs made on the old DOS
to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my cycle
of
execution. I programming the div to do the interrupt routine in 10ms or
100ms or any other period. In QNX i will do the same? Or QNX have other
ways
to do this kind of job?

2 - I have to write a lot of device drivers for a lot of custom-made
devices, some with Interrupt Event (like Paralel Port), some with a
pre-determinated period of execution (every 100ms or 10ms) and some with
both options. Is there any Guide, Link or Source-Example that someone
can
share?


I’m starting with the Real-Time OS World, so, i really want to study
some
descriptions, documentations, examples and HOWTO’S.

I know that i’m asking for too much, but a little guide for a simple
program
(with Interrupt Handler) for a simple task like sending an out8() to the
paralel port (which is attached to a osciloscope so i can see if it’s
working like i want) every NNms will help me a lot!

I’m a Robotics student trying to make much more confiable work
(Real-Time).
So, that’s why i’m asking so much.


Thx a lot.


Leandro Colen.
University PUC-MG.
Mecatronics (Mecanics and Electronics) Engineering.
Brazil.



\

Hei Robert,

once again you help me… and once again i thank you. This book (that now i
notice that you are the author :wink:, congratulations) may help me a lot. I see
that the sample chapter can help me too, so i will start with this
information and later try to see if the university can get it for me (it’s a
little bit expensive for me to buy it).

Thanx again.
Leandro


“Robert Krten” <nospam88@parse.com> escreveu na mensagem
news:acapod$lss$1@inn.qnx.com

Leandro Colen <> lcrocha@yahoo.com> > wrote:
I’m looking for more documentation…

Today i use the programmer’s guide, but more documentation will be
useful…

It’s hard to find documentations like this on the web. Is there any book
that cover this?

Try > www.parse.com/books/book_v3/index.html

There’s a table of contents there and a sample chapter to give you an
idea.
While it won’t necessarily answer all of your questions, it should give
you
some ideas about timers and interrupts…

Cheers,
-RK

“David Kuechenmeister” <> david.kuechenmeister@viasat.com> > escreveu na
mensagem news:acangc$8gt$> 1@nntp.qnx.com> …
If you take a look at the Programmer’s Guide, there is a little bit
about
writing ISRs. The help for individual functions is useful, as well.
http://qdn.qnx.com/support/docs/neutrino/prog/inthandler.html

David Kuechenmeister
david.kuechenmeister@viasat.com

“Leandro Colen” <> lcrocha@yahoo.com> > wrote in message
news:ac6e6d$jk4$> 1@inn.qnx.com> …

Hi all,

I’m starting porting some Interrupt Handler programs made on the old
DOS
to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my
cycle
of
execution. I programming the div to do the interrupt routine in 10ms
or
100ms or any other period. In QNX i will do the same? Or QNX have
other
ways
to do this kind of job?

2 - I have to write a lot of device drivers for a lot of custom-made
devices, some with Interrupt Event (like Paralel Port), some with a
pre-determinated period of execution (every 100ms or 10ms) and some
with
both options. Is there any Guide, Link or Source-Example that someone
can
share?


I’m starting with the Real-Time OS World, so, i really want to study
some
descriptions, documentations, examples and HOWTO’S.

I know that i’m asking for too much, but a little guide for a simple
program
(with Interrupt Handler) for a simple task like sending an out8() to
the
paralel port (which is attached to a osciloscope so i can see if it’s
working like i want) every NNms will help me a lot!

I’m a Robotics student trying to make much more confiable work
(Real-Time).
So, that’s why i’m asking so much.


Thx a lot.


Leandro Colen.
University PUC-MG.
Mecatronics (Mecanics and Electronics) Engineering.
Brazil.






\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.

Leandro Colen <lcrocha@yahoo.com> wrote:

Hei Robert,

once again you help me… and once again i thank you. This book (that now i
notice that you are the author > :wink:> , congratulations) may help me a lot. I see
that the sample chapter can help me too, so i will start with this
information and later try to see if the university can get it for me (it’s a
little bit expensive for me to buy it).

I have a few damaged copies of the first edition for CAD$20 + S/H; to Brazil
the S/H would be CAD$25, for a total of CAD$45. If you would like this version,
please fax your credit card information to +1 613 599 8317 including your
shipping address…

Cheers!
-RK

Thanx again.
Leandro



“Robert Krten” <> nospam88@parse.com> > escreveu na mensagem
news:acapod$lss$> 1@inn.qnx.com> …
Leandro Colen <> lcrocha@yahoo.com> > wrote:
I’m looking for more documentation…

Today i use the programmer’s guide, but more documentation will be
useful…

It’s hard to find documentations like this on the web. Is there any book
that cover this?

Try > www.parse.com/books/book_v3/index.html

There’s a table of contents there and a sample chapter to give you an
idea.
While it won’t necessarily answer all of your questions, it should give
you
some ideas about timers and interrupts…

Cheers,
-RK

“David Kuechenmeister” <> david.kuechenmeister@viasat.com> > escreveu na
mensagem news:acangc$8gt$> 1@nntp.qnx.com> …
If you take a look at the Programmer’s Guide, there is a little bit
about
writing ISRs. The help for individual functions is useful, as well.
http://qdn.qnx.com/support/docs/neutrino/prog/inthandler.html

David Kuechenmeister
david.kuechenmeister@viasat.com

“Leandro Colen” <> lcrocha@yahoo.com> > wrote in message
news:ac6e6d$jk4$> 1@inn.qnx.com> …

Hi all,

I’m starting porting some Interrupt Handler programs made on the old
DOS
to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my
cycle
of
execution. I programming the div to do the interrupt routine in 10ms
or
100ms or any other period. In QNX i will do the same? Or QNX have
other
ways
to do this kind of job?

2 - I have to write a lot of device drivers for a lot of custom-made
devices, some with Interrupt Event (like Paralel Port), some with a
pre-determinated period of execution (every 100ms or 10ms) and some
with
both options. Is there any Guide, Link or Source-Example that someone
can
share?


I’m starting with the Real-Time OS World, so, i really want to study
some
descriptions, documentations, examples and HOWTO’S.

I know that i’m asking for too much, but a little guide for a simple
program
(with Interrupt Handler) for a simple task like sending an out8() to
the
paralel port (which is attached to a osciloscope so i can see if it’s
working like i want) every NNms will help me a lot!

I’m a Robotics student trying to make much more confiable work
(Real-Time).
So, that’s why i’m asking so much.


Thx a lot.


Leandro Colen.
University PUC-MG.
Mecatronics (Mecanics and Electronics) Engineering.
Brazil.






\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

I’ll think about it… :slight_smile:

Give some time to think, then i contact you again…

Thx.

“Robert Krten” <nospam88@parse.com> escreveu na mensagem
news:acas2m$n8g$1@inn.qnx.com

Leandro Colen <> lcrocha@yahoo.com> > wrote:
Hei Robert,

once again you help me… and once again i thank you. This book (that
now i
notice that you are the author > :wink:> , congratulations) may help me a lot. I
see
that the sample chapter can help me too, so i will start with this
information and later try to see if the university can get it for me
(it’s a
little bit expensive for me to buy it).

I have a few damaged copies of the first edition for CAD$20 + S/H; to
Brazil
the S/H would be CAD$25, for a total of CAD$45. If you would like this
version,
please fax your credit card information to +1 613 599 8317 including your
shipping address…

Cheers!
-RK

Thanx again.
Leandro


“Robert Krten” <> nospam88@parse.com> > escreveu na mensagem
news:acapod$lss$> 1@inn.qnx.com> …
Leandro Colen <> lcrocha@yahoo.com> > wrote:
I’m looking for more documentation…

Today i use the programmer’s guide, but more documentation will be
useful…

It’s hard to find documentations like this on the web. Is there any
book
that cover this?

Try > www.parse.com/books/book_v3/index.html

There’s a table of contents there and a sample chapter to give you an
idea.
While it won’t necessarily answer all of your questions, it should give
you
some ideas about timers and interrupts…

Cheers,
-RK

“David Kuechenmeister” <> david.kuechenmeister@viasat.com> > escreveu na
mensagem news:acangc$8gt$> 1@nntp.qnx.com> …
If you take a look at the Programmer’s Guide, there is a little bit
about
writing ISRs. The help for individual functions is useful, as well.
http://qdn.qnx.com/support/docs/neutrino/prog/inthandler.html

David Kuechenmeister
david.kuechenmeister@viasat.com

“Leandro Colen” <> lcrocha@yahoo.com> > wrote in message
news:ac6e6d$jk4$> 1@inn.qnx.com> …

Hi all,

I’m starting porting some Interrupt Handler programs made on the
old
DOS
to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my
cycle
of
execution. I programming the div to do the interrupt routine in
10ms
or
100ms or any other period. In QNX i will do the same? Or QNX have
other
ways
to do this kind of job?

2 - I have to write a lot of device drivers for a lot of
custom-made
devices, some with Interrupt Event (like Paralel Port), some with
a
pre-determinated period of execution (every 100ms or 10ms) and
some
with
both options. Is there any Guide, Link or Source-Example that
someone
can
share?


I’m starting with the Real-Time OS World, so, i really want to
study
some
descriptions, documentations, examples and HOWTO’S.

I know that i’m asking for too much, but a little guide for a
simple
program
(with Interrupt Handler) for a simple task like sending an out8()
to
the
paralel port (which is attached to a osciloscope so i can see if
it’s
working like i want) every NNms will help me a lot!

I’m a Robotics student trying to make much more confiable work
(Real-Time).
So, that’s why i’m asking so much.


Thx a lot.


Leandro Colen.
University PUC-MG.
Mecatronics (Mecanics and Electronics) Engineering.
Brazil.






\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.


\

Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.

“Leandro Colen” <lcrocha@yahoo.com> wrote in message
news:ac6e6d$jk4$1@inn.qnx.com

Hi all,

I’m starting porting some Interrupt Handler programs made on the old DOS
to
the QNX, so here’s a couple questions:

1 - In DOS i used to work with the Clock Interrupt IRQ0 to make my cycle
of
execution. I programming the div to do the interrupt routine in 10ms or
100ms or any other period. In QNX i will do the same? Or QNX have other
ways
to do this kind of job?

QNX has many useful timer routines for this kind of thing. Check them out.
They’re better than writing ISR for the clock. QSSL has already written
that one for you.

You can be woken up at any multiple of 1 ms (less on the latest version of
RTP). You can be woken up once per request or repeatedly.