Re: PIC processor interrupt for delayed output




"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


.



Relevant Pages

  • Re: kernel panic with pccard insert on recent 7.0 CURRENT
    ... We know if an interrupt source is edge or level ... It falls back to a level trigger emulation if it can't. ... Run A's handler, it claims the interrupt, so schedule A's ithread if ...
    (freebsd-current)
  • Re: [KVM PATCH v4 2/2] kvm: add support for irqfd via eventfd-notification interface
    ... The non-default mode is to trigger a ... I would really like to keep using eventfd. ... But we'd still need to know when to lower the interrupt. ... IIUC, isn't that usually device/subsystem specific, and out of scope of ...
    (Linux-Kernel)
  • Re: TL16C550CIFN
    ... verify this UART's DMA function,but the /RXRDY goes true when there is ... IIRC most cacheing UARTs will allow you to adjust the trigger point ... Thus once an interrupt occurs the service can ... or more characters in the FIFO and more than three character ...
    (comp.arch.embedded)
  • Re: Lenovo 3000 N100 i8042 problems
    ... hardware that only applies to legacy mode, ... internally we the kernel still deals with 2 interrupt ... Does it take long to trigger the bug? ... This has me typing some unimportant stuff, and then it sticks, ...
    (Linux-Kernel)
  • Re: PIC processor interrupt for delayed output
    ... input to a PIC microcontroller? ... If you can run it in a tight loop I think you can test 8 input pins ... whether you'll set up a timer to trigger an interrupt when the output ...
    (sci.electronics.basics)