This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to reduce Interrupt-Jitter

Hello to everyone.
This is my Code:

void FIQ_Handler(void) __irq
{
T1CLRI = 0x55; // T1CLRI is an 8-bit register.
               // Writing any value to this register clears the Timer1 interrupt.

GP4SET = 0x00040000;    //  P4.2 to "1" to see interupt-start on oszilloscope
GP4CLR = 0x00040000;    //  P4.2 to "0" to see interrupt-ready on oszilloscope
}


This code is execute 200000 times per second (timer-interrupt)
On Oszilloscope i see a Time_jitter of about 200ns.
There is a 120ns wide posetive Impulse every 5us.
But the starting point jitters about 200ns.
How can i reduce this Jitter?
My uC is a ADuC7126

Parents
  • Avoid other interrupts and anything that disables interrupts for a while.

    The timers can normally generate pin changes with very low jitter. But you can normally not have an ISR execute with very low jitter.

    Exactly what problem do you need to solve, that makes you want to have interrupts at this speed and requires them to start with low jitter?

Reply
  • Avoid other interrupts and anything that disables interrupts for a while.

    The timers can normally generate pin changes with very low jitter. But you can normally not have an ISR execute with very low jitter.

    Exactly what problem do you need to solve, that makes you want to have interrupts at this speed and requires them to start with low jitter?

Children