Re: PIC processor interrupt for delayed output
- From: "petrus bitbyter" <pieterkraltlaatditweg@xxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Apr 2008 14:21:57 +0200
"Bill Bowden" <wrongaddress@xxxxxxx> schreef in bericht
news:77a2a704-f080-4e01-897d-cee2c1f2eb28@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
What is the best approach to generate a delayed output from a trigger
input to a PIC microcontroller? The idea is to have a constant known
time from trigger input to output, so I don't want to poll the logic
level on some pin due to the jitter that would occur. Thought about
using the comparator module to generate an interrupt, but it seems
complicated setting and clearing all the various bits and reference
levels.
Is there an easier way?
-Bill
Assuming the trigger not to be synchronous with the PICs clock, you will
always have some jitter. That will be always the case when using
asynchronous systems.
As for the PIC, you did not mention what PIC you have in mind. The usual way
is using the trigger signal to start an interrupt routine. This routine in
turn starts a timer/counter that interrupts when delaytime is over. I see no
use for comparators in this scheme.
petrus bitbyter
.
- References:
- PIC processor interrupt for delayed output
- From: Bill Bowden
- PIC processor interrupt for delayed output
- Prev by Date: Re: Fan Motor
- Next by Date: Wholesale Rolex Oyster Perpetual DateJust Watch White Gold - ss LRX055 Discount, Fake Watch
- Previous by thread: Re: PIC processor interrupt for delayed output
- Next by thread: Re: PIC processor interrupt for delayed output
- Index(es):
Relevant Pages
|